@sap-ux/preview-middleware 0.18.22 → 0.18.23
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
sap.ui.define(["sap/ui/core/Component", "sap/ui/dt/OverlayRegistry", "../../../cpe/quick-actions/utils", "../../../utils/core", "../../../utils/application", "../../dialog-factory", "../fe-v2/utils", "../../../utils/fe-v2", "../../../utils/fe-v4", "../../../i18n", "../simple-quick-action-base"
|
|
3
|
+
sap.ui.define(["sap/ui/core/Component", "sap/ui/dt/OverlayRegistry", "../../../cpe/quick-actions/utils", "../../../utils/core", "../../../utils/application", "../../dialog-factory", "../fe-v2/utils", "../../../utils/fe-v2", "../../../utils/fe-v4", "../../../i18n", "../simple-quick-action-base"], function (Component, OverlayRegistry, _____cpe_quick_actions_utils, _____utils_core, _____utils_application, ____dialog_factory, ___fe_v2_utils, _____utils_fe_v2, _____utils_fe_v4, _____i18n, ___simple_quick_action_base) {
|
|
4
4
|
"use strict";
|
|
5
5
|
|
|
6
6
|
const pageHasControlId = _____cpe_quick_actions_utils["pageHasControlId"];
|
|
@@ -14,7 +14,6 @@ sap.ui.define(["sap/ui/core/Component", "sap/ui/dt/OverlayRegistry", "../../../c
|
|
|
14
14
|
const getV4ApplicationPages = _____utils_fe_v4["getV4ApplicationPages"];
|
|
15
15
|
const getTextBundle = _____i18n["getTextBundle"];
|
|
16
16
|
const SimpleQuickActionDefinitionBase = ___simple_quick_action_base["SimpleQuickActionDefinitionBase"];
|
|
17
|
-
const FeatureService = _____cpe_feature_service["FeatureService"];
|
|
18
17
|
const ADD_NEW_OBJECT_PAGE_ACTION = 'add-new-subpage';
|
|
19
18
|
const CONTROL_TYPES = ['sap.f.DynamicPage', 'sap.uxap.ObjectPageLayout'];
|
|
20
19
|
|
|
@@ -84,9 +83,6 @@ sap.ui.define(["sap/ui/core/Component", "sap/ui/dt/OverlayRegistry", "../../../c
|
|
|
84
83
|
}
|
|
85
84
|
}
|
|
86
85
|
async initialize() {
|
|
87
|
-
if (FeatureService.isFeatureEnabled('cpe.beta.quick-actions') === false) {
|
|
88
|
-
return Promise.resolve();
|
|
89
|
-
}
|
|
90
86
|
if (!(await areManifestChangesSupported(this.context.manifest))) {
|
|
91
87
|
return Promise.resolve();
|
|
92
88
|
}
|
|
@@ -17,7 +17,6 @@ import { getV4ApplicationPages } from '../../../utils/fe-v4';
|
|
|
17
17
|
import { EnablementValidatorResult } from '../enablement-validator';
|
|
18
18
|
import { getTextBundle } from '../../../i18n';
|
|
19
19
|
import { SimpleQuickActionDefinitionBase } from '../simple-quick-action-base';
|
|
20
|
-
import { FeatureService } from '../../../cpe/feature-service';
|
|
21
20
|
|
|
22
21
|
export const ADD_NEW_OBJECT_PAGE_ACTION = 'add-new-subpage';
|
|
23
22
|
const CONTROL_TYPES = ['sap.f.DynamicPage', 'sap.uxap.ObjectPageLayout'];
|
|
@@ -102,10 +101,6 @@ export class AddNewSubpage extends SimpleQuickActionDefinitionBase implements Si
|
|
|
102
101
|
}
|
|
103
102
|
|
|
104
103
|
async initialize(): Promise<void> {
|
|
105
|
-
if (FeatureService.isFeatureEnabled('cpe.beta.quick-actions') === false) {
|
|
106
|
-
return Promise.resolve();
|
|
107
|
-
}
|
|
108
|
-
|
|
109
104
|
if (!(await areManifestChangesSupported(this.context.manifest))) {
|
|
110
105
|
return Promise.resolve();
|
|
111
106
|
}
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"bugs": {
|
|
10
10
|
"url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Apreview-middleware"
|
|
11
11
|
},
|
|
12
|
-
"version": "0.18.
|
|
12
|
+
"version": "0.18.23",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"author": "@SAP/ux-tools-team",
|
|
15
15
|
"main": "dist/index.js",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"mem-fs-editor": "9.4.0",
|
|
28
28
|
"@sap-ux/adp-tooling": "0.13.17",
|
|
29
29
|
"@sap-ux/btp-utils": "1.0.2",
|
|
30
|
-
"@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@0.6.1",
|
|
31
30
|
"@sap-ux/feature-toggle": "0.2.3",
|
|
32
31
|
"@sap-ux/logger": "0.6.0",
|
|
33
32
|
"@sap-ux/project-access": "1.29.18",
|
|
33
|
+
"@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@0.6.1",
|
|
34
34
|
"@sap-ux/system-access": "0.5.33"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"nock": "13.4.0",
|
|
50
50
|
"npm-run-all2": "6.2.0",
|
|
51
51
|
"supertest": "6.3.3",
|
|
52
|
-
"@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.13.
|
|
52
|
+
"@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.13.7",
|
|
53
53
|
"@sap-ux/axios-extension": "1.19.1",
|
|
54
54
|
"@sap-ux/i18n": "0.2.3",
|
|
55
55
|
"@sap-ux/store": "1.0.0",
|