@sapui5/sap.suite.ui.generic.template 1.123.0 → 1.124.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.
- package/LICENSE.txt +13 -10
- package/README.md +1 -1
- package/package.json +1 -1
- package/src/sap/suite/ui/generic/template/.library +4 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/ControllerImplementation.js +16 -9
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/CtxMenuHandler.js +77 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n.properties +3 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/util/FilterUtil.js +52 -51
- package/src/sap/suite/ui/generic/template/Canvas/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/controller/ControllerImplementation.js +5 -4
- package/src/sap/suite/ui/generic/template/ListReport/controller/CtxMenuHandler.js +20 -1
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n.properties +3 -0
- package/src/sap/suite/ui/generic/template/ListReport/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/ControllerImplementation.js +126 -99
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/CtxMenuHandler.js +8 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/MessageSortingHandler.js +2 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/MessageStripHelper.js +4 -3
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/PasteHandler.js +12 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/SectionTitleHandler.js +15 -3
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/inlineCreationRows/InlineCreationRowsHelper.js +12 -15
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/inlineCreationRows/RequiredPropHelper.js +4 -3
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n.properties +4 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/manifest.json +5 -2
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/Actions.fragment.xml +12 -12
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/SmartTable.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/QuickCreate/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/QuickView/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/detailTemplates/detailUtils.js +3 -3
- package/src/sap/suite/ui/generic/template/extensionAPI/extensionAPI.js +2 -0
- package/src/sap/suite/ui/generic/template/fragments/AnalyticalTableColumns.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/fragments/ContactDetails.fragment.xml +15 -9
- package/src/sap/suite/ui/generic/template/fragments/ContactDetailsQuickViewGroupReplica.fragment.xml +6 -3
- package/src/sap/suite/ui/generic/template/fragments/QuickViewSmartForm.fragment.xml +6 -3
- package/src/sap/suite/ui/generic/template/fragments/TableColumns.fragment.xml +12 -0
- package/src/sap/suite/ui/generic/template/genericUtilities/controlHelper.js +5 -9
- package/src/sap/suite/ui/generic/template/js/RuntimeFormatters.js +2 -3
- package/src/sap/suite/ui/generic/template/lib/AdaptiveCardHelper.js +2 -4
- package/src/sap/suite/ui/generic/template/lib/AppComponent.js +24 -16
- package/src/sap/suite/ui/generic/template/lib/CRUDActionHandler.js +5 -5
- package/src/sap/suite/ui/generic/template/lib/CRUDManager.js +3 -2
- package/src/sap/suite/ui/generic/template/lib/CommonEventHandlers.js +62 -57
- package/src/sap/suite/ui/generic/template/lib/CommonUtils.js +30 -7
- package/src/sap/suite/ui/generic/template/lib/ContactCardDetailHelper.js +4 -18
- package/src/sap/suite/ui/generic/template/lib/ContextMenuHandler.js +20 -18
- package/src/sap/suite/ui/generic/template/lib/ShareUtils.js +141 -126
- package/src/sap/suite/ui/generic/template/lib/cards/DTCardHelper.js +48 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n.properties +2 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en.properties +1 -1
- package/src/sap/suite/ui/generic/template/lib/insights/InsightsCardHelper.js +14 -7
- package/src/sap/suite/ui/generic/template/lib/insights/InsightsFECardProvider.js +1 -1
- package/src/sap/suite/ui/generic/template/lib/insights/InsightsHandler.js +54 -17
- package/src/sap/suite/ui/generic/template/lib/navigation/NavigationController.js +1 -1
- package/src/sap/suite/ui/generic/template/library.js +7 -5
- package/src/sap/suite/ui/generic/template/listTemplates/controller/IappStateHandler.js +5 -0
- package/src/sap/suite/ui/generic/template/listTemplates/fragments/DetailSmartTable.fragment.xml +6 -0
- package/src/sap/suite/ui/generic/template/listTemplates/listUtils.js +2 -5
- package/src/sap/suite/ui/generic/template/support/lib/CommonChecks.js +4 -6
- package/src/sap/suite/ui/generic/template/themes/sap_bluecrystal/library.source.less +10 -1
- package/src/sap/suite/ui/generic/template/themes/sap_bluecrystal_base/ALPConstants.less +47 -0
- package/src/sap/suite/ui/generic/template/themes/sap_bluecrystal_base/AnalyticalListPage.less +475 -0
- package/src/sap/suite/ui/generic/template/themes/sap_bluecrystal_base/ListReport.less +33 -0
- package/src/sap/suite/ui/generic/template/themes/sap_bluecrystal_base/ObjectPage.less +391 -0
- package/src/sap/suite/ui/generic/template/themes/sap_bluecrystal_base/QuickCreate.less +96 -0
- package/src/sap/suite/ui/generic/template/themes/sap_bluecrystal_base/QuickView.less +108 -0
- package/src/sap/suite/ui/generic/template/themes/sap_bluecrystal_base/alr_zen.css +136 -0
- package/src/sap/suite/ui/generic/template/themes/sap_bluecrystal_base/base.less +7 -0
- package/src/sap/suite/ui/generic/template/themes/sap_bluecrystal_base/crosstab_library.css +20 -0
- package/src/sap/suite/ui/generic/template/themes/sap_bluecrystal_base/library.source.less +9 -0
- package/ui5.yaml +1 -0
package/LICENSE.txt
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
SAP DEVELOPER LICENSE AGREEMENT
|
|
2
2
|
|
|
3
|
+
Version 3.2
|
|
4
|
+
|
|
3
5
|
Please scroll down and read the following Developer License Agreement carefully ("Developer Agreement"). By clicking "I Accept" or by attempting to download, or install, or use the SAP software and other materials that accompany this Developer Agreement ("SAP Materials"), You agree that this Developer Agreement forms a legally binding agreement between You ("You" or "Your") and SAP SE, for and on behalf of itself and its subsidiaries and affiliates (as defined in Section 15 of the German Stock Corporation Act) and You agree to be bound by all of the terms and conditions stated in this Developer Agreement. If You are trying to access or download the SAP Materials on behalf of Your employer or as a consultant or agent of a third party (either "Your Company"), You represent and warrant that You have the authority to act on behalf of and bind Your Company to the terms of this Developer Agreement and everywhere in this Developer Agreement that refers to 'You' or 'Your' shall also include Your Company. If You do not agree to these terms, do not click "I Accept", and do not attempt to access or use the SAP Materials.
|
|
4
6
|
|
|
5
7
|
1. LICENSE: SAP grants You a non-exclusive, non-transferable, non-sublicensable, revocable, limited use license to copy, reproduce and distribute the application programming interfaces ("API"), documentation, plug-ins, templates, scripts and sample code ("Tools") on a desktop, laptop, tablet, smart phone, or other appropriate computer device that You own or control (any, a "Computer") to create new applications ("Customer Applications"). You agree that the Customer Applications will not: (a) unreasonably impair, degrade or reduce the performance or security of any SAP software applications, services or related technology ("Software"); (b) enable the bypassing or circumventing of SAP's license restrictions and/or provide users with access to the Software to which such users are not licensed; (c) render or provide, without prior written consent from SAP, any information concerning SAP software license terms, Software, or any other information related to SAP products; or (d) permit mass data extraction from an SAP product to a non-SAP product, including use, modification, saving or other processing of such data in the non-SAP product. In exchange for the right to develop Customer Applications under this Agreement, You covenant not to assert any Intellectual Property Rights in Customer Applications created by You against any SAP product, service, or future SAP development.
|
|
@@ -7,29 +9,30 @@ Please scroll down and read the following Developer License Agreement carefully
|
|
|
7
9
|
2. INTELLECTUAL PROPERTY: (a) SAP or its licensors retain all ownership and intellectual property rights in the APIs, Tools and Software. You may not: a) remove or modify any marks or proprietary notices of SAP, b) provide or make the APIs, Tools or Software available to any third party, c) assign this Developer Agreement or give or transfer the APIs, Tools or Software or an interest in them to another individual or entity, d) decompile, disassemble or reverse engineer (except to the extent permitted by applicable law) the APIs Tools or Software, (e) create derivative works of or based on the APIs, Tools or Software, (f) use any SAP name, trademark or logo, or (g) use the APIs or Tools to modify existing Software or other SAP product functionality or to access the Software or other SAP products' source code or metadata.
|
|
8
10
|
(b) Subject to SAP's underlying rights in any part of the APIs, Tools or Software, You retain all ownership and intellectual property rights in Your Customer Applications.
|
|
9
11
|
|
|
10
|
-
3.
|
|
12
|
+
3. ARTIFICIAL INTELLIGENCE TRAINING: You are expressly prohibited from using the Software, Tools or APIs as well as any Customer Applications or any part thereof for the purpose of training (developing) artificial intelligence models or systems (“AI Training”). Prohibition of AI Training includes, but is not limited to, using the Software, Tools, APIs and/or Customer Applications or part thereof in any training data set, algorithm development, model development or refinement (including language learning models) related to artificial intelligence, as well as text and data mining in accordance with §44b UrhG and Art. 4 of EU Directive 2019/790. For the avoidance of doubt, by accepting this Developer Agreement You agree that Your ownership of Customer Applications shall not create nor encompass any right to use Customer Applications for AI Training and, hence, You will not use Customer Applications or any part of it for AI Training.
|
|
11
13
|
|
|
12
|
-
4.
|
|
14
|
+
4. FREE AND OPEN SOURCE COMPONENTS: The SAP Materials may include certain third party free or open source components ("FOSS Components"). You may have additional rights in such FOSS Components that are provided by the third party licensors of those components.
|
|
13
15
|
|
|
16
|
+
5. THIRD PARTY DEPENDENCIES: The SAP Materials may require certain third party software dependencies ("Dependencies") for the use or operation of such SAP Materials. These dependencies may be identified by SAP in Maven POM files, product documentation or by other means. SAP does not grant You any rights in or to such Dependencies under this Developer Agreement. You are solely responsible for the acquisition, installation and use of Dependencies. SAP DOES NOT MAKE ANY REPRESENTATIONS OR WARRANTIES IN RESPECT OF DEPENDENCIES, INCLUDING BUT NOT LIMITED TO IMPLIED WARRANTIES OF MERCHANTABILITY AND OF FITNESS FOR A PARTICULAR PURPOSE. IN PARTICULAR, SAP DOES NOT WARRANT THAT DEPENDENCIES WILL BE AVAILABLE, ERROR FREE, INTEROPERABLE WITH THE SAP MATERIALS, SUITABLE FOR ANY PARTICULAR PURPOSE OR NON-INFRINGING. YOU ASSUME ALL RISKS ASSOCIATED WITH THE USE OF DEPENDENCIES, INCLUDING WITHOUT LIMITATION RISKS RELATING TO QUALITY, AVAILABILITY, PERFORMANCE, DATA LOSS, UTILITY IN A PRODUCTION ENVIRONMENT, AND NON-INFRINGEMENT. IN NO EVENT WILL SAP BE LIABLE DIRECTLY OR INDIRECTLY IN RESPECT OF ANY USE OF DEPENDENCIES BY YOU.
|
|
14
17
|
|
|
15
|
-
|
|
18
|
+
6. WARRANTY:
|
|
16
19
|
a) If You are located outside the US or Canada: AS THE API AND TOOLS ARE PROVIDED TO YOU FREE OF CHARGE, SAP DOES NOT GUARANTEE OR WARRANT ANY FEATURES OR QUALITIES OF THE TOOLS OR API OR GIVE ANY UNDERTAKING WITH REGARD TO ANY OTHER QUALITY. NO SUCH WARRANTY OR UNDERTAKING SHALL BE IMPLIED BY YOU FROM ANY DESCRIPTION IN THE API OR TOOLS OR ANY AVAILABLE DOCUMENTATION OR ANY OTHER COMMUNICATION OR ADVERTISEMENT. IN PARTICULAR, SAP DOES NOT WARRANT THAT THE SOFTWARE WILL BE AVAILABLE UNINTERRUPTED, ERROR FREE, OR PERMANENTLY AVAILABLE. FOR THE TOOLS AND API ALL WARRANTY CLAIMS ARE SUBJECT TO THE LIMITATION OF LIABILITY STIPULATED IN SECTION 4 BELOW.
|
|
17
20
|
b) If You are located in the US or Canada: THE API AND TOOLS ARE LICENSED TO YOU "AS IS", WITHOUT ANY WARRANTY, ESCROW, TRAINING, MAINTENANCE, OR SERVICE OBLIGATIONS WHATSOEVER ON THE PART OF SAP. SAP MAKES NO EXPRESS OR IMPLIED WARRANTIES OR CONDITIONS OF SALE OF ANY TYPE WHATSOEVER, INCLUDING BUT NOT LIMITED TO IMPLIED WARRANTIES OF MERCHANTABILITY AND OF FITNESS FOR A PARTICULAR PURPOSE. IN PARTICULAR, SAP DOES NOT WARRANT THAT THE SOFTWARE WILL BE AVAILABLE UNINTERRUPTED, ERROR FREE, OR PERMANENTLY AVAILABLE. YOU ASSUME ALL RISKS ASSOCIATED WITH THE USE OF THE API AND TOOLS, INCLUDING WITHOUT LIMITATION RISKS RELATING TO QUALITY, AVAILABILITY, PERFORMANCE, DATA LOSS, AND UTILITY IN A PRODUCTION ENVIRONMENT.
|
|
18
21
|
|
|
19
|
-
|
|
22
|
+
7. LIMITATION OF LIABILITY:
|
|
20
23
|
a) If You are located outside the US or Canada: IRRESPECTIVE OF THE LEGAL REASONS, SAP SHALL ONLY BE LIABLE FOR DAMAGES UNDER THIS AGREEMENT IF SUCH DAMAGE (I) CAN BE CLAIMED UNDER THE GERMAN PRODUCT LIABILITY ACT OR (II) IS CAUSED BY INTENTIONAL MISCONDUCT OF SAP OR (III) CONSISTS OF PERSONAL INJURY. IN ALL OTHER CASES, NEITHER SAP NOR ITS EMPLOYEES, AGENTS AND SUBCONTRACTORS SHALL BE LIABLE FOR ANY KIND OF DAMAGE OR CLAIMS HEREUNDER.
|
|
21
24
|
b) If You are located in the US or Canada: IN NO EVENT SHALL SAP BE LIABLE TO YOU, YOUR COMPANY OR TO ANY THIRD PARTY FOR ANY DAMAGES IN AN AMOUNT IN EXCESS OF $100 ARISING IN CONNECTION WITH YOUR USE OF OR INABILITY TO USE THE TOOLS OR API OR IN CONNECTION WITH SAP'S PROVISION OF OR FAILURE TO PROVIDE SERVICES PERTAINING TO THE TOOLS OR API, OR AS A RESULT OF ANY DEFECT IN THE API OR TOOLS. THIS DISCLAIMER OF LIABILITY SHALL APPLY REGARDLESS OF THE FORM OF ACTION THAT MAY BE BROUGHT AGAINST SAP, WHETHER IN CONTRACT OR TORT, INCLUDING WITHOUT LIMITATION ANY ACTION FOR NEGLIGENCE. YOUR SOLE REMEDY IN THE EVENT OF BREACH OF THIS DEVELOPER AGREEMENT BY SAP OR FOR ANY OTHER CLAIM RELATED TO THE API OR TOOLS SHALL BE TERMINATION OF THIS AGREEMENT. NOTWITHSTANDING ANYTHING TO THE CONTRARY HEREIN, UNDER NO CIRCUMSTANCES SHALL SAP AND ITS LICENSORS BE LIABLE TO YOU OR ANY OTHER PERSON OR ENTITY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, OR INDIRECT DAMAGES, LOSS OF GOOD WILL OR BUSINESS PROFITS, WORK STOPPAGE, DATA LOSS, COMPUTER FAILURE OR MALFUNCTION, ANY AND ALL OTHER COMMERCIAL DAMAGES OR LOSS, OR EXEMPLARY OR PUNITIVE DAMAGES.
|
|
22
25
|
|
|
23
|
-
|
|
26
|
+
8. INDEMNITY: You will fully indemnify, hold harmless and defend SAP against law suits based on any claim: (a) that any Customer Application created by You infringes or misappropriates any patent, copyright, trademark, trade secrets, or other proprietary rights of a third party, or (b) related to Your alleged violation of the terms of this Developer Agreement.
|
|
24
27
|
|
|
25
|
-
|
|
28
|
+
9. EXPORT: The Tools and API are subject to German, EU and US export control regulations. You confirm that: a) You will not use the Tools or API for, and will not allow the Tools or API to be used for, any purposes prohibited by German, EU and US law, including, without limitation, for the development, design, manufacture or production of nuclear, chemical or biological weapons of mass destruction; b) You are not located in Cuba, Iran, Sudan, Iraq, North Korea, Syria, nor any other country to which the United States has prohibited export or that has been designated by the U.S. Government as a "terrorist supporting" country (any, an "US Embargoed Country"); c) You are not a citizen, national or resident of, and are not under the control of, a US Embargoed Country; d) You will not download or otherwise export or re-export the API or Tools, directly or indirectly, to a US Embargoed Country nor to citizens, nationals or residents of a US Embargoed Country; e) You are not listed on the United States Department of Treasury lists of Specially Designated Nationals, Specially Designated Terrorists, and Specially Designated Narcotic Traffickers, nor listed on the United States Department of Commerce Table of Denial Orders or any other U.S. government list of prohibited or restricted parties and f) You will not download or otherwise export or re-export the API or Tools , directly or indirectly, to persons on the above-mentioned lists.
|
|
26
29
|
|
|
27
|
-
|
|
30
|
+
10. SUPPORT: Other than what is made available on the SAP Community Website (SCN) by SAP at its sole discretion and by SCN members, SAP does not offer support for the API or Tools which are the subject of this Developer Agreement.
|
|
28
31
|
|
|
29
|
-
|
|
32
|
+
11. TERM AND TERMINATION: You may terminate this Developer Agreement by destroying all copies of the API and Tools on Your Computer(s). SAP may terminate Your license to use the API and Tools immediately if You fail to comply with any of the terms of this Developer Agreement, or, for SAP's convenience by providing you with ten (10) day's written notice of termination (including by public notice). In case of termination or expiration of this Developer Agreement, You must destroy all copies of the API and Tools immediately. In the event Your Company or any of the intellectual property you create using the API, Tools or Software are acquired (by merger, purchase of stock, assets or intellectual property or exclusive license), or You become employed, by a direct competitor of SAP, then this Development Agreement and all licenses granted in this Developer Agreement shall immediately terminate upon the date of such acquisition.
|
|
30
33
|
|
|
31
|
-
|
|
34
|
+
12. LAW/VENUE:
|
|
32
35
|
a) If You are located outside the US or Canada: This Developer Agreement is governed by and construed in accordance with the laws of the Germany. You and SAP agree to submit to the exclusive jurisdiction of, and venue in, the courts of Karlsruhe in Germany in any dispute arising out of or relating to this Developer Agreement.
|
|
33
36
|
b) If You are located in the US or Canada: This Developer Agreement shall be governed by and construed under the Commonwealth of Pennsylvania law without reference to its conflicts of law principles. In the event of any conflicts between foreign law, rules, and regulations, and United States of America law, rules, and regulations, United States of America law, rules, and regulations shall prevail and govern. The United Nations Convention on Contracts for the International Sale of Goods shall not apply to this Developer Agreement. The Uniform Computer Information Transactions Act as enacted shall not apply.
|
|
34
37
|
|
|
35
|
-
|
|
38
|
+
13. MISCELLANEOUS: This Developer Agreement is the complete agreement for the API and Tools licensed (including reference to information/documentation contained in a URL). This Developer Agreement supersedes all prior or contemporaneous agreements or representations with regards to the subject matter of this Developer Agreement. If any term of this Developer Agreement is found to be invalid or unenforceable, the surviving provisions shall remain effective. SAP's failure to enforce any right or provisions stipulated in this Developer Agreement will not constitute a waiver of such provision, or any other provision of this Developer Agreement.
|
package/README.md
CHANGED
|
@@ -9,4 +9,4 @@ It is meant to be consumed using the [UI5 Tooling](https://sap.github.io/ui5-too
|
|
|
9
9
|
For details please refer to our documentation on [Consuming SAPUI5 Libraries](https://sap.github.io/ui5-tooling/pages/SAPUI5/).
|
|
10
10
|
|
|
11
11
|
## License
|
|
12
|
-
This package is provided under the terms of the [SAP Developer License Agreement](https://tools.hana.ondemand.com/developer-license-
|
|
12
|
+
This package is provided under the terms of the [SAP Developer License Agreement](https://tools.hana.ondemand.com/developer-license-3_2.txt).
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
(c) Copyright 2009-2015 SAP SE. All rights reserved
|
|
9
9
|
</copyright>
|
|
10
|
-
<version>1.
|
|
10
|
+
<version>1.124.0</version>
|
|
11
11
|
|
|
12
12
|
<documentation>Library with generic Suite UI templates.</documentation>
|
|
13
13
|
|
|
@@ -65,6 +65,9 @@
|
|
|
65
65
|
<dependency>
|
|
66
66
|
<libraryName>sap.fe.placeholder</libraryName>
|
|
67
67
|
</dependency>
|
|
68
|
+
<dependency>
|
|
69
|
+
<libraryName>sap.cards.ap.common</libraryName>
|
|
70
|
+
</dependency>
|
|
68
71
|
</dependencies>
|
|
69
72
|
|
|
70
73
|
<appData>
|
package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/ControllerImplementation.js
CHANGED
|
@@ -29,12 +29,13 @@ sap.ui.define(["sap/fe/navigation/SelectionVariant",
|
|
|
29
29
|
"sap/suite/ui/generic/template/lib/insights/InsightsHandler",
|
|
30
30
|
"sap/suite/ui/generic/template/genericUtilities/metadataAnalyser",
|
|
31
31
|
"sap/suite/ui/generic/template/genericUtilities/filterHelper",
|
|
32
|
-
"sap/suite/ui/generic/template/js/AnnotationHelperHiddenTermSupport"
|
|
32
|
+
"sap/suite/ui/generic/template/js/AnnotationHelperHiddenTermSupport",
|
|
33
|
+
"sap/suite/ui/generic/template/AnalyticalListPage/controller/CtxMenuHandler"
|
|
33
34
|
], function(SelectionVariant, ExtensionAPI,
|
|
34
35
|
FilterBarController, ToolbarController, VisualFilterBarController, VisualFilterDialogController, AnalyticGridController, AnalyticalTable,
|
|
35
36
|
ODataAnnotationHelper, Analytics, ContentAreaController, IappStateHandler, Device, SegmentedButtonItem, ALPHelper, controlHelper, FeLogger,
|
|
36
37
|
ObjectPath, ShareUtils, merge, deepExtend, ListUtils, MultipleViewsHandler, StableIdHelper, MessageStripHelper, JSONModel, PersonalizationControllerUtil,
|
|
37
|
-
InsightsHandler, metadataAnalyser, filterHelper, AnnotationHelperHiddenTermSupport) {
|
|
38
|
+
InsightsHandler, metadataAnalyser, filterHelper, AnnotationHelperHiddenTermSupport, CtxMenuHandler) {
|
|
38
39
|
|
|
39
40
|
"use strict";
|
|
40
41
|
|
|
@@ -54,6 +55,7 @@ sap.ui.define(["sap/fe/navigation/SelectionVariant",
|
|
|
54
55
|
oState.bVisualFilterInitialised = false;
|
|
55
56
|
oState._bIsStartingUp = true;
|
|
56
57
|
var bTableRebindRequired = false; // This boolean value decides whether or not the table has to be rebind.
|
|
58
|
+
var oContextMenuHandler = new CtxMenuHandler(oController, oTemplateUtils, oState);
|
|
57
59
|
|
|
58
60
|
function attachRefreshInterval(nRefreshInterval) {
|
|
59
61
|
oState.oRefreshTimer = setTimeout(function () {
|
|
@@ -260,12 +262,12 @@ sap.ui.define(["sap/fe/navigation/SelectionVariant",
|
|
|
260
262
|
var sEntityTypeName = oMetaModel.getODataEntitySet(oPresentationControlHandler.getEntitySet()).entityType;
|
|
261
263
|
var oTable = oState.oSmartTable.getTable();
|
|
262
264
|
var oBinding = oTable.getBinding("rows") || oTable.getBinding("items");
|
|
263
|
-
var sServiceUrl = oBinding
|
|
265
|
+
var sServiceUrl = oBinding ? oBinding.getDownloadUrl() : "";
|
|
264
266
|
// - For Analytical Binding.
|
|
265
267
|
// we recv. aApplicationFilter and aApplicationFilters binding both but aApplicationFilter have actual filters operator value.
|
|
266
268
|
// - For List Binding.
|
|
267
269
|
// we recv. only aApplicationFilters contains filter operator.
|
|
268
|
-
var aFilters = oBinding.aApplicationFilter || oBinding.aApplicationFilters;
|
|
270
|
+
var aFilters = oBinding ? (oBinding.aApplicationFilter || oBinding.aApplicationFilters) : [];
|
|
269
271
|
// non-draft case when no filter is applied
|
|
270
272
|
if (!aFilters.length) {
|
|
271
273
|
return Promise.resolve({
|
|
@@ -445,8 +447,9 @@ sap.ui.define(["sap/fe/navigation/SelectionVariant",
|
|
|
445
447
|
oTemplatePrivateModel.bindProperty("/alp/filterChanged").attachChange(function(oChangeEvent) {
|
|
446
448
|
if (!oChangeEvent.getSource().getValue()) {//filterChange is false if GO button is pressed , hence add shareCards
|
|
447
449
|
var oPresentationControlHandler = oTemplateUtils.oServices.oPresentationControlHandlerFactory.getPresentationControlHandler(oState.oSmartChart);
|
|
448
|
-
|
|
449
|
-
|
|
450
|
+
oState.oInsightsHandler.getCardsToShare("Analytical", oPresentationControlHandler).then(function (aShareCards) {
|
|
451
|
+
oCardProviderInstance.onViewUpdate(true, aShareCards);
|
|
452
|
+
});
|
|
450
453
|
} else {
|
|
451
454
|
oCardProviderInstance.onViewUpdate(true, []);
|
|
452
455
|
}
|
|
@@ -912,6 +915,7 @@ sap.ui.define(["sap/fe/navigation/SelectionVariant",
|
|
|
912
915
|
sSearchFieldValue = oBasicSearchField.getValue();
|
|
913
916
|
}
|
|
914
917
|
oFilterData._CUSTOM = oCurrentAppState.customData;
|
|
918
|
+
oFilterData._CUSTOM["sap.suite.ui.generic.template.genericData"].variantDirty = false;
|
|
915
919
|
oState.oSmartFilterbar.setFilterData(oFilterData, true);
|
|
916
920
|
if (sSearchFieldValue) { // the previous statement has blanked the content of the search field -> reset it to the stored value
|
|
917
921
|
oState.oSmartFilterbar.getBasicSearchControl().setValue(sSearchFieldValue);
|
|
@@ -1252,9 +1256,12 @@ sap.ui.define(["sap/fe/navigation/SelectionVariant",
|
|
|
1252
1256
|
onBeforeExport: function (oExportEvent) {
|
|
1253
1257
|
oTemplateUtils.oCommonEventHandlers.onBeforeExport(oExportEvent);
|
|
1254
1258
|
},
|
|
1255
|
-
beforeOpenContextMenu: function(oEvent, sSmartControlId){
|
|
1256
|
-
|
|
1257
|
-
}
|
|
1259
|
+
beforeOpenContextMenu: function (oEvent, sSmartControlId) {
|
|
1260
|
+
oContextMenuHandler.beforeOpenContextMenu(oEvent, sSmartControlId);
|
|
1261
|
+
},
|
|
1262
|
+
onContextMenu: function (oEvent, sSmartControlId) {
|
|
1263
|
+
oContextMenuHandler.onContextMenu(oEvent, sSmartControlId);
|
|
1264
|
+
}
|
|
1258
1265
|
},
|
|
1259
1266
|
|
|
1260
1267
|
formatters: {
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
sap.ui.define([
|
|
2
|
+
"sap/ui/base/Object",
|
|
3
|
+
"sap/base/util/extend",
|
|
4
|
+
"sap/suite/ui/generic/template/lib/ContextMenuHandler"
|
|
5
|
+
], function(BaseObject, extend, ContextMenuHandler) {
|
|
6
|
+
"use strict";
|
|
7
|
+
|
|
8
|
+
function getMethods(oController, oTemplateUtils, oState) {
|
|
9
|
+
var mGenericCtxMenuHandlers = Object.create(null);
|
|
10
|
+
|
|
11
|
+
function fnExecuteAction(sSmartControlId, oFocusInfo, oToolbarControlData, oButton){
|
|
12
|
+
if (oToolbarControlData.RecordType === "CRUDActionDelete"){
|
|
13
|
+
oTemplateUtils.oCommonEventHandlers.deleteContextsFromTable(oController.byId(sSmartControlId), oFocusInfo.applicableContexts);
|
|
14
|
+
} else if (oToolbarControlData.RecordType === "com.sap.vocabularies.UI.v1.DataFieldForIntentBasedNavigation"){
|
|
15
|
+
var oButtonCustomData = oButton.data();
|
|
16
|
+
oTemplateUtils.oCommonEventHandlers.onDataFieldForIntentBasedNavigationSelectedContext(oButtonCustomData, oFocusInfo.applicableContexts, oState.oSmartFilterbar);
|
|
17
|
+
} else if (oToolbarControlData.RecordType === "com.sap.vocabularies.UI.v1.DataFieldForAction"){
|
|
18
|
+
var oSmartControl = oController.byId(sSmartControlId);
|
|
19
|
+
var oButtonCustomData = oButton.data();
|
|
20
|
+
oTemplateUtils.oCommonEventHandlers.onCallActionFromToolBarForContexts(oSmartControl, oSmartControl.getTable(), oButtonCustomData, oFocusInfo.applicableContexts, oState, oSmartControl.getEntitySet(), true);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Finds the breakout action data from "aBreakoutActionsData" (manifest action data) by toolbar button's local id.
|
|
26
|
+
* - In single view single table and multi view single table, buttons's local id = manifest action id.
|
|
27
|
+
* - In multi view multi table, local id = template:::ALPAction:::ExtensionAction:::sQuickVariantKey::<MULTI_VIEW_TAB_ID>:::sAction::<MANIFEST_ACTION_ID>
|
|
28
|
+
*/
|
|
29
|
+
function fnFindBreakoutActionByLocalId(aBreakoutActionsData, sToolbarButtonLocalId) {
|
|
30
|
+
var oMultipleViewsHandler = oState.oMultipleViewsHandler;
|
|
31
|
+
var bIsMultiViewMultiTable = oMultipleViewsHandler.getMode && oMultipleViewsHandler.getMode() === "multi";
|
|
32
|
+
|
|
33
|
+
return aBreakoutActionsData.find(function (oBreakoutAction) {
|
|
34
|
+
if (bIsMultiViewMultiTable) {
|
|
35
|
+
return sToolbarButtonLocalId.endsWith("::" + oBreakoutAction.id);
|
|
36
|
+
}
|
|
37
|
+
return sToolbarButtonLocalId === oBreakoutAction.id;
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function getGenericHandler(sSmartControlId){
|
|
42
|
+
var oRet = mGenericCtxMenuHandlers[sSmartControlId];
|
|
43
|
+
if (!oRet){
|
|
44
|
+
var oSmartControl = oController.byId(sSmartControlId);
|
|
45
|
+
var oConfiguration = {
|
|
46
|
+
executeAction: fnExecuteAction.bind(null, sSmartControlId),
|
|
47
|
+
findBreakoutActionByLocalId: fnFindBreakoutActionByLocalId
|
|
48
|
+
};
|
|
49
|
+
oRet = new ContextMenuHandler(oController, oTemplateUtils, oState, oSmartControl, oConfiguration);
|
|
50
|
+
mGenericCtxMenuHandlers[sSmartControlId] = oRet;
|
|
51
|
+
}
|
|
52
|
+
return oRet;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
function fnBeforeOpenContextMenu(oEvent, sSmartControlId){
|
|
56
|
+
var oGenericHandler = getGenericHandler(sSmartControlId);
|
|
57
|
+
oGenericHandler.beforeOpenContextMenu(oEvent);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
function onContextMenu(oEvent, sSmartControlId){
|
|
61
|
+
var oGenericHandler = getGenericHandler(sSmartControlId);
|
|
62
|
+
oGenericHandler.onContextMenu(oEvent);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// public instance methods
|
|
66
|
+
return {
|
|
67
|
+
beforeOpenContextMenu: fnBeforeOpenContextMenu,
|
|
68
|
+
onContextMenu: onContextMenu
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
return BaseObject.extend("sap.suite.ui.generic.template.AnalyticalListPage.controller.CtxMenuHandler", {
|
|
73
|
+
constructor: function(oController, oTemplateUtils, oState) {
|
|
74
|
+
extend(this, getMethods(oController, oTemplateUtils, oState));
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
});
|
|
@@ -130,6 +130,9 @@ VISUAL_FILTER_SORT_ORDER=Sort Order
|
|
|
130
130
|
# XTIT,40: Title of a form with contact person information
|
|
131
131
|
CONTACT_INFO=Contact Information
|
|
132
132
|
|
|
133
|
+
# XTIT,30: Title of a Toolbar with share button
|
|
134
|
+
CONTACT_OPTION=Microsoft Teams
|
|
135
|
+
|
|
133
136
|
#------------Quick View Contact Card Labels-----------------------
|
|
134
137
|
|
|
135
138
|
# XTIT,30: Job title of a person
|
|
@@ -8,8 +8,9 @@ sap.ui.define([
|
|
|
8
8
|
"sap/ui/model/odata/AnnotationHelper",
|
|
9
9
|
"sap/ui/events/KeyCodes",
|
|
10
10
|
'sap/ui/comp/odata/FiscalFormat',
|
|
11
|
-
"sap/suite/ui/generic/template/genericUtilities/metadataAnalyser"
|
|
12
|
-
|
|
11
|
+
"sap/suite/ui/generic/template/genericUtilities/metadataAnalyser",
|
|
12
|
+
"sap/ui/core/date/UI5Date"
|
|
13
|
+
], function(MetadataAnalyser, BaseObject, Context, OperationCode, V4Terms, DateFormat, ODataAnnotationHelper, KeyCodes, FiscalFormat, metadataAnalyser,UI5Date) {
|
|
13
14
|
"use strict";
|
|
14
15
|
var FilterUtil = BaseObject.extend("sap.suite.ui.generic.template.AnalyticalListPage.util.FilterUtil");
|
|
15
16
|
/**
|
|
@@ -686,71 +687,71 @@ sap.ui.define([
|
|
|
686
687
|
};
|
|
687
688
|
|
|
688
689
|
FilterUtil.formatStringDateYearMonth = function (oDimFieldDisplay, bIsChartType, bIsSecondaryLabel) {
|
|
689
|
-
if (oDimFieldDisplay
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
}
|
|
690
|
+
if (!oDimFieldDisplay) {
|
|
691
|
+
return oDimFieldDisplay;
|
|
692
|
+
}
|
|
693
|
+
var a = oDimFieldDisplay;
|
|
694
|
+
var b = "-";
|
|
695
|
+
var position = 4;
|
|
696
|
+
var output = [a.slice(0, position), b, a.slice(position)].join('');
|
|
697
|
+
var oDate = UI5Date.getInstance(output);
|
|
698
|
+
if ( bIsChartType === "Line" ) {
|
|
699
|
+
var oFormatterYear = DateFormat.getDateTimeInstance({format: "Y", UTC: true});
|
|
700
|
+
var oFormatterYearMonth = DateFormat.getDateTimeInstance({format: "MMM", UTC: true});
|
|
701
|
+
if (bIsSecondaryLabel) {
|
|
702
|
+
return oFormatterYear.format(oDate);
|
|
703
703
|
} else {
|
|
704
|
-
|
|
705
|
-
return oFormatter.format(oDate);
|
|
704
|
+
return oFormatterYearMonth.format(oDate);
|
|
706
705
|
}
|
|
706
|
+
} else {
|
|
707
|
+
var oFormatter = DateFormat.getDateTimeInstance({format: "YYYYMMM", UTC: true});
|
|
708
|
+
return oFormatter.format(oDate);
|
|
707
709
|
}
|
|
708
|
-
return oDimFieldDisplay;
|
|
709
710
|
};
|
|
710
711
|
|
|
711
712
|
FilterUtil.formatStringDateYearQuarter = function (oDimFieldDisplay, bIsChartType, bIsSecondaryLabel) {
|
|
712
|
-
if (oDimFieldDisplay
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
}
|
|
713
|
+
if (!oDimFieldDisplay) {
|
|
714
|
+
return oDimFieldDisplay;
|
|
715
|
+
}
|
|
716
|
+
var year = parseInt(oDimFieldDisplay.substr(0,4), 10),
|
|
717
|
+
quarter = oDimFieldDisplay.substr(4),
|
|
718
|
+
monthFromQuarter = (parseInt(quarter, 10) * 3) - 2,
|
|
719
|
+
//month attribute in Date constructor is 0-based
|
|
720
|
+
monthIndex = monthFromQuarter - 1,
|
|
721
|
+
oDate = UI5Date.getInstance(Date.UTC(year, monthIndex));
|
|
722
|
+
if ( bIsChartType === "Line" ) {
|
|
723
|
+
var oFormatter = DateFormat.getDateTimeInstance({format: "QQQ", UTC: true});
|
|
724
|
+
if (bIsSecondaryLabel) {
|
|
725
|
+
return year;
|
|
726
726
|
} else {
|
|
727
|
-
var oFormatter = DateFormat.getDateTimeInstance({format: "YYYYQ"});
|
|
728
727
|
return oFormatter.format(oDate);
|
|
729
728
|
}
|
|
729
|
+
} else {
|
|
730
|
+
var oFormatter = DateFormat.getDateTimeInstance({format: "YYYYQ", UTC: true});
|
|
731
|
+
return oFormatter.format(oDate);
|
|
730
732
|
}
|
|
731
|
-
return oDimFieldDisplay;
|
|
732
733
|
};
|
|
733
734
|
|
|
734
735
|
FilterUtil.formatStringDateYearWeek = function (oDimFieldDisplay, bIsChartType, bIsSecondaryLabel) {
|
|
735
|
-
if (oDimFieldDisplay
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
}
|
|
736
|
+
if (!oDimFieldDisplay) {
|
|
737
|
+
return oDimFieldDisplay;
|
|
738
|
+
}
|
|
739
|
+
var year = parseInt(oDimFieldDisplay.substr(0,4), 10),
|
|
740
|
+
week = oDimFieldDisplay.substr(4),
|
|
741
|
+
startOfWeekDay = (1 + (parseInt(week, 10) - 1) * 7), // 1st of January + 7 days for each week
|
|
742
|
+
oDate = UI5Date.getInstance(Date.UTC(year, 0, startOfWeekDay));
|
|
743
|
+
var oFormatterForYear = DateFormat.getDateTimeInstance({format: "Y", UTC: true}),
|
|
744
|
+
oFormatterForCalendarWeek = DateFormat.getDateTimeInstance({format: "www", UTC: true});
|
|
745
|
+
if ( bIsChartType === "Line" ) {
|
|
746
|
+
if (bIsSecondaryLabel) {
|
|
747
|
+
return oFormatterForYear.format(oDate);
|
|
748
748
|
} else {
|
|
749
|
-
|
|
750
|
-
return oCalendarYearWeekLabel;
|
|
749
|
+
return oFormatterForCalendarWeek.format(oDate);
|
|
751
750
|
}
|
|
751
|
+
} else {
|
|
752
|
+
var oCalendarYearWeekLabel = oFormatterForCalendarWeek.format(oDate).concat(" ", oFormatterForYear.format(oDate));
|
|
753
|
+
return oCalendarYearWeekLabel;
|
|
752
754
|
}
|
|
753
|
-
return oDimFieldDisplay;
|
|
754
755
|
};
|
|
755
756
|
|
|
756
757
|
FilterUtil.formatStringFiscalYearPeriod = function (oDimFieldDisplay, bIsChartType, bIsSecondaryLabel) {
|
|
@@ -305,12 +305,12 @@ sap.ui.define([
|
|
|
305
305
|
var oMetaModel = oPresentationControlHandler.getModel().getMetaModel();
|
|
306
306
|
var sEntityTypeName = oMetaModel.getODataEntitySet(oPresentationControlHandler.getEntitySet()).entityType;
|
|
307
307
|
var oBinding = oPresentationControlHandler.getBinding(oState);
|
|
308
|
-
var sServiceUrl = oBinding.getDownloadUrl();
|
|
308
|
+
var sServiceUrl = oBinding ? oBinding.getDownloadUrl() : "";
|
|
309
309
|
// - For Analytical Binding.
|
|
310
310
|
// we recv. aApplicationFilter and aApplicationFilters binding both but aApplicationFilter have actual filters operator value.
|
|
311
311
|
// - For List Binding.
|
|
312
312
|
// we recv. only aApplicationFilters contains filter operator.
|
|
313
|
-
var aFilters = oBinding.aApplicationFilter || oBinding.aApplicationFilters;
|
|
313
|
+
var aFilters = oBinding ? (oBinding.aApplicationFilter || oBinding.aApplicationFilters) : [];
|
|
314
314
|
// non-draft case when no filter is applied
|
|
315
315
|
if (!aFilters.length) {
|
|
316
316
|
return Promise.resolve({
|
|
@@ -558,8 +558,9 @@ sap.ui.define([
|
|
|
558
558
|
oTemplateUtils.oServices.oInsightsFECardProvider.fnRegisterComponentForProvider(oState.oInsightsHandler, oController.getView().getId());
|
|
559
559
|
oTemplatePrivateModel.bindProperty("/generic/bDataAreShownInTable").attachChange(function(oChangeEvent) {
|
|
560
560
|
if (oChangeEvent.getSource().getValue()) {
|
|
561
|
-
|
|
562
|
-
|
|
561
|
+
oState.oInsightsHandler.getCardsToShare("Table").then(function (aShareCards) {
|
|
562
|
+
oCardProviderInstance.onViewUpdate(true, aShareCards);
|
|
563
|
+
});
|
|
563
564
|
} else {
|
|
564
565
|
oCardProviderInstance.onViewUpdate(true, []);
|
|
565
566
|
}
|
|
@@ -24,12 +24,31 @@ sap.ui.define([
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
/**
|
|
28
|
+
* Finds the breakout action data from "aBreakoutActionsData" (manifest action data) by toolbar button's local id.
|
|
29
|
+
* - In single view single table and multi view single table, buttons's local id = manifest action id.
|
|
30
|
+
* - In multi view multi table, local id = (manifest action id + "-" + multi view tab id)
|
|
31
|
+
*/
|
|
32
|
+
function fnFindBreakoutActionByLocalId(aBreakoutActionsData, sToolbarButtonLocalId) {
|
|
33
|
+
// In the multi table multi view scenario, the toolbar button id is suffixed with icon tab bar's current key.
|
|
34
|
+
var oMultipleViewsHandler = oState.oMultipleViewsHandler;
|
|
35
|
+
var sButtonIdSuffix = oMultipleViewsHandler.getMode && oMultipleViewsHandler.getMode() === "multi" ? oMultipleViewsHandler.getSelectedKey() : "";
|
|
36
|
+
return aBreakoutActionsData.find(function (oBreakoutAction) {
|
|
37
|
+
// In multi table multi view, toolbar button local id = (manifest action id + "-" + multi view tab id).
|
|
38
|
+
if (sButtonIdSuffix) {
|
|
39
|
+
return sToolbarButtonLocalId === (oBreakoutAction.id + "-" + sButtonIdSuffix);
|
|
40
|
+
}
|
|
41
|
+
return sToolbarButtonLocalId === oBreakoutAction.id;
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
|
|
27
45
|
function getGenericHandler(sSmartControlId){
|
|
28
46
|
var oRet = mGenericCtxMenuHandlers[sSmartControlId];
|
|
29
47
|
if (!oRet){
|
|
30
48
|
var oSmartControl = oController.byId(sSmartControlId);
|
|
31
49
|
var oConfiguration = {
|
|
32
|
-
executeAction: fnExecuteAction.bind(null, sSmartControlId)
|
|
50
|
+
executeAction: fnExecuteAction.bind(null, sSmartControlId),
|
|
51
|
+
findBreakoutActionByLocalId: fnFindBreakoutActionByLocalId
|
|
33
52
|
};
|
|
34
53
|
oRet = new ContextMenuHandler(oController, oTemplateUtils, oState, oSmartControl, oConfiguration);
|
|
35
54
|
mGenericCtxMenuHandlers[sSmartControlId] = oRet;
|
|
@@ -34,6 +34,9 @@ NAVIGATE_TO_DETAIL=Show Details
|
|
|
34
34
|
# YMSG, 100: exposed as subject of Email, example: Link to Object List
|
|
35
35
|
EMAIL_HEADER=Link to {0}
|
|
36
36
|
|
|
37
|
+
# XTIT,30: Title of a Toolbar with share button
|
|
38
|
+
CONTACT_OPTION=Microsoft Teams
|
|
39
|
+
|
|
37
40
|
# XTIT,30: Title of a form with contact person information
|
|
38
41
|
CONTACT_INFO=Contact Information
|
|
39
42
|
|