@sap-ux/preview-middleware 0.23.71 → 0.23.73
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/base/flp.js +1 -1
- package/dist/client/adp/controllers/AddSubpage.controller.ts +1 -1
- package/dist/client/adp/controllers/AddTableColumnFragments.controller.ts +2 -2
- package/dist/client/adp/controllers/BaseDialog.controller.js +5 -6
- package/dist/client/adp/controllers/BaseDialog.controller.ts +6 -5
- package/dist/client/adp/controllers/ControllerExtension.controller.js +1 -2
- package/dist/client/adp/dialog-factory.js +2 -4
- package/dist/client/adp/dialog-factory.ts +5 -4
- package/dist/client/adp/extension-point.js +2 -2
- package/dist/client/adp/extension-point.ts +6 -4
- package/dist/client/adp/init-dialogs.js +0 -2
- package/dist/client/adp/init-dialogs.ts +1 -3
- package/dist/client/adp/quick-actions/common/add-controller-to-page.ts +1 -1
- package/dist/client/adp/quick-actions/common/add-new-annotation-file.js +2 -2
- package/dist/client/adp/quick-actions/common/add-new-annotation-file.ts +1 -1
- package/dist/client/adp/quick-actions/common/create-page-action.ts +7 -3
- package/dist/client/adp/quick-actions/common/op-add-custom-section.ts +6 -3
- package/dist/client/adp/quick-actions/common/op-add-header-field.ts +8 -5
- package/dist/client/adp/quick-actions/common/utils.ts +1 -1
- package/dist/client/adp/quick-actions/enablement-validator.ts +1 -0
- package/dist/client/adp/quick-actions/fe-v2/change-table-columns.ts +6 -3
- package/dist/client/adp/quick-actions/fe-v2/create-table-action.ts +3 -3
- package/dist/client/adp/quick-actions/fe-v2/create-table-custom-column.ts +6 -6
- package/dist/client/adp/quick-actions/fe-v2/lr-enable-semantic-date-range-filter-bar.ts +6 -3
- package/dist/client/adp/quick-actions/fe-v2/lr-enable-table-filtering.ts +5 -2
- package/dist/client/adp/quick-actions/fe-v2/lr-enable-variant-management.ts +5 -2
- package/dist/client/adp/quick-actions/fe-v2/lr-toggle-clear-filter-bar.ts +5 -2
- package/dist/client/adp/quick-actions/fe-v2/op-enable-empty-row-mode.ts +6 -3
- package/dist/client/adp/quick-actions/fe-v2/op-enable-variant-management.ts +7 -4
- package/dist/client/adp/quick-actions/fe-v2/registry.js +2 -2
- package/dist/client/adp/quick-actions/fe-v2/registry.ts +1 -1
- package/dist/client/adp/quick-actions/fe-v2/utils.ts +4 -4
- package/dist/client/adp/quick-actions/fe-v4/change-table-columns.ts +6 -3
- package/dist/client/adp/quick-actions/fe-v4/enable-variant-management.ts +5 -2
- package/dist/client/adp/quick-actions/fe-v4/lr-enable-semantic-date-range-filter-bar.ts +6 -3
- package/dist/client/adp/quick-actions/fe-v4/lr-enable-table-filtering.ts +6 -3
- package/dist/client/adp/quick-actions/fe-v4/lr-toggle-clear-filter-bar.ts +6 -3
- package/dist/client/adp/quick-actions/fe-v4/op-enable-empty-row-mode.ts +6 -3
- package/dist/client/adp/quick-actions/fe-v4/registry.js +2 -2
- package/dist/client/adp/quick-actions/fe-v4/utils.ts +2 -2
- package/dist/client/adp/quick-actions/quick-action-base.js +2 -4
- package/dist/client/adp/quick-actions/quick-action-base.ts +1 -1
- package/dist/client/adp/quick-actions/simple-quick-action-base.js +1 -2
- package/dist/client/adp/quick-actions/simple-quick-action-base.ts +5 -4
- package/dist/client/adp/quick-actions/table-quick-action-base.js +12 -4
- package/dist/client/adp/quick-actions/table-quick-action-base.ts +20 -10
- package/dist/client/adp/sync-views-utils.js +1 -2
- package/dist/client/cpe/changes/flex-change.ts +3 -1
- package/dist/client/cpe/changes/generic-change.js +22 -29
- package/dist/client/cpe/changes/service.js +2 -3
- package/dist/client/cpe/changes/service.ts +1 -1
- package/dist/client/cpe/changes/validator.ts +4 -4
- package/dist/client/cpe/communication-service.js +3 -2
- package/dist/client/cpe/communication-service.ts +3 -2
- package/dist/client/cpe/connector-service.js +1 -3
- package/dist/client/cpe/connector-service.ts +3 -2
- package/dist/client/cpe/control-data.ts +5 -4
- package/dist/client/cpe/feature-service.js +3 -2
- package/dist/client/cpe/init.js +1 -2
- package/dist/client/cpe/logger.ts +1 -3
- package/dist/client/cpe/odata-health/odata-health-checker.js +4 -7
- package/dist/client/cpe/outline/editable.js +1 -2
- package/dist/client/cpe/outline/editable.ts +1 -1
- package/dist/client/cpe/outline/nodes.js +2 -2
- package/dist/client/cpe/outline/nodes.ts +4 -4
- package/dist/client/cpe/quick-actions/quick-action-definition.ts +1 -1
- package/dist/client/cpe/quick-actions/quick-action-service.js +1 -0
- package/dist/client/cpe/quick-actions/quick-action-service.ts +20 -12
- package/dist/client/cpe/quick-actions/registry.js +1 -1
- package/dist/client/cpe/quick-actions/registry.ts +4 -4
- package/dist/client/cpe/quick-actions/utils.js +3 -3
- package/dist/client/cpe/quick-actions/utils.ts +9 -10
- package/dist/client/cpe/rta-service.js +1 -1
- package/dist/client/cpe/rta-service.ts +4 -4
- package/dist/client/cpe/selection.js +3 -2
- package/dist/client/cpe/selection.ts +6 -3
- package/dist/client/cpe/types.ts +2 -2
- package/dist/client/flp/WorkspaceConnector.js +1 -1
- package/dist/client/flp/WorkspaceConnector.ts +3 -2
- package/dist/client/flp/common.ts +1 -1
- package/dist/client/flp/enableFakeConnector.js +1 -4
- package/dist/client/flp/enableFakeConnector.ts +2 -1
- package/dist/client/flp/init.js +10 -14
- package/dist/client/flp/init.ts +3 -3
- package/dist/client/flp/initCdm.ts +2 -6
- package/dist/client/flp/initRta.ts +2 -2
- package/dist/client/i18n.js +2 -4
- package/dist/client/utils/fe-v2.ts +1 -3
- package/dist/client/utils/info-center-message.js +6 -7
- package/dist/client/utils/version.js +4 -8
- package/dist/client/utils/version.ts +1 -2
- package/package.json +16 -16
package/dist/base/flp.js
CHANGED
|
@@ -372,7 +372,7 @@ class FlpSandbox {
|
|
|
372
372
|
//use protocol from request header referer as fallback for connect API (karma test runner)
|
|
373
373
|
'protocol' in req
|
|
374
374
|
? req.protocol
|
|
375
|
-
: req.headers.referer?.substring(0, req.headers.referer.indexOf(':')) ?? 'http', req.headers.host, 'ui5-patched-router' in req ? req['ui5-patched-router']?.baseUrl : undefined);
|
|
375
|
+
: (req.headers.referer?.substring(0, req.headers.referer.indexOf(':')) ?? 'http'), req.headers.host, 'ui5-patched-router' in req ? req['ui5-patched-router']?.baseUrl : undefined);
|
|
376
376
|
this.checkDeleteConnectors(ui5Version.major, ui5Version.minor, ui5Version.isCdn);
|
|
377
377
|
const html = (0, ejs_1.render)(this.getSandboxTemplate(ui5Version), this.templateConfig);
|
|
378
378
|
this.sendResponse(res, 'text/html', 200, html);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** sap.m */
|
|
2
|
-
import Button from 'sap/m/Button';
|
|
2
|
+
import type Button from 'sap/m/Button';
|
|
3
3
|
import type Dialog from 'sap/m/Dialog';
|
|
4
4
|
|
|
5
5
|
/** sap.ui.core */
|
|
@@ -18,7 +18,7 @@ import type RuntimeAuthoring from 'sap/ui/rta/RuntimeAuthoring';
|
|
|
18
18
|
import OverlayRegistry from 'sap/ui/dt/OverlayRegistry';
|
|
19
19
|
|
|
20
20
|
/** sap.ui.fl */
|
|
21
|
-
import { AddTableCellFragmentChangeContentType } from 'sap/ui/fl/Change';
|
|
21
|
+
import type { AddTableCellFragmentChangeContentType } from 'sap/ui/fl/Change';
|
|
22
22
|
|
|
23
23
|
/** sap.ui.layout */
|
|
24
24
|
import { type SimpleForm } from 'sap/ui/layout/form';
|
|
@@ -43,6 +43,7 @@ sap.ui.define(["sap/ui/core/library", "sap/ui/core/mvc/Controller", "../utils",
|
|
|
43
43
|
},
|
|
44
44
|
/**
|
|
45
45
|
* Method is used in add fragment dialog controllers to get current control metadata which are needed on the dialog
|
|
46
|
+
*
|
|
46
47
|
* @returns control metadata and target aggregations
|
|
47
48
|
*/
|
|
48
49
|
getControlMetadata: function _getControlMetadata() {
|
|
@@ -104,8 +105,7 @@ sap.ui.define(["sap/ui/core/library", "sap/ui/core/mvc/Controller", "../utils",
|
|
|
104
105
|
const beginBtn = this.dialog.getBeginButton();
|
|
105
106
|
const fragmentName = input.getValue();
|
|
106
107
|
const fragmentList = this.model.getProperty('/fragmentList');
|
|
107
|
-
const updateDialogState =
|
|
108
|
-
let valueStateText = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
108
|
+
const updateDialogState = (valueState, valueStateText = '') => {
|
|
109
109
|
input.setValueState(valueState).setValueStateText(valueStateText);
|
|
110
110
|
beginBtn.setEnabled(valueState === ValueState.Success);
|
|
111
111
|
};
|
|
@@ -148,10 +148,9 @@ sap.ui.define(["sap/ui/core/library", "sap/ui/core/mvc/Controller", "../utils",
|
|
|
148
148
|
* Sets custom function that fires when user presses escape key.
|
|
149
149
|
*/
|
|
150
150
|
setEscapeHandler: function _setEscapeHandler() {
|
|
151
|
-
this.dialog.setEscapeHandler(
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
} = _ref;
|
|
151
|
+
this.dialog.setEscapeHandler(({
|
|
152
|
+
resolve
|
|
153
|
+
}) => {
|
|
155
154
|
this.handleDialogClose();
|
|
156
155
|
resolve();
|
|
157
156
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import Dialog from 'sap/m/Dialog';
|
|
2
|
-
import Input from 'sap/m/Input';
|
|
3
|
-
import Event from 'sap/ui/base/Event';
|
|
4
|
-
import ManagedObject from 'sap/ui/base/ManagedObject';
|
|
5
|
-
import UI5Element from 'sap/ui/core/Element';
|
|
1
|
+
import type Dialog from 'sap/m/Dialog';
|
|
2
|
+
import type Input from 'sap/m/Input';
|
|
3
|
+
import type Event from 'sap/ui/base/Event';
|
|
4
|
+
import type ManagedObject from 'sap/ui/base/ManagedObject';
|
|
5
|
+
import type UI5Element from 'sap/ui/core/Element';
|
|
6
6
|
import { ValueState } from 'sap/ui/core/library';
|
|
7
7
|
import Controller from 'sap/ui/core/mvc/Controller';
|
|
8
8
|
import JSONModel from 'sap/ui/model/json/JSONModel';
|
|
@@ -83,6 +83,7 @@ export default abstract class BaseDialog<T extends BaseDialogModel = BaseDialogM
|
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
85
|
* Method is used in add fragment dialog controllers to get current control metadata which are needed on the dialog
|
|
86
|
+
*
|
|
86
87
|
* @returns control metadata and target aggregations
|
|
87
88
|
*/
|
|
88
89
|
protected getControlMetadata(): { controlMetadata: ManagedObjectMetadata; targetAggregation: string[] } {
|
|
@@ -62,8 +62,7 @@ sap.ui.define(["sap/ui/core/library", "sap/ui/model/json/JSONModel", "open/ux/pr
|
|
|
62
62
|
const beginBtn = this.dialog.getBeginButton();
|
|
63
63
|
const controllerName = input.getValue();
|
|
64
64
|
const controllerList = this.model.getProperty('/controllersList');
|
|
65
|
-
const updateDialogState =
|
|
66
|
-
let valueStateText = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
65
|
+
const updateDialogState = (valueState, valueStateText = '') => {
|
|
67
66
|
input.setValueState(valueState).setValueStateText(valueStateText);
|
|
68
67
|
beginBtn.setEnabled(valueState === ValueState.Success);
|
|
69
68
|
};
|
|
@@ -26,7 +26,7 @@ sap.ui.define(["sap/ui/core/Fragment", "../i18n", "./controllers/AddFragment.con
|
|
|
26
26
|
}(DialogNames || {});
|
|
27
27
|
const OPEN_DIALOG_STATUS_CHANGED = 'OPEN_DIALOG_STATUS_CHANGED';
|
|
28
28
|
class DialogFactory {
|
|
29
|
-
static eventTarget =
|
|
29
|
+
static eventTarget = new EventTarget();
|
|
30
30
|
static isDialogOpen = false;
|
|
31
31
|
/**
|
|
32
32
|
* Only one dialog can be open at a time. This flag indicates if a new dialog can be opened.
|
|
@@ -46,9 +46,7 @@ sap.ui.define(["sap/ui/core/Fragment", "../i18n", "./controllers/AddFragment.con
|
|
|
46
46
|
* @param options - Dialog options.
|
|
47
47
|
* @param telemetryData - Telemetry data.
|
|
48
48
|
*/
|
|
49
|
-
static async createDialog(overlay, rta, dialogName, data) {
|
|
50
|
-
let options = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};
|
|
51
|
-
let telemetryData = arguments.length > 5 ? arguments[5] : undefined;
|
|
49
|
+
static async createDialog(overlay, rta, dialogName, data, options = {}, telemetryData) {
|
|
52
50
|
if (this.isDialogOpen) {
|
|
53
51
|
return;
|
|
54
52
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import Dialog from 'sap/m/Dialog';
|
|
2
|
-
import UI5Element from 'sap/ui/core/Element';
|
|
1
|
+
import type Dialog from 'sap/m/Dialog';
|
|
2
|
+
import type UI5Element from 'sap/ui/core/Element';
|
|
3
3
|
import Fragment from 'sap/ui/core/Fragment';
|
|
4
|
-
import RuntimeAuthoring from 'sap/ui/rta/RuntimeAuthoring';
|
|
4
|
+
import type RuntimeAuthoring from 'sap/ui/rta/RuntimeAuthoring';
|
|
5
5
|
|
|
6
6
|
import { getTextBundle } from '../i18n';
|
|
7
7
|
|
|
8
|
-
import
|
|
8
|
+
import type { AddFragmentOptions } from './controllers/AddFragment.controller';
|
|
9
|
+
import AddFragment from './controllers/AddFragment.controller';
|
|
9
10
|
import AddTableColumnFragments from './controllers/AddTableColumnFragments.controller';
|
|
10
11
|
import ControllerExtension from './controllers/ControllerExtension.controller';
|
|
11
12
|
import ExtensionPoint from './controllers/ExtensionPoint.controller';
|
|
@@ -35,7 +35,7 @@ sap.ui.define(["sap/ui/rta/plugin/AddXMLAtExtensionPoint", "sap/ui/rta/command/C
|
|
|
35
35
|
const service = await this.rta.getService('action');
|
|
36
36
|
service.execute(baseControlId, this.actionId);
|
|
37
37
|
this.selectedExtensionPointName = name;
|
|
38
|
-
} catch
|
|
38
|
+
} catch {
|
|
39
39
|
throw new Error(`Failed to execute service with actionId: ${this.actionId}`);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -67,7 +67,7 @@ sap.ui.define(["sap/ui/rta/plugin/AddXMLAtExtensionPoint", "sap/ui/rta/command/C
|
|
|
67
67
|
* @returns Deferred extension point data that is provided to the plugin
|
|
68
68
|
*/
|
|
69
69
|
async fragmentHandler(overlay, info) {
|
|
70
|
-
|
|
70
|
+
const deferred = createDeferred();
|
|
71
71
|
const name = this.selectedExtensionPointName;
|
|
72
72
|
await DialogFactory.createDialog(overlay, this.rta, DialogNames.ADD_FRAGMENT_AT_EXTENSION_POINT, {
|
|
73
73
|
name,
|
|
@@ -4,9 +4,11 @@ import type RuntimeAuthoring from 'sap/ui/rta/RuntimeAuthoring';
|
|
|
4
4
|
import AddXMLAtExtensionPoint from 'sap/ui/rta/plugin/AddXMLAtExtensionPoint';
|
|
5
5
|
import CommandFactory from 'sap/ui/rta/command/CommandFactory';
|
|
6
6
|
|
|
7
|
-
import { ExternalAction
|
|
7
|
+
import type { ExternalAction } from '@sap-ux-private/control-property-editor-common';
|
|
8
|
+
import { addExtensionPoint } from '@sap-ux-private/control-property-editor-common';
|
|
8
9
|
|
|
9
|
-
import { Deferred
|
|
10
|
+
import type { Deferred } from './utils';
|
|
11
|
+
import { createDeferred } from './utils';
|
|
10
12
|
import { DialogFactory, DialogNames } from './dialog-factory';
|
|
11
13
|
|
|
12
14
|
import { CommunicationService } from '../cpe/communication-service';
|
|
@@ -64,7 +66,7 @@ export default class ExtensionPointService {
|
|
|
64
66
|
|
|
65
67
|
service.execute(baseControlId, this.actionId);
|
|
66
68
|
this.selectedExtensionPointName = name;
|
|
67
|
-
} catch
|
|
69
|
+
} catch {
|
|
68
70
|
throw new Error(`Failed to execute service with actionId: ${this.actionId}`);
|
|
69
71
|
}
|
|
70
72
|
}
|
|
@@ -99,7 +101,7 @@ export default class ExtensionPointService {
|
|
|
99
101
|
* @returns Deferred extension point data that is provided to the plugin
|
|
100
102
|
*/
|
|
101
103
|
public async fragmentHandler(overlay: UI5Element, info: ExtensionPointInfo[]): Promise<DeferredExtPointData> {
|
|
102
|
-
|
|
104
|
+
const deferred = createDeferred<DeferredExtPointData>();
|
|
103
105
|
const name = this.selectedExtensionPointName;
|
|
104
106
|
|
|
105
107
|
await DialogFactory.createDialog(overlay, this.rta, DialogNames.ADD_FRAGMENT_AT_EXTENSION_POINT, {
|
|
@@ -14,7 +14,6 @@ sap.ui.define(["sap/ui/rta/util/hasStableId", "sap/ui/fl/Utils", "./dialog-facto
|
|
|
14
14
|
* @param control UI5 control.
|
|
15
15
|
* @param isReuseComponent Function to check if the control is a reuse component.
|
|
16
16
|
* @param isCloud Whether the application is running in the cloud
|
|
17
|
-
*
|
|
18
17
|
* @returns boolean whether menu item is enabled or not
|
|
19
18
|
*/
|
|
20
19
|
function isControllerExtensionEnabledForControl(control, isReuseComponent, isCloud) {
|
|
@@ -34,7 +33,6 @@ sap.ui.define(["sap/ui/rta/util/hasStableId", "sap/ui/fl/Utils", "./dialog-facto
|
|
|
34
33
|
* @param overlays Control overlays
|
|
35
34
|
* @param isReuseComponent Function to check if the control is a reuse component.
|
|
36
35
|
* @param isCloud Whether the application is running in the cloud
|
|
37
|
-
*
|
|
38
36
|
* @returns boolean whether menu item is enabled or not
|
|
39
37
|
*/
|
|
40
38
|
const isControllerExtensionEnabled = (overlays, isReuseComponent, isCloud) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** sap.ui.core */
|
|
2
|
-
import UI5Element from 'sap/ui/core/Element';
|
|
2
|
+
import type UI5Element from 'sap/ui/core/Element';
|
|
3
3
|
|
|
4
4
|
/** sap.ui.rta */
|
|
5
5
|
import type RuntimeAuthoring from 'sap/ui/rta/RuntimeAuthoring';
|
|
@@ -25,7 +25,6 @@ import { getSyncViewIds } from './sync-views-utils';
|
|
|
25
25
|
* @param control UI5 control.
|
|
26
26
|
* @param isReuseComponent Function to check if the control is a reuse component.
|
|
27
27
|
* @param isCloud Whether the application is running in the cloud
|
|
28
|
-
*
|
|
29
28
|
* @returns boolean whether menu item is enabled or not
|
|
30
29
|
*/
|
|
31
30
|
export function isControllerExtensionEnabledForControl(
|
|
@@ -50,7 +49,6 @@ export function isControllerExtensionEnabledForControl(
|
|
|
50
49
|
* @param overlays Control overlays
|
|
51
50
|
* @param isReuseComponent Function to check if the control is a reuse component.
|
|
52
51
|
* @param isCloud Whether the application is running in the cloud
|
|
53
|
-
*
|
|
54
52
|
* @returns boolean whether menu item is enabled or not
|
|
55
53
|
*/
|
|
56
54
|
export const isControllerExtensionEnabled = (
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import OverlayRegistry from 'sap/ui/dt/OverlayRegistry';
|
|
2
|
-
import FlexCommand from 'sap/ui/rta/command/FlexCommand';
|
|
2
|
+
import type FlexCommand from 'sap/ui/rta/command/FlexCommand';
|
|
3
3
|
|
|
4
4
|
import { getUi5Version } from '../../../utils/version';
|
|
5
5
|
import { getControllerInfoForControl, getReuseComponentChecker, checkForExistingChange } from '../../utils';
|
|
@@ -25,8 +25,8 @@ sap.ui.define(["open/ux/preview/client/thirdparty/@sap-ux-private/control-proper
|
|
|
25
25
|
get quickActionSteps() {
|
|
26
26
|
return 1;
|
|
27
27
|
}
|
|
28
|
-
kind =
|
|
29
|
-
type =
|
|
28
|
+
kind = NESTED_QUICK_ACTION_KIND;
|
|
29
|
+
type = ADD_NEW_ANNOTATION_FILE;
|
|
30
30
|
forceRefreshAfterExecution = true;
|
|
31
31
|
isApplicable = true;
|
|
32
32
|
get id() {
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import OverlayRegistry from 'sap/ui/dt/OverlayRegistry';
|
|
2
|
-
import FlexCommand from 'sap/ui/rta/command/FlexCommand';
|
|
2
|
+
import type FlexCommand from 'sap/ui/rta/command/FlexCommand';
|
|
3
3
|
|
|
4
4
|
import { DialogFactory, DialogNames } from '../../dialog-factory';
|
|
5
|
-
import {
|
|
5
|
+
import type {
|
|
6
|
+
QuickActionContext,
|
|
7
|
+
SimpleQuickActionDefinition
|
|
8
|
+
} from '../../../cpe/quick-actions/quick-action-definition';
|
|
6
9
|
import { SimpleQuickActionDefinitionBase } from '../simple-quick-action-base';
|
|
7
|
-
import { ApplicationType
|
|
10
|
+
import type { ApplicationType } from '../../../utils/application';
|
|
11
|
+
import { getApplicationType } from '../../../utils/application';
|
|
8
12
|
import { getUi5Version, isLowerThanMinimalUi5Version } from '../../../utils/version';
|
|
9
13
|
import { DIALOG_ENABLEMENT_VALIDATOR } from '../dialog-enablement-validator';
|
|
10
14
|
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import OverlayRegistry from 'sap/ui/dt/OverlayRegistry';
|
|
2
|
-
import FlexCommand from 'sap/ui/rta/command/FlexCommand';
|
|
3
|
-
import ObjectPageLayout from 'sap/uxap/ObjectPageLayout';
|
|
2
|
+
import type FlexCommand from 'sap/ui/rta/command/FlexCommand';
|
|
3
|
+
import type ObjectPageLayout from 'sap/uxap/ObjectPageLayout';
|
|
4
4
|
|
|
5
5
|
import { DialogFactory, DialogNames } from '../../dialog-factory';
|
|
6
6
|
import { getRelevantControlFromActivePage } from '../../../cpe/quick-actions/utils';
|
|
7
|
-
import {
|
|
7
|
+
import type {
|
|
8
|
+
QuickActionContext,
|
|
9
|
+
SimpleQuickActionDefinition
|
|
10
|
+
} from '../../../cpe/quick-actions/quick-action-definition';
|
|
8
11
|
import { SimpleQuickActionDefinitionBase } from '../simple-quick-action-base';
|
|
9
12
|
import { DIALOG_ENABLEMENT_VALIDATOR } from '../dialog-enablement-validator';
|
|
10
13
|
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import OverlayRegistry from 'sap/ui/dt/OverlayRegistry';
|
|
2
|
-
import FlexCommand from 'sap/ui/rta/command/FlexCommand';
|
|
3
|
-
import ObjectPageLayout from 'sap/uxap/ObjectPageLayout';
|
|
4
|
-
import FlexBox from 'sap/m/FlexBox';
|
|
2
|
+
import type FlexCommand from 'sap/ui/rta/command/FlexCommand';
|
|
3
|
+
import type ObjectPageLayout from 'sap/uxap/ObjectPageLayout';
|
|
4
|
+
import type FlexBox from 'sap/m/FlexBox';
|
|
5
5
|
|
|
6
6
|
import { DialogFactory, DialogNames } from '../../dialog-factory';
|
|
7
|
-
import {
|
|
7
|
+
import type {
|
|
8
|
+
QuickActionContext,
|
|
9
|
+
SimpleQuickActionDefinition
|
|
10
|
+
} from '../../../cpe/quick-actions/quick-action-definition';
|
|
8
11
|
import { isA } from '../../../utils/core';
|
|
9
12
|
import { SimpleQuickActionDefinitionBase } from '../simple-quick-action-base';
|
|
10
13
|
import { DIALOG_ENABLEMENT_VALIDATOR } from '../dialog-enablement-validator';
|
|
11
|
-
import { EnablementValidatorResult } from '../enablement-validator';
|
|
14
|
+
import type { EnablementValidatorResult } from '../enablement-validator';
|
|
12
15
|
import { getTextBundle } from '../../../i18n';
|
|
13
16
|
|
|
14
17
|
export const OP_ADD_HEADER_FIELD_TYPE = 'op-add-header-field';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TextBundle } from '../../../i18n';
|
|
1
|
+
import type { TextBundle } from '../../../i18n';
|
|
2
2
|
|
|
3
3
|
export function getTooltipsForTableEmptyRowModeAction(resourceBundle: TextBundle) {
|
|
4
4
|
const alreadyEnabledTooltip = resourceBundle.getText('EMPTY_ROW_MODE_IS_ALREADY_ENABLED');
|
|
@@ -12,6 +12,7 @@ export type EnablementValidatorResult = undefined | EnablementValidatorError;
|
|
|
12
12
|
export interface EnablementValidator {
|
|
13
13
|
/**
|
|
14
14
|
* Checks if action can be executed.
|
|
15
|
+
*
|
|
15
16
|
* @returns Validation result.
|
|
16
17
|
*/
|
|
17
18
|
run: () => EnablementValidatorResult | Promise<EnablementValidatorResult>;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import FlexCommand from 'sap/ui/rta/command/FlexCommand';
|
|
1
|
+
import type FlexCommand from 'sap/ui/rta/command/FlexCommand';
|
|
2
2
|
import type Table from 'sap/m/Table';
|
|
3
3
|
import type SmartTable from 'sap/ui/comp/smarttable/SmartTable';
|
|
4
|
-
import ManagedObject from 'sap/ui/base/ManagedObject';
|
|
4
|
+
import type ManagedObject from 'sap/ui/base/ManagedObject';
|
|
5
5
|
|
|
6
|
-
import {
|
|
6
|
+
import type {
|
|
7
|
+
QuickActionContext,
|
|
8
|
+
NestedQuickActionDefinition
|
|
9
|
+
} from '../../../cpe/quick-actions/quick-action-definition';
|
|
7
10
|
import { getControlById, isA } from '../../../utils/core';
|
|
8
11
|
import { TableQuickActionDefinitionBase } from '../table-quick-action-base';
|
|
9
12
|
import { DIALOG_ENABLEMENT_VALIDATOR } from '../dialog-enablement-validator';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import FlexCommand from 'sap/ui/rta/command/FlexCommand';
|
|
1
|
+
import type FlexCommand from 'sap/ui/rta/command/FlexCommand';
|
|
2
2
|
import type Table from 'sap/m/Table';
|
|
3
3
|
import type SmartTable from 'sap/ui/comp/smarttable/SmartTable';
|
|
4
4
|
import OverlayRegistry from 'sap/ui/dt/OverlayRegistry';
|
|
5
|
-
import ManagedObject from 'sap/ui/base/ManagedObject';
|
|
6
|
-
import UI5Element from 'sap/ui/core/Element';
|
|
5
|
+
import type ManagedObject from 'sap/ui/base/ManagedObject';
|
|
6
|
+
import type UI5Element from 'sap/ui/core/Element';
|
|
7
7
|
|
|
8
8
|
import { QuickActionContext, NestedQuickActionDefinition } from '../../../cpe/quick-actions/quick-action-definition';
|
|
9
9
|
import { getControlById, isA } from '../../../utils/core';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import ManagedObject from 'sap/ui/base/ManagedObject';
|
|
2
|
-
import UI5Element from 'sap/ui/core/Element';
|
|
1
|
+
import type ManagedObject from 'sap/ui/base/ManagedObject';
|
|
2
|
+
import type UI5Element from 'sap/ui/core/Element';
|
|
3
3
|
|
|
4
4
|
import type FlexCommand from 'sap/ui/rta/command/FlexCommand';
|
|
5
5
|
import OverlayRegistry from 'sap/ui/dt/OverlayRegistry';
|
|
6
6
|
|
|
7
|
-
import ObjectPageSection from 'sap/uxap/ObjectPageSection';
|
|
8
|
-
import ObjectPageSubSection from 'sap/uxap/ObjectPageSubSection';
|
|
9
|
-
import ObjectPageLayout from 'sap/uxap/ObjectPageLayout';
|
|
7
|
+
import type ObjectPageSection from 'sap/uxap/ObjectPageSection';
|
|
8
|
+
import type ObjectPageSubSection from 'sap/uxap/ObjectPageSubSection';
|
|
9
|
+
import type ObjectPageLayout from 'sap/uxap/ObjectPageLayout';
|
|
10
10
|
|
|
11
|
-
import IconTabBar from 'sap/m/IconTabBar';
|
|
11
|
+
import type IconTabBar from 'sap/m/IconTabBar';
|
|
12
12
|
|
|
13
13
|
import type SmartTable from 'sap/ui/comp/smarttable/SmartTable';
|
|
14
14
|
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import FlexCommand from 'sap/ui/rta/command/FlexCommand';
|
|
2
|
-
import {
|
|
1
|
+
import type FlexCommand from 'sap/ui/rta/command/FlexCommand';
|
|
2
|
+
import type {
|
|
3
|
+
QuickActionContext,
|
|
4
|
+
SimpleQuickActionDefinition
|
|
5
|
+
} from '../../../cpe/quick-actions/quick-action-definition';
|
|
3
6
|
import { pageHasControlId } from '../../../cpe/quick-actions/utils';
|
|
4
7
|
import { getControlById, isA } from '../../../utils/core';
|
|
5
8
|
import { SimpleQuickActionDefinitionBase } from '../simple-quick-action-base';
|
|
6
9
|
import { areManifestChangesSupported, prepareManifestChange } from './utils';
|
|
7
10
|
import { getUi5Version, isLowerThanMinimalUi5Version } from '../../../utils/version';
|
|
8
|
-
import SmartFilterBar from 'sap/ui/comp/smartfilterbar/SmartFilterBar';
|
|
11
|
+
import type SmartFilterBar from 'sap/ui/comp/smartfilterbar/SmartFilterBar';
|
|
9
12
|
|
|
10
13
|
export const ENABLE_SEMANTIC_DATE_RANGE_FILTER_BAR = 'enable-semantic-daterange-filterbar';
|
|
11
14
|
const CONTROL_TYPE_LR = 'sap.ui.comp.smartfilterbar.SmartFilterBar';
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import SmartTable from 'sap/ui/comp/smarttable/SmartTable';
|
|
1
|
+
import type SmartTable from 'sap/ui/comp/smarttable/SmartTable';
|
|
2
2
|
|
|
3
3
|
import type FlexCommand from 'sap/ui/rta/command/FlexCommand';
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import type {
|
|
6
|
+
QuickActionContext,
|
|
7
|
+
SimpleQuickActionDefinition
|
|
8
|
+
} from '../../../cpe/quick-actions/quick-action-definition';
|
|
6
9
|
import { getRelevantControlFromActivePage, pageHasControlId } from '../../../cpe/quick-actions/utils';
|
|
7
10
|
import { GRID_TABLE_TYPE, M_TABLE_TYPE, SMART_TABLE_TYPE, TREE_TABLE_TYPE } from '../control-types';
|
|
8
11
|
import { areManifestChangesSupported, prepareManifestChange } from './utils';
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import type FlexCommand from 'sap/ui/rta/command/FlexCommand';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import type {
|
|
4
|
+
QuickActionContext,
|
|
5
|
+
SimpleQuickActionDefinition
|
|
6
|
+
} from '../../../cpe/quick-actions/quick-action-definition';
|
|
4
7
|
import { areManifestChangesSupported, prepareManifestChange } from './utils';
|
|
5
|
-
import ListReportComponent from 'sap/suite/ui/generic/template/ListReport';
|
|
8
|
+
import type ListReportComponent from 'sap/suite/ui/generic/template/ListReport';
|
|
6
9
|
|
|
7
10
|
import { SimpleQuickActionDefinitionBase } from '../simple-quick-action-base';
|
|
8
11
|
import Component from 'sap/ui/core/Component';
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import FlexCommand from 'sap/ui/rta/command/FlexCommand';
|
|
1
|
+
import type FlexCommand from 'sap/ui/rta/command/FlexCommand';
|
|
2
2
|
import CommandFactory from 'sap/ui/rta/command/CommandFactory';
|
|
3
3
|
import type FilterBar from 'sap/ui/comp/filterbar/FilterBar';
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import type {
|
|
6
|
+
QuickActionContext,
|
|
7
|
+
SimpleQuickActionDefinition
|
|
8
|
+
} from '../../../cpe/quick-actions/quick-action-definition';
|
|
6
9
|
import { pageHasControlId } from '../../../cpe/quick-actions/utils';
|
|
7
10
|
import { getControlById } from '../../../utils/core';
|
|
8
11
|
import { SimpleQuickActionDefinitionBase } from '../simple-quick-action-base';
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import FlexCommand from 'sap/ui/rta/command/FlexCommand';
|
|
1
|
+
import type FlexCommand from 'sap/ui/rta/command/FlexCommand';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import type {
|
|
4
|
+
QuickActionContext,
|
|
5
|
+
NestedQuickActionDefinition
|
|
6
|
+
} from '../../../cpe/quick-actions/quick-action-definition';
|
|
4
7
|
import { TableQuickActionDefinitionBase } from '../table-quick-action-base';
|
|
5
8
|
import { ANALYTICAL_TABLE_TYPE, SMART_TABLE_TYPE, TREE_TABLE_TYPE } from '../control-types';
|
|
6
9
|
|
|
7
|
-
import { NestedQuickActionChild } from '@sap-ux-private/control-property-editor-common';
|
|
10
|
+
import type { NestedQuickActionChild } from '@sap-ux-private/control-property-editor-common';
|
|
8
11
|
import { areManifestChangesSupported, prepareManifestChange } from './utils';
|
|
9
12
|
import { getUi5Version, isLowerThanMinimalUi5Version } from '../../../utils/version';
|
|
10
13
|
import { isA } from '../../../utils/core';
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import FlexCommand from 'sap/ui/rta/command/FlexCommand';
|
|
1
|
+
import type FlexCommand from 'sap/ui/rta/command/FlexCommand';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import type {
|
|
4
|
+
QuickActionContext,
|
|
5
|
+
NestedQuickActionDefinition
|
|
6
|
+
} from '../../../cpe/quick-actions/quick-action-definition';
|
|
4
7
|
import { TableQuickActionDefinitionBase } from '../table-quick-action-base';
|
|
5
8
|
import { SMART_TABLE_TYPE } from '../control-types';
|
|
6
9
|
|
|
7
|
-
import { NestedQuickActionChild } from '@sap-ux-private/control-property-editor-common';
|
|
10
|
+
import type { NestedQuickActionChild } from '@sap-ux-private/control-property-editor-common';
|
|
8
11
|
import { areManifestChangesSupported, prepareManifestChange } from './utils';
|
|
9
12
|
import { preprocessActionExecution } from './create-table-custom-column';
|
|
10
|
-
import SmartTableExtended from 'sap/ui/comp/smarttable';
|
|
13
|
+
import type SmartTableExtended from 'sap/ui/comp/smarttable';
|
|
11
14
|
|
|
12
15
|
export const ENABLE_VARIANT_MANAGEMENT_IN_TABLES_CHARTS = 'enable-variant-management-in-tables-charts';
|
|
13
16
|
|
|
@@ -27,11 +27,11 @@ sap.ui.define(["sap/ui/core/mvc/XMLView", "sap/ui/core/ComponentContainer", "../
|
|
|
27
27
|
* Quick Action provider for SAP Fiori Elements V2 applications.
|
|
28
28
|
*/
|
|
29
29
|
class FEV2QuickActionRegistry extends QuickActionDefinitionRegistry {
|
|
30
|
-
PAGE_NAME_MAP =
|
|
30
|
+
PAGE_NAME_MAP = {
|
|
31
31
|
[LIST_REPORT_TYPE]: 'listReport',
|
|
32
32
|
[OBJECT_PAGE_TYPE]: 'objectPage',
|
|
33
33
|
[ANALYTICAL_LIST_PAGE_TYPE]: 'analyticalListPage'
|
|
34
|
-
}
|
|
34
|
+
};
|
|
35
35
|
getDefinitions(context) {
|
|
36
36
|
const activePages = this.getActivePageContent(context.controlIndex);
|
|
37
37
|
const definitionGroups = [];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import UI5Element from 'sap/ui/core/Element';
|
|
2
|
-
import FlexCommand from 'sap/ui/rta/command/FlexCommand';
|
|
1
|
+
import type UI5Element from 'sap/ui/core/Element';
|
|
2
|
+
import type FlexCommand from 'sap/ui/rta/command/FlexCommand';
|
|
3
3
|
import CommandFactory from 'sap/ui/rta/command/CommandFactory';
|
|
4
4
|
|
|
5
|
-
import { QuickActionContext } from '../../../cpe/quick-actions/quick-action-definition';
|
|
5
|
+
import type { QuickActionContext } from '../../../cpe/quick-actions/quick-action-definition';
|
|
6
6
|
import { getUi5Version, isLowerThanMinimalUi5Version, isVersionEqualOrHasNewerPatch } from '../../../utils/version';
|
|
7
|
-
import { Manifest } from 'sap/ui/rta/RuntimeAuthoring';
|
|
7
|
+
import type { Manifest } from 'sap/ui/rta/RuntimeAuthoring';
|
|
8
8
|
import Component from 'sap/ui/core/Component';
|
|
9
9
|
import type AppComponent from 'sap/suite/ui/generic/template/lib/AppComponent';
|
|
10
10
|
import type ManagedObject from 'sap/ui/base/ManagedObject';
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import OverlayUtil from 'sap/ui/dt/OverlayUtil';
|
|
2
|
-
import FlexCommand from 'sap/ui/rta/command/FlexCommand';
|
|
2
|
+
import type FlexCommand from 'sap/ui/rta/command/FlexCommand';
|
|
3
3
|
import FlexRuntimeInfoAPI from 'sap/ui/fl/apply/api/FlexRuntimeInfoAPI';
|
|
4
|
-
import {
|
|
4
|
+
import type {
|
|
5
|
+
QuickActionContext,
|
|
6
|
+
NestedQuickActionDefinition
|
|
7
|
+
} from '../../../cpe/quick-actions/quick-action-definition';
|
|
5
8
|
import { getControlById } from '../../../utils/core';
|
|
6
9
|
import { TableQuickActionDefinitionBase } from '../table-quick-action-base';
|
|
7
10
|
import { MDC_TABLE_TYPE } from '../control-types';
|
|
8
11
|
import { DIALOG_ENABLEMENT_VALIDATOR } from '../dialog-enablement-validator';
|
|
9
12
|
import { getRelevantControlFromActivePage } from '../../../cpe/quick-actions/utils';
|
|
10
|
-
import Table from 'sap/ui/mdc/Table';
|
|
13
|
+
import type Table from 'sap/ui/mdc/Table';
|
|
11
14
|
|
|
12
15
|
export const CHANGE_TABLE_COLUMNS = 'change-table-columns';
|
|
13
16
|
const ACTION_ID = 'CTX_SETTINGS0';
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import type FlexCommand from 'sap/ui/rta/command/FlexCommand';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import type {
|
|
4
|
+
QuickActionContext,
|
|
5
|
+
SimpleQuickActionDefinition
|
|
6
|
+
} from '../../../cpe/quick-actions/quick-action-definition';
|
|
4
7
|
|
|
5
8
|
import { SimpleQuickActionDefinitionBase } from '../simple-quick-action-base';
|
|
6
9
|
import Component from 'sap/ui/core/Component';
|
|
7
10
|
import { getUi5Version, isLowerThanMinimalUi5Version } from '../../../utils/version';
|
|
8
11
|
import { createManifestPropertyChange } from '../../../utils/fe-v4';
|
|
9
|
-
import ListReportComponent from 'sap/suite/ui/generic/template/ListReport';
|
|
12
|
+
import type ListReportComponent from 'sap/suite/ui/generic/template/ListReport';
|
|
10
13
|
|
|
11
14
|
export const ENABLE_VARIANT_MANAGEMENT_IN_TABLES_CHARTS = 'enable-variant-management-in-tables-charts';
|
|
12
15
|
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import FlexCommand from 'sap/ui/rta/command/FlexCommand';
|
|
2
|
-
import FilterBar from 'sap/ui/mdc/FilterBar';
|
|
1
|
+
import type FlexCommand from 'sap/ui/rta/command/FlexCommand';
|
|
2
|
+
import type FilterBar from 'sap/ui/mdc/FilterBar';
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import type {
|
|
5
|
+
QuickActionContext,
|
|
6
|
+
SimpleQuickActionDefinition
|
|
7
|
+
} from '../../../cpe/quick-actions/quick-action-definition';
|
|
5
8
|
import { pageHasControlId } from '../../../cpe/quick-actions/utils';
|
|
6
9
|
import { getControlById } from '../../../utils/core';
|
|
7
10
|
import { executeToggleAction } from './utils';
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import FlexCommand from 'sap/ui/rta/command/FlexCommand';
|
|
1
|
+
import type FlexCommand from 'sap/ui/rta/command/FlexCommand';
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
|
|
3
|
+
import type {
|
|
4
|
+
NestedQuickActionDefinition,
|
|
5
|
+
QuickActionContext
|
|
6
|
+
} from '../../../cpe/quick-actions/quick-action-definition';
|
|
7
|
+
import type Table from 'sap/ui/mdc/Table';
|
|
5
8
|
import { TableQuickActionDefinitionBase } from '../table-quick-action-base';
|
|
6
9
|
import { getRelevantControlFromActivePage } from '../../../cpe/quick-actions/utils';
|
|
7
10
|
import { createManifestPropertyChange } from '../../../utils/fe-v4';
|