@sap-ux/preview-middleware 0.17.18 → 0.17.19
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/dist/client/adp/api-handler.js +153 -153
- package/dist/client/adp/command-executor.js +75 -75
- package/dist/client/adp/control-utils.js +44 -44
- package/dist/client/adp/controllers/BaseDialog.controller.js +187 -187
- package/dist/client/adp/controllers/ControllerExtension.controller.js +213 -213
- package/dist/client/adp/controllers/ExtensionPoint.controller.js +138 -138
- package/dist/client/adp/controllers/FileExistsDialog.controller.js +66 -66
- package/dist/client/adp/dialog-factory.js +122 -122
- package/dist/client/adp/init-dialogs.js +100 -100
- package/dist/client/adp/quick-actions/common/add-controller-to-page.js +55 -55
- package/dist/client/adp/quick-actions/common/create-page-action.js +50 -50
- package/dist/client/adp/quick-actions/common/op-add-custom-section.js +36 -36
- package/dist/client/adp/quick-actions/common/op-add-header-field.js +48 -48
- package/dist/client/adp/quick-actions/common/utils.js +18 -18
- package/dist/client/adp/quick-actions/control-types.js +21 -21
- package/dist/client/adp/quick-actions/dialog-enablement-validator.js +24 -24
- package/dist/client/adp/quick-actions/enablement-validator.js +4 -4
- package/dist/client/adp/quick-actions/fe-v2/change-table-columns.js +101 -101
- package/dist/client/adp/quick-actions/fe-v2/create-table-action.js +70 -70
- package/dist/client/adp/quick-actions/fe-v2/create-table-custom-column.js +96 -96
- package/dist/client/adp/quick-actions/fe-v2/lr-enable-semantic-date-range-filter-bar.js +78 -78
- package/dist/client/adp/quick-actions/fe-v2/lr-enable-table-filtering.js +77 -77
- package/dist/client/adp/quick-actions/fe-v2/lr-enable-variant-management.js +69 -69
- package/dist/client/adp/quick-actions/fe-v2/lr-toggle-clear-filter-bar.js +58 -58
- package/dist/client/adp/quick-actions/fe-v2/op-enable-empty-row-mode.js +93 -93
- package/dist/client/adp/quick-actions/fe-v2/op-enable-variant-management.js +81 -81
- package/dist/client/adp/quick-actions/fe-v2/registry.js +75 -75
- package/dist/client/adp/quick-actions/fe-v2/utils.js +95 -95
- package/dist/client/adp/quick-actions/fe-v4/change-table-columns.js +73 -73
- package/dist/client/adp/quick-actions/fe-v4/create-table-action.js +49 -49
- package/dist/client/adp/quick-actions/fe-v4/create-table-custom-column.js +46 -46
- package/dist/client/adp/quick-actions/fe-v4/enable-variant-management.js +81 -81
- package/dist/client/adp/quick-actions/fe-v4/lr-enable-semantic-date-range-filter-bar.js +55 -55
- package/dist/client/adp/quick-actions/fe-v4/lr-enable-table-filtering.js +82 -82
- package/dist/client/adp/quick-actions/fe-v4/lr-toggle-clear-filter-bar.js +52 -52
- package/dist/client/adp/quick-actions/fe-v4/op-enable-empty-row-mode.js +89 -89
- package/dist/client/adp/quick-actions/fe-v4/registry.js +58 -58
- package/dist/client/adp/quick-actions/fe-v4/utils.js +47 -47
- package/dist/client/adp/quick-actions/load.js +44 -44
- package/dist/client/adp/quick-actions/quick-action-base.js +53 -53
- package/dist/client/adp/utils.js +160 -160
- package/dist/client/cpe/changes/index.js +10 -10
- package/dist/client/cpe/changes/validator.js +39 -39
- package/dist/client/cpe/documentation.js +164 -164
- package/dist/client/cpe/feature-service.js +36 -36
- package/dist/client/cpe/logger.js +30 -30
- package/dist/client/cpe/outline/editable.js +37 -37
- package/dist/client/cpe/outline/nodes.js +222 -222
- package/dist/client/cpe/quick-actions/quick-action-definition.js +4 -4
- package/dist/client/cpe/quick-actions/registry.js +143 -143
- package/dist/client/cpe/quick-actions/utils.js +92 -92
- package/dist/client/cpe/types.js +4 -4
- package/dist/client/cpe/ui5-utils.js +33 -33
- package/dist/client/cpe/utils.js +138 -138
- package/dist/client/flp/WorkspaceConnector.js +86 -86
- package/dist/client/flp/common.js +28 -28
- package/dist/client/flp/enableFakeConnector.js +83 -83
- package/dist/client/flp/initConnectors.js +30 -30
- package/dist/client/flp/initRta.js +178 -178
- package/dist/client/i18n.js +56 -56
- package/dist/client/utils/application.js +32 -32
- package/dist/client/utils/core.js +68 -68
- package/dist/client/utils/error.js +19 -19
- package/dist/client/utils/fe-v4.js +118 -118
- package/dist/client/utils/version.js +102 -102
- package/package.json +5 -5
|
@@ -1,102 +1,102 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
sap.ui.define(["sap/ui/rta/util/hasStableId", "sap/ui/fl/Utils", "../cpe/utils", "./dialog-factory"], function (hasStableId, FlUtils, ___cpe_utils, ___dialog_factory) {
|
|
4
|
-
"use strict";
|
|
5
|
-
|
|
6
|
-
const isReuseComponent = ___cpe_utils["isReuseComponent"];
|
|
7
|
-
const DialogFactory = ___dialog_factory["DialogFactory"];
|
|
8
|
-
const DialogNames = ___dialog_factory["DialogNames"];
|
|
9
|
-
/**
|
|
10
|
-
* Handler for enablement of Extend With Controller context menu entry
|
|
11
|
-
*
|
|
12
|
-
* @param control UI5 control.
|
|
13
|
-
* @param syncViewsIds Runtime Authoring
|
|
14
|
-
* @param ui5VersionInfo UI5 version information
|
|
15
|
-
*
|
|
16
|
-
* @returns boolean whether menu item is enabled or not
|
|
17
|
-
*/
|
|
18
|
-
function isControllerExtensionEnabledForControl(control, syncViewsIds, ui5VersionInfo) {
|
|
19
|
-
const clickedControlId = FlUtils.getViewForControl(control).getId();
|
|
20
|
-
const isClickedControlReuseComponent = isReuseComponent(clickedControlId, ui5VersionInfo);
|
|
21
|
-
return !syncViewsIds.includes(clickedControlId) && !isClickedControlReuseComponent;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Handler for enablement of Extend With Controller context menu entry
|
|
26
|
-
*
|
|
27
|
-
* @param overlays Control overlays
|
|
28
|
-
* @param syncViewsIds Runtime Authoring
|
|
29
|
-
* @param ui5VersionInfo UI5 version information
|
|
30
|
-
*
|
|
31
|
-
* @returns boolean whether menu item is enabled or not
|
|
32
|
-
*/
|
|
33
|
-
const isControllerExtensionEnabled = (overlays, syncViewsIds, ui5VersionInfo) => {
|
|
34
|
-
if (overlays.length === 0 || overlays.length > 1) {
|
|
35
|
-
return false;
|
|
36
|
-
}
|
|
37
|
-
return isControllerExtensionEnabledForControl(overlays[0].getElement(), syncViewsIds, ui5VersionInfo);
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Determines whether the fragment command should be enabled based on the provided overlays.
|
|
42
|
-
*
|
|
43
|
-
* @param {ElementOverlay[]} overlays - An array of ElementOverlay objects representing the UI overlays.
|
|
44
|
-
* @param ui5VersionInfo UI5 version information
|
|
45
|
-
* @returns {boolean} True if the fragment command is enabled, false otherwise.
|
|
46
|
-
*/
|
|
47
|
-
const isFragmentCommandEnabled = (overlays, ui5VersionInfo) => {
|
|
48
|
-
if (overlays.length === 0 || overlays.length > 1) {
|
|
49
|
-
return false;
|
|
50
|
-
}
|
|
51
|
-
const control = overlays[0].getElement();
|
|
52
|
-
return hasStableId(overlays[0]) && !isReuseComponent(control.getId(), ui5VersionInfo);
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Determines the text that should be displayed for the Add Fragment context menu item.
|
|
57
|
-
*
|
|
58
|
-
* @param {ElementOverlay} overlay - An ElementOverlay object representing the UI overlay.
|
|
59
|
-
* @returns {string} The text of the Add Fragment context menu item.
|
|
60
|
-
*/
|
|
61
|
-
const getAddFragmentItemText = overlay => {
|
|
62
|
-
if (!hasStableId(overlay)) {
|
|
63
|
-
return 'Add: Fragment (Unavailable due to unstable ID of the control or its parent control)';
|
|
64
|
-
}
|
|
65
|
-
return 'Add: Fragment';
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Adds a new item to the context menu
|
|
70
|
-
*
|
|
71
|
-
* @param rta Runtime Authoring
|
|
72
|
-
* @param syncViewsIds Ids of all application sync views
|
|
73
|
-
* @param ui5VersionInfo UI5 version information
|
|
74
|
-
*/
|
|
75
|
-
const initDialogs = (rta, syncViewsIds, ui5VersionInfo) => {
|
|
76
|
-
const contextMenu = rta.getDefaultPlugins().contextMenu;
|
|
77
|
-
contextMenu.addMenuItem({
|
|
78
|
-
id: 'ADD_FRAGMENT',
|
|
79
|
-
text: getAddFragmentItemText,
|
|
80
|
-
handler: async overlays => await DialogFactory.createDialog(overlays[0], rta, DialogNames.ADD_FRAGMENT),
|
|
81
|
-
icon: 'sap-icon://attachment-html',
|
|
82
|
-
enabled: overlays => isFragmentCommandEnabled(overlays, ui5VersionInfo)
|
|
83
|
-
});
|
|
84
|
-
contextMenu.addMenuItem({
|
|
85
|
-
id: 'EXTEND_CONTROLLER',
|
|
86
|
-
text: 'Extend With Controller',
|
|
87
|
-
handler: async overlays => await DialogFactory.createDialog(overlays[0], rta, DialogNames.CONTROLLER_EXTENSION),
|
|
88
|
-
icon: 'sap-icon://create-form',
|
|
89
|
-
enabled: overlays => isControllerExtensionEnabled(overlays, syncViewsIds, ui5VersionInfo)
|
|
90
|
-
});
|
|
91
|
-
};
|
|
92
|
-
var __exports = {
|
|
93
|
-
__esModule: true
|
|
94
|
-
};
|
|
95
|
-
__exports.isControllerExtensionEnabledForControl = isControllerExtensionEnabledForControl;
|
|
96
|
-
__exports.isControllerExtensionEnabled = isControllerExtensionEnabled;
|
|
97
|
-
__exports.isFragmentCommandEnabled = isFragmentCommandEnabled;
|
|
98
|
-
__exports.getAddFragmentItemText = getAddFragmentItemText;
|
|
99
|
-
__exports.initDialogs = initDialogs;
|
|
100
|
-
return __exports;
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
sap.ui.define(["sap/ui/rta/util/hasStableId", "sap/ui/fl/Utils", "../cpe/utils", "./dialog-factory"], function (hasStableId, FlUtils, ___cpe_utils, ___dialog_factory) {
|
|
4
|
+
"use strict";
|
|
5
|
+
|
|
6
|
+
const isReuseComponent = ___cpe_utils["isReuseComponent"];
|
|
7
|
+
const DialogFactory = ___dialog_factory["DialogFactory"];
|
|
8
|
+
const DialogNames = ___dialog_factory["DialogNames"];
|
|
9
|
+
/**
|
|
10
|
+
* Handler for enablement of Extend With Controller context menu entry
|
|
11
|
+
*
|
|
12
|
+
* @param control UI5 control.
|
|
13
|
+
* @param syncViewsIds Runtime Authoring
|
|
14
|
+
* @param ui5VersionInfo UI5 version information
|
|
15
|
+
*
|
|
16
|
+
* @returns boolean whether menu item is enabled or not
|
|
17
|
+
*/
|
|
18
|
+
function isControllerExtensionEnabledForControl(control, syncViewsIds, ui5VersionInfo) {
|
|
19
|
+
const clickedControlId = FlUtils.getViewForControl(control).getId();
|
|
20
|
+
const isClickedControlReuseComponent = isReuseComponent(clickedControlId, ui5VersionInfo);
|
|
21
|
+
return !syncViewsIds.includes(clickedControlId) && !isClickedControlReuseComponent;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Handler for enablement of Extend With Controller context menu entry
|
|
26
|
+
*
|
|
27
|
+
* @param overlays Control overlays
|
|
28
|
+
* @param syncViewsIds Runtime Authoring
|
|
29
|
+
* @param ui5VersionInfo UI5 version information
|
|
30
|
+
*
|
|
31
|
+
* @returns boolean whether menu item is enabled or not
|
|
32
|
+
*/
|
|
33
|
+
const isControllerExtensionEnabled = (overlays, syncViewsIds, ui5VersionInfo) => {
|
|
34
|
+
if (overlays.length === 0 || overlays.length > 1) {
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
return isControllerExtensionEnabledForControl(overlays[0].getElement(), syncViewsIds, ui5VersionInfo);
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Determines whether the fragment command should be enabled based on the provided overlays.
|
|
42
|
+
*
|
|
43
|
+
* @param {ElementOverlay[]} overlays - An array of ElementOverlay objects representing the UI overlays.
|
|
44
|
+
* @param ui5VersionInfo UI5 version information
|
|
45
|
+
* @returns {boolean} True if the fragment command is enabled, false otherwise.
|
|
46
|
+
*/
|
|
47
|
+
const isFragmentCommandEnabled = (overlays, ui5VersionInfo) => {
|
|
48
|
+
if (overlays.length === 0 || overlays.length > 1) {
|
|
49
|
+
return false;
|
|
50
|
+
}
|
|
51
|
+
const control = overlays[0].getElement();
|
|
52
|
+
return hasStableId(overlays[0]) && !isReuseComponent(control.getId(), ui5VersionInfo);
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Determines the text that should be displayed for the Add Fragment context menu item.
|
|
57
|
+
*
|
|
58
|
+
* @param {ElementOverlay} overlay - An ElementOverlay object representing the UI overlay.
|
|
59
|
+
* @returns {string} The text of the Add Fragment context menu item.
|
|
60
|
+
*/
|
|
61
|
+
const getAddFragmentItemText = overlay => {
|
|
62
|
+
if (!hasStableId(overlay)) {
|
|
63
|
+
return 'Add: Fragment (Unavailable due to unstable ID of the control or its parent control)';
|
|
64
|
+
}
|
|
65
|
+
return 'Add: Fragment';
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Adds a new item to the context menu
|
|
70
|
+
*
|
|
71
|
+
* @param rta Runtime Authoring
|
|
72
|
+
* @param syncViewsIds Ids of all application sync views
|
|
73
|
+
* @param ui5VersionInfo UI5 version information
|
|
74
|
+
*/
|
|
75
|
+
const initDialogs = (rta, syncViewsIds, ui5VersionInfo) => {
|
|
76
|
+
const contextMenu = rta.getDefaultPlugins().contextMenu;
|
|
77
|
+
contextMenu.addMenuItem({
|
|
78
|
+
id: 'ADD_FRAGMENT',
|
|
79
|
+
text: getAddFragmentItemText,
|
|
80
|
+
handler: async overlays => await DialogFactory.createDialog(overlays[0], rta, DialogNames.ADD_FRAGMENT),
|
|
81
|
+
icon: 'sap-icon://attachment-html',
|
|
82
|
+
enabled: overlays => isFragmentCommandEnabled(overlays, ui5VersionInfo)
|
|
83
|
+
});
|
|
84
|
+
contextMenu.addMenuItem({
|
|
85
|
+
id: 'EXTEND_CONTROLLER',
|
|
86
|
+
text: 'Extend With Controller',
|
|
87
|
+
handler: async overlays => await DialogFactory.createDialog(overlays[0], rta, DialogNames.CONTROLLER_EXTENSION),
|
|
88
|
+
icon: 'sap-icon://create-form',
|
|
89
|
+
enabled: overlays => isControllerExtensionEnabled(overlays, syncViewsIds, ui5VersionInfo)
|
|
90
|
+
});
|
|
91
|
+
};
|
|
92
|
+
var __exports = {
|
|
93
|
+
__esModule: true
|
|
94
|
+
};
|
|
95
|
+
__exports.isControllerExtensionEnabledForControl = isControllerExtensionEnabledForControl;
|
|
96
|
+
__exports.isControllerExtensionEnabled = isControllerExtensionEnabled;
|
|
97
|
+
__exports.isFragmentCommandEnabled = isFragmentCommandEnabled;
|
|
98
|
+
__exports.getAddFragmentItemText = getAddFragmentItemText;
|
|
99
|
+
__exports.initDialogs = initDialogs;
|
|
100
|
+
return __exports;
|
|
101
101
|
});
|
|
102
102
|
//# sourceMappingURL=init-dialogs.js.map
|
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
sap.ui.define(["sap/ui/dt/OverlayRegistry", "../../../utils/version", "../../utils", "../../../cpe/quick-actions/utils", "../../dialog-factory", "../../init-dialogs", "../../api-handler", "../simple-quick-action-base", "../dialog-enablement-validator"], function (OverlayRegistry, _____utils_version, ____utils, _____cpe_quick_actions_utils, ____dialog_factory, ____init_dialogs, ____api_handler, ___simple_quick_action_base, ___dialog_enablement_validator) {
|
|
4
|
-
"use strict";
|
|
5
|
-
|
|
6
|
-
const getUi5Version = _____utils_version["getUi5Version"];
|
|
7
|
-
const getAllSyncViewsIds = ____utils["getAllSyncViewsIds"];
|
|
8
|
-
const getControllerInfoForControl = ____utils["getControllerInfoForControl"];
|
|
9
|
-
const getRelevantControlFromActivePage = _____cpe_quick_actions_utils["getRelevantControlFromActivePage"];
|
|
10
|
-
const DialogFactory = ____dialog_factory["DialogFactory"];
|
|
11
|
-
const DialogNames = ____dialog_factory["DialogNames"];
|
|
12
|
-
const isControllerExtensionEnabledForControl = ____init_dialogs["isControllerExtensionEnabledForControl"];
|
|
13
|
-
const getExistingController = ____api_handler["getExistingController"];
|
|
14
|
-
const SimpleQuickActionDefinitionBase = ___simple_quick_action_base["SimpleQuickActionDefinitionBase"];
|
|
15
|
-
const DIALOG_ENABLEMENT_VALIDATOR = ___dialog_enablement_validator["DIALOG_ENABLEMENT_VALIDATOR"];
|
|
16
|
-
const ADD_CONTROLLER_TO_PAGE_TYPE = 'add-controller-to-page';
|
|
17
|
-
const CONTROL_TYPES = ['sap.f.DynamicPage', 'sap.uxap.ObjectPageLayout'];
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Quick Action for adding controller to a page.
|
|
21
|
-
*/
|
|
22
|
-
class AddControllerToPageQuickAction extends SimpleQuickActionDefinitionBase {
|
|
23
|
-
constructor(context) {
|
|
24
|
-
super(ADD_CONTROLLER_TO_PAGE_TYPE, CONTROL_TYPES, '', context, [DIALOG_ENABLEMENT_VALIDATOR]);
|
|
25
|
-
}
|
|
26
|
-
controllerExists = false;
|
|
27
|
-
async initialize() {
|
|
28
|
-
for (const control of getRelevantControlFromActivePage(this.context.controlIndex, this.context.view, CONTROL_TYPES)) {
|
|
29
|
-
const version = await getUi5Version();
|
|
30
|
-
const syncViewsIds = await getAllSyncViewsIds(version);
|
|
31
|
-
const controlInfo = getControllerInfoForControl(control);
|
|
32
|
-
const data = await getExistingController(controlInfo.controllerName);
|
|
33
|
-
this.controllerExists = data?.controllerExists;
|
|
34
|
-
const isActiveAction = isControllerExtensionEnabledForControl(control, syncViewsIds, version);
|
|
35
|
-
this.control = isActiveAction ? control : undefined;
|
|
36
|
-
break;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
get textKey() {
|
|
40
|
-
return this.controllerExists ? 'QUICK_ACTION_SHOW_PAGE_CONTROLLER' : 'QUICK_ACTION_ADD_PAGE_CONTROLLER';
|
|
41
|
-
}
|
|
42
|
-
async execute() {
|
|
43
|
-
if (this.control) {
|
|
44
|
-
const overlay = OverlayRegistry.getOverlay(this.control) || [];
|
|
45
|
-
await DialogFactory.createDialog(overlay, this.context.rta, DialogNames.CONTROLLER_EXTENSION);
|
|
46
|
-
}
|
|
47
|
-
return [];
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
var __exports = {
|
|
51
|
-
__esModule: true
|
|
52
|
-
};
|
|
53
|
-
__exports.ADD_CONTROLLER_TO_PAGE_TYPE = ADD_CONTROLLER_TO_PAGE_TYPE;
|
|
54
|
-
__exports.AddControllerToPageQuickAction = AddControllerToPageQuickAction;
|
|
55
|
-
return __exports;
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
sap.ui.define(["sap/ui/dt/OverlayRegistry", "../../../utils/version", "../../utils", "../../../cpe/quick-actions/utils", "../../dialog-factory", "../../init-dialogs", "../../api-handler", "../simple-quick-action-base", "../dialog-enablement-validator"], function (OverlayRegistry, _____utils_version, ____utils, _____cpe_quick_actions_utils, ____dialog_factory, ____init_dialogs, ____api_handler, ___simple_quick_action_base, ___dialog_enablement_validator) {
|
|
4
|
+
"use strict";
|
|
5
|
+
|
|
6
|
+
const getUi5Version = _____utils_version["getUi5Version"];
|
|
7
|
+
const getAllSyncViewsIds = ____utils["getAllSyncViewsIds"];
|
|
8
|
+
const getControllerInfoForControl = ____utils["getControllerInfoForControl"];
|
|
9
|
+
const getRelevantControlFromActivePage = _____cpe_quick_actions_utils["getRelevantControlFromActivePage"];
|
|
10
|
+
const DialogFactory = ____dialog_factory["DialogFactory"];
|
|
11
|
+
const DialogNames = ____dialog_factory["DialogNames"];
|
|
12
|
+
const isControllerExtensionEnabledForControl = ____init_dialogs["isControllerExtensionEnabledForControl"];
|
|
13
|
+
const getExistingController = ____api_handler["getExistingController"];
|
|
14
|
+
const SimpleQuickActionDefinitionBase = ___simple_quick_action_base["SimpleQuickActionDefinitionBase"];
|
|
15
|
+
const DIALOG_ENABLEMENT_VALIDATOR = ___dialog_enablement_validator["DIALOG_ENABLEMENT_VALIDATOR"];
|
|
16
|
+
const ADD_CONTROLLER_TO_PAGE_TYPE = 'add-controller-to-page';
|
|
17
|
+
const CONTROL_TYPES = ['sap.f.DynamicPage', 'sap.uxap.ObjectPageLayout'];
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Quick Action for adding controller to a page.
|
|
21
|
+
*/
|
|
22
|
+
class AddControllerToPageQuickAction extends SimpleQuickActionDefinitionBase {
|
|
23
|
+
constructor(context) {
|
|
24
|
+
super(ADD_CONTROLLER_TO_PAGE_TYPE, CONTROL_TYPES, '', context, [DIALOG_ENABLEMENT_VALIDATOR]);
|
|
25
|
+
}
|
|
26
|
+
controllerExists = false;
|
|
27
|
+
async initialize() {
|
|
28
|
+
for (const control of getRelevantControlFromActivePage(this.context.controlIndex, this.context.view, CONTROL_TYPES)) {
|
|
29
|
+
const version = await getUi5Version();
|
|
30
|
+
const syncViewsIds = await getAllSyncViewsIds(version);
|
|
31
|
+
const controlInfo = getControllerInfoForControl(control);
|
|
32
|
+
const data = await getExistingController(controlInfo.controllerName);
|
|
33
|
+
this.controllerExists = data?.controllerExists;
|
|
34
|
+
const isActiveAction = isControllerExtensionEnabledForControl(control, syncViewsIds, version);
|
|
35
|
+
this.control = isActiveAction ? control : undefined;
|
|
36
|
+
break;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
get textKey() {
|
|
40
|
+
return this.controllerExists ? 'QUICK_ACTION_SHOW_PAGE_CONTROLLER' : 'QUICK_ACTION_ADD_PAGE_CONTROLLER';
|
|
41
|
+
}
|
|
42
|
+
async execute() {
|
|
43
|
+
if (this.control) {
|
|
44
|
+
const overlay = OverlayRegistry.getOverlay(this.control) || [];
|
|
45
|
+
await DialogFactory.createDialog(overlay, this.context.rta, DialogNames.CONTROLLER_EXTENSION);
|
|
46
|
+
}
|
|
47
|
+
return [];
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
var __exports = {
|
|
51
|
+
__esModule: true
|
|
52
|
+
};
|
|
53
|
+
__exports.ADD_CONTROLLER_TO_PAGE_TYPE = ADD_CONTROLLER_TO_PAGE_TYPE;
|
|
54
|
+
__exports.AddControllerToPageQuickAction = AddControllerToPageQuickAction;
|
|
55
|
+
return __exports;
|
|
56
56
|
});
|
|
57
57
|
//# sourceMappingURL=add-controller-to-page.js.map
|
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
sap.ui.define(["sap/ui/dt/OverlayRegistry", "../../dialog-factory", "../simple-quick-action-base", "../../../utils/application", "../../../utils/version", "../dialog-enablement-validator"], function (OverlayRegistry, ____dialog_factory, ___simple_quick_action_base, _____utils_application, _____utils_version, ___dialog_enablement_validator) {
|
|
4
|
-
"use strict";
|
|
5
|
-
|
|
6
|
-
const DialogFactory = ____dialog_factory["DialogFactory"];
|
|
7
|
-
const DialogNames = ____dialog_factory["DialogNames"];
|
|
8
|
-
const SimpleQuickActionDefinitionBase = ___simple_quick_action_base["SimpleQuickActionDefinitionBase"];
|
|
9
|
-
const getApplicationType = _____utils_application["getApplicationType"];
|
|
10
|
-
const getUi5Version = _____utils_version["getUi5Version"];
|
|
11
|
-
const isLowerThanMinimalUi5Version = _____utils_version["isLowerThanMinimalUi5Version"];
|
|
12
|
-
const DIALOG_ENABLEMENT_VALIDATOR = ___dialog_enablement_validator["DIALOG_ENABLEMENT_VALIDATOR"];
|
|
13
|
-
const ADD_PAGE_ACTION = 'add-page-action';
|
|
14
|
-
const CONTROL_TYPES = ['sap.f.DynamicPageTitle', 'sap.uxap.ObjectPageHeader', 'sap.uxap.ObjectPageDynamicHeaderTitle'];
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Quick Action for adding a custom page action.
|
|
18
|
-
*/
|
|
19
|
-
class AddPageActionQuickAction extends SimpleQuickActionDefinitionBase {
|
|
20
|
-
constructor(context) {
|
|
21
|
-
super(ADD_PAGE_ACTION, CONTROL_TYPES, 'QUICK_ACTION_ADD_CUSTOM_PAGE_ACTION', context, [DIALOG_ENABLEMENT_VALIDATOR]);
|
|
22
|
-
}
|
|
23
|
-
async initialize() {
|
|
24
|
-
const appType = getApplicationType(this.context.rta.getRootControlInstance().getManifest());
|
|
25
|
-
const version = await getUi5Version();
|
|
26
|
-
if (appType === 'fe-v4' && isLowerThanMinimalUi5Version(version, {
|
|
27
|
-
major: 1,
|
|
28
|
-
minor: 130
|
|
29
|
-
})) {
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
super.initialize();
|
|
33
|
-
}
|
|
34
|
-
async execute() {
|
|
35
|
-
if (this.control) {
|
|
36
|
-
const overlay = OverlayRegistry.getOverlay(this.control) || [];
|
|
37
|
-
await DialogFactory.createDialog(overlay, this.context.rta, DialogNames.ADD_FRAGMENT, undefined, {
|
|
38
|
-
aggregation: 'actions',
|
|
39
|
-
title: 'QUICK_ACTION_ADD_CUSTOM_PAGE_ACTION'
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
return [];
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
var __exports = {
|
|
46
|
-
__esModule: true
|
|
47
|
-
};
|
|
48
|
-
__exports.ADD_PAGE_ACTION = ADD_PAGE_ACTION;
|
|
49
|
-
__exports.AddPageActionQuickAction = AddPageActionQuickAction;
|
|
50
|
-
return __exports;
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
sap.ui.define(["sap/ui/dt/OverlayRegistry", "../../dialog-factory", "../simple-quick-action-base", "../../../utils/application", "../../../utils/version", "../dialog-enablement-validator"], function (OverlayRegistry, ____dialog_factory, ___simple_quick_action_base, _____utils_application, _____utils_version, ___dialog_enablement_validator) {
|
|
4
|
+
"use strict";
|
|
5
|
+
|
|
6
|
+
const DialogFactory = ____dialog_factory["DialogFactory"];
|
|
7
|
+
const DialogNames = ____dialog_factory["DialogNames"];
|
|
8
|
+
const SimpleQuickActionDefinitionBase = ___simple_quick_action_base["SimpleQuickActionDefinitionBase"];
|
|
9
|
+
const getApplicationType = _____utils_application["getApplicationType"];
|
|
10
|
+
const getUi5Version = _____utils_version["getUi5Version"];
|
|
11
|
+
const isLowerThanMinimalUi5Version = _____utils_version["isLowerThanMinimalUi5Version"];
|
|
12
|
+
const DIALOG_ENABLEMENT_VALIDATOR = ___dialog_enablement_validator["DIALOG_ENABLEMENT_VALIDATOR"];
|
|
13
|
+
const ADD_PAGE_ACTION = 'add-page-action';
|
|
14
|
+
const CONTROL_TYPES = ['sap.f.DynamicPageTitle', 'sap.uxap.ObjectPageHeader', 'sap.uxap.ObjectPageDynamicHeaderTitle'];
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Quick Action for adding a custom page action.
|
|
18
|
+
*/
|
|
19
|
+
class AddPageActionQuickAction extends SimpleQuickActionDefinitionBase {
|
|
20
|
+
constructor(context) {
|
|
21
|
+
super(ADD_PAGE_ACTION, CONTROL_TYPES, 'QUICK_ACTION_ADD_CUSTOM_PAGE_ACTION', context, [DIALOG_ENABLEMENT_VALIDATOR]);
|
|
22
|
+
}
|
|
23
|
+
async initialize() {
|
|
24
|
+
const appType = getApplicationType(this.context.rta.getRootControlInstance().getManifest());
|
|
25
|
+
const version = await getUi5Version();
|
|
26
|
+
if (appType === 'fe-v4' && isLowerThanMinimalUi5Version(version, {
|
|
27
|
+
major: 1,
|
|
28
|
+
minor: 130
|
|
29
|
+
})) {
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
super.initialize();
|
|
33
|
+
}
|
|
34
|
+
async execute() {
|
|
35
|
+
if (this.control) {
|
|
36
|
+
const overlay = OverlayRegistry.getOverlay(this.control) || [];
|
|
37
|
+
await DialogFactory.createDialog(overlay, this.context.rta, DialogNames.ADD_FRAGMENT, undefined, {
|
|
38
|
+
aggregation: 'actions',
|
|
39
|
+
title: 'QUICK_ACTION_ADD_CUSTOM_PAGE_ACTION'
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
return [];
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
var __exports = {
|
|
46
|
+
__esModule: true
|
|
47
|
+
};
|
|
48
|
+
__exports.ADD_PAGE_ACTION = ADD_PAGE_ACTION;
|
|
49
|
+
__exports.AddPageActionQuickAction = AddPageActionQuickAction;
|
|
50
|
+
return __exports;
|
|
51
51
|
});
|
|
52
52
|
//# sourceMappingURL=create-page-action.js.map
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
sap.ui.define(["sap/ui/dt/OverlayRegistry", "../../dialog-factory", "../../../cpe/quick-actions/utils", "../simple-quick-action-base", "../dialog-enablement-validator"], function (OverlayRegistry, ____dialog_factory, _____cpe_quick_actions_utils, ___simple_quick_action_base, ___dialog_enablement_validator) {
|
|
4
|
-
"use strict";
|
|
5
|
-
|
|
6
|
-
const DialogFactory = ____dialog_factory["DialogFactory"];
|
|
7
|
-
const DialogNames = ____dialog_factory["DialogNames"];
|
|
8
|
-
const getRelevantControlFromActivePage = _____cpe_quick_actions_utils["getRelevantControlFromActivePage"];
|
|
9
|
-
const SimpleQuickActionDefinitionBase = ___simple_quick_action_base["SimpleQuickActionDefinitionBase"];
|
|
10
|
-
const DIALOG_ENABLEMENT_VALIDATOR = ___dialog_enablement_validator["DIALOG_ENABLEMENT_VALIDATOR"];
|
|
11
|
-
const OP_ADD_CUSTOM_SECTION = 'op-add-custom-section';
|
|
12
|
-
const CONTROL_TYPES = ['sap.uxap.ObjectPageLayout'];
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Quick Action for adding a Header Field to an Object Page.
|
|
16
|
-
*/
|
|
17
|
-
class AddCustomSectionQuickAction extends SimpleQuickActionDefinitionBase {
|
|
18
|
-
constructor(context) {
|
|
19
|
-
super(OP_ADD_CUSTOM_SECTION, CONTROL_TYPES, 'QUICK_ACTION_OP_ADD_CUSTOM_SECTION', context, [DIALOG_ENABLEMENT_VALIDATOR]);
|
|
20
|
-
}
|
|
21
|
-
async execute() {
|
|
22
|
-
const objectPageLayout = getRelevantControlFromActivePage(this.context.controlIndex, this.context.view, CONTROL_TYPES)[0];
|
|
23
|
-
const overlay = OverlayRegistry.getOverlay(objectPageLayout) || [];
|
|
24
|
-
await DialogFactory.createDialog(overlay, this.context.rta, DialogNames.ADD_FRAGMENT, undefined, {
|
|
25
|
-
aggregation: 'sections',
|
|
26
|
-
title: 'QUICK_ACTION_OP_ADD_CUSTOM_SECTION'
|
|
27
|
-
});
|
|
28
|
-
return [];
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
var __exports = {
|
|
32
|
-
__esModule: true
|
|
33
|
-
};
|
|
34
|
-
__exports.OP_ADD_CUSTOM_SECTION = OP_ADD_CUSTOM_SECTION;
|
|
35
|
-
__exports.AddCustomSectionQuickAction = AddCustomSectionQuickAction;
|
|
36
|
-
return __exports;
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
sap.ui.define(["sap/ui/dt/OverlayRegistry", "../../dialog-factory", "../../../cpe/quick-actions/utils", "../simple-quick-action-base", "../dialog-enablement-validator"], function (OverlayRegistry, ____dialog_factory, _____cpe_quick_actions_utils, ___simple_quick_action_base, ___dialog_enablement_validator) {
|
|
4
|
+
"use strict";
|
|
5
|
+
|
|
6
|
+
const DialogFactory = ____dialog_factory["DialogFactory"];
|
|
7
|
+
const DialogNames = ____dialog_factory["DialogNames"];
|
|
8
|
+
const getRelevantControlFromActivePage = _____cpe_quick_actions_utils["getRelevantControlFromActivePage"];
|
|
9
|
+
const SimpleQuickActionDefinitionBase = ___simple_quick_action_base["SimpleQuickActionDefinitionBase"];
|
|
10
|
+
const DIALOG_ENABLEMENT_VALIDATOR = ___dialog_enablement_validator["DIALOG_ENABLEMENT_VALIDATOR"];
|
|
11
|
+
const OP_ADD_CUSTOM_SECTION = 'op-add-custom-section';
|
|
12
|
+
const CONTROL_TYPES = ['sap.uxap.ObjectPageLayout'];
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Quick Action for adding a Header Field to an Object Page.
|
|
16
|
+
*/
|
|
17
|
+
class AddCustomSectionQuickAction extends SimpleQuickActionDefinitionBase {
|
|
18
|
+
constructor(context) {
|
|
19
|
+
super(OP_ADD_CUSTOM_SECTION, CONTROL_TYPES, 'QUICK_ACTION_OP_ADD_CUSTOM_SECTION', context, [DIALOG_ENABLEMENT_VALIDATOR]);
|
|
20
|
+
}
|
|
21
|
+
async execute() {
|
|
22
|
+
const objectPageLayout = getRelevantControlFromActivePage(this.context.controlIndex, this.context.view, CONTROL_TYPES)[0];
|
|
23
|
+
const overlay = OverlayRegistry.getOverlay(objectPageLayout) || [];
|
|
24
|
+
await DialogFactory.createDialog(overlay, this.context.rta, DialogNames.ADD_FRAGMENT, undefined, {
|
|
25
|
+
aggregation: 'sections',
|
|
26
|
+
title: 'QUICK_ACTION_OP_ADD_CUSTOM_SECTION'
|
|
27
|
+
});
|
|
28
|
+
return [];
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
var __exports = {
|
|
32
|
+
__esModule: true
|
|
33
|
+
};
|
|
34
|
+
__exports.OP_ADD_CUSTOM_SECTION = OP_ADD_CUSTOM_SECTION;
|
|
35
|
+
__exports.AddCustomSectionQuickAction = AddCustomSectionQuickAction;
|
|
36
|
+
return __exports;
|
|
37
37
|
});
|
|
38
38
|
//# sourceMappingURL=op-add-custom-section.js.map
|
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
sap.ui.define(["sap/ui/dt/OverlayRegistry", "../../dialog-factory", "../../../cpe/quick-actions/utils", "../../../utils/core", "../simple-quick-action-base", "../dialog-enablement-validator"], function (OverlayRegistry, ____dialog_factory, _____cpe_quick_actions_utils, _____utils_core, ___simple_quick_action_base, ___dialog_enablement_validator) {
|
|
4
|
-
"use strict";
|
|
5
|
-
|
|
6
|
-
const DialogFactory = ____dialog_factory["DialogFactory"];
|
|
7
|
-
const DialogNames = ____dialog_factory["DialogNames"];
|
|
8
|
-
const getRelevantControlFromActivePage = _____cpe_quick_actions_utils["getRelevantControlFromActivePage"];
|
|
9
|
-
const isA = _____utils_core["isA"];
|
|
10
|
-
const SimpleQuickActionDefinitionBase = ___simple_quick_action_base["SimpleQuickActionDefinitionBase"];
|
|
11
|
-
const DIALOG_ENABLEMENT_VALIDATOR = ___dialog_enablement_validator["DIALOG_ENABLEMENT_VALIDATOR"];
|
|
12
|
-
const OP_ADD_HEADER_FIELD_TYPE = 'op-add-header-field';
|
|
13
|
-
const CONTROL_TYPES = ['sap.uxap.ObjectPageLayout'];
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Quick Action for adding a Header Field to an Object Page.
|
|
17
|
-
*/
|
|
18
|
-
class AddHeaderFieldQuickAction extends SimpleQuickActionDefinitionBase {
|
|
19
|
-
constructor(context) {
|
|
20
|
-
super(OP_ADD_HEADER_FIELD_TYPE, CONTROL_TYPES, 'QUICK_ACTION_OP_ADD_HEADER_FIELD', context, [DIALOG_ENABLEMENT_VALIDATOR]);
|
|
21
|
-
}
|
|
22
|
-
async execute() {
|
|
23
|
-
const objectPageLayout = getRelevantControlFromActivePage(this.context.controlIndex, this.context.view, CONTROL_TYPES)[0];
|
|
24
|
-
const headerContent = objectPageLayout.getHeaderContent();
|
|
25
|
-
|
|
26
|
-
// check if only flex box exist in the headerContent.
|
|
27
|
-
if (headerContent.length === 1 && isA('sap.m.FlexBox', headerContent[0])) {
|
|
28
|
-
const overlay = OverlayRegistry.getOverlay(headerContent[0]) || [];
|
|
29
|
-
await DialogFactory.createDialog(overlay, this.context.rta, DialogNames.ADD_FRAGMENT, undefined, {
|
|
30
|
-
aggregation: 'items',
|
|
31
|
-
title: 'QUICK_ACTION_OP_ADD_HEADER_FIELD'
|
|
32
|
-
});
|
|
33
|
-
} else if (this.control) {
|
|
34
|
-
const overlay = OverlayRegistry.getOverlay(this.control) || [];
|
|
35
|
-
await DialogFactory.createDialog(overlay, this.context.rta, DialogNames.ADD_FRAGMENT, undefined, {
|
|
36
|
-
aggregation: 'headerContent',
|
|
37
|
-
title: 'QUICK_ACTION_OP_ADD_HEADER_FIELD'
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
return [];
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
var __exports = {
|
|
44
|
-
__esModule: true
|
|
45
|
-
};
|
|
46
|
-
__exports.OP_ADD_HEADER_FIELD_TYPE = OP_ADD_HEADER_FIELD_TYPE;
|
|
47
|
-
__exports.AddHeaderFieldQuickAction = AddHeaderFieldQuickAction;
|
|
48
|
-
return __exports;
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
sap.ui.define(["sap/ui/dt/OverlayRegistry", "../../dialog-factory", "../../../cpe/quick-actions/utils", "../../../utils/core", "../simple-quick-action-base", "../dialog-enablement-validator"], function (OverlayRegistry, ____dialog_factory, _____cpe_quick_actions_utils, _____utils_core, ___simple_quick_action_base, ___dialog_enablement_validator) {
|
|
4
|
+
"use strict";
|
|
5
|
+
|
|
6
|
+
const DialogFactory = ____dialog_factory["DialogFactory"];
|
|
7
|
+
const DialogNames = ____dialog_factory["DialogNames"];
|
|
8
|
+
const getRelevantControlFromActivePage = _____cpe_quick_actions_utils["getRelevantControlFromActivePage"];
|
|
9
|
+
const isA = _____utils_core["isA"];
|
|
10
|
+
const SimpleQuickActionDefinitionBase = ___simple_quick_action_base["SimpleQuickActionDefinitionBase"];
|
|
11
|
+
const DIALOG_ENABLEMENT_VALIDATOR = ___dialog_enablement_validator["DIALOG_ENABLEMENT_VALIDATOR"];
|
|
12
|
+
const OP_ADD_HEADER_FIELD_TYPE = 'op-add-header-field';
|
|
13
|
+
const CONTROL_TYPES = ['sap.uxap.ObjectPageLayout'];
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Quick Action for adding a Header Field to an Object Page.
|
|
17
|
+
*/
|
|
18
|
+
class AddHeaderFieldQuickAction extends SimpleQuickActionDefinitionBase {
|
|
19
|
+
constructor(context) {
|
|
20
|
+
super(OP_ADD_HEADER_FIELD_TYPE, CONTROL_TYPES, 'QUICK_ACTION_OP_ADD_HEADER_FIELD', context, [DIALOG_ENABLEMENT_VALIDATOR]);
|
|
21
|
+
}
|
|
22
|
+
async execute() {
|
|
23
|
+
const objectPageLayout = getRelevantControlFromActivePage(this.context.controlIndex, this.context.view, CONTROL_TYPES)[0];
|
|
24
|
+
const headerContent = objectPageLayout.getHeaderContent();
|
|
25
|
+
|
|
26
|
+
// check if only flex box exist in the headerContent.
|
|
27
|
+
if (headerContent.length === 1 && isA('sap.m.FlexBox', headerContent[0])) {
|
|
28
|
+
const overlay = OverlayRegistry.getOverlay(headerContent[0]) || [];
|
|
29
|
+
await DialogFactory.createDialog(overlay, this.context.rta, DialogNames.ADD_FRAGMENT, undefined, {
|
|
30
|
+
aggregation: 'items',
|
|
31
|
+
title: 'QUICK_ACTION_OP_ADD_HEADER_FIELD'
|
|
32
|
+
});
|
|
33
|
+
} else if (this.control) {
|
|
34
|
+
const overlay = OverlayRegistry.getOverlay(this.control) || [];
|
|
35
|
+
await DialogFactory.createDialog(overlay, this.context.rta, DialogNames.ADD_FRAGMENT, undefined, {
|
|
36
|
+
aggregation: 'headerContent',
|
|
37
|
+
title: 'QUICK_ACTION_OP_ADD_HEADER_FIELD'
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
return [];
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
var __exports = {
|
|
44
|
+
__esModule: true
|
|
45
|
+
};
|
|
46
|
+
__exports.OP_ADD_HEADER_FIELD_TYPE = OP_ADD_HEADER_FIELD_TYPE;
|
|
47
|
+
__exports.AddHeaderFieldQuickAction = AddHeaderFieldQuickAction;
|
|
48
|
+
return __exports;
|
|
49
49
|
});
|
|
50
50
|
//# sourceMappingURL=op-add-header-field.js.map
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
sap.ui.define([], function () {
|
|
4
|
-
"use strict";
|
|
5
|
-
|
|
6
|
-
function getTooltipsForTableEmptyRowModeAction(resourceBundle) {
|
|
7
|
-
const alreadyEnabledTooltip = resourceBundle.getText('EMPTY_ROW_MODE_IS_ALREADY_ENABLED');
|
|
8
|
-
const unsupportedCreationRowsTooltip = resourceBundle.getText('EMPTY_ROW_MODE_IS_NOT_SUPPORTED');
|
|
9
|
-
return {
|
|
10
|
-
alreadyEnabledTooltip,
|
|
11
|
-
unsupportedCreationRowsTooltip
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
var __exports = {
|
|
15
|
-
__esModule: true
|
|
16
|
-
};
|
|
17
|
-
__exports.getTooltipsForTableEmptyRowModeAction = getTooltipsForTableEmptyRowModeAction;
|
|
18
|
-
return __exports;
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
sap.ui.define([], function () {
|
|
4
|
+
"use strict";
|
|
5
|
+
|
|
6
|
+
function getTooltipsForTableEmptyRowModeAction(resourceBundle) {
|
|
7
|
+
const alreadyEnabledTooltip = resourceBundle.getText('EMPTY_ROW_MODE_IS_ALREADY_ENABLED');
|
|
8
|
+
const unsupportedCreationRowsTooltip = resourceBundle.getText('EMPTY_ROW_MODE_IS_NOT_SUPPORTED');
|
|
9
|
+
return {
|
|
10
|
+
alreadyEnabledTooltip,
|
|
11
|
+
unsupportedCreationRowsTooltip
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
var __exports = {
|
|
15
|
+
__esModule: true
|
|
16
|
+
};
|
|
17
|
+
__exports.getTooltipsForTableEmptyRowModeAction = getTooltipsForTableEmptyRowModeAction;
|
|
18
|
+
return __exports;
|
|
19
19
|
});
|
|
20
20
|
//# sourceMappingURL=utils.js.map
|