@sap-ux/preview-middleware 0.19.3 → 0.19.5
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/controllers/AddFragment.controller.js +3 -2
- package/dist/client/adp/controllers/AddFragment.controller.ts +10 -2
- package/dist/client/adp/controllers/AddSubpage.controller.js +3 -2
- package/dist/client/adp/controllers/AddSubpage.controller.ts +12 -4
- package/dist/client/adp/controllers/AddTableColumnFragments.controller.js +3 -2
- package/dist/client/adp/controllers/AddTableColumnFragments.controller.ts +11 -2
- package/dist/client/adp/controllers/BaseDialog.controller.js +171 -188
- package/dist/client/adp/controllers/BaseDialog.controller.ts +14 -0
- package/dist/client/adp/controllers/ControllerExtension.controller.js +3 -2
- package/dist/client/adp/controllers/ControllerExtension.controller.ts +4 -2
- package/dist/client/adp/controllers/ExtensionPoint.controller.js +2 -1
- package/dist/client/adp/controllers/ExtensionPoint.controller.ts +2 -1
- package/dist/client/adp/dialog-factory.js +5 -3
- package/dist/client/adp/dialog-factory.ts +11 -4
- package/dist/client/adp/quick-actions/common/add-controller-to-page.js +4 -1
- package/dist/client/adp/quick-actions/common/add-controller-to-page.ts +14 -2
- package/dist/client/adp/quick-actions/common/add-new-annotation-file.js +3 -0
- package/dist/client/adp/quick-actions/common/add-new-annotation-file.ts +7 -1
- package/dist/client/adp/quick-actions/common/add-new-subpage.js +6 -2
- package/dist/client/adp/quick-actions/common/add-new-subpage.ts +16 -7
- package/dist/client/adp/quick-actions/common/create-page-action.js +3 -0
- package/dist/client/adp/quick-actions/common/create-page-action.ts +12 -5
- package/dist/client/adp/quick-actions/common/op-add-custom-section.js +3 -0
- package/dist/client/adp/quick-actions/common/op-add-custom-section.ts +11 -4
- package/dist/client/adp/quick-actions/common/op-add-header-field.js +6 -0
- package/dist/client/adp/quick-actions/common/op-add-header-field.ts +22 -8
- package/dist/client/adp/quick-actions/fe-v2/create-table-action.js +3 -0
- package/dist/client/adp/quick-actions/fe-v2/create-table-action.ts +16 -6
- package/dist/client/adp/quick-actions/fe-v2/create-table-custom-column.js +3 -0
- package/dist/client/adp/quick-actions/fe-v2/create-table-custom-column.ts +22 -6
- package/dist/client/adp/quick-actions/fe-v4/create-table-action.js +3 -0
- package/dist/client/adp/quick-actions/fe-v4/create-table-action.ts +16 -6
- package/dist/client/adp/quick-actions/fe-v4/create-table-custom-column.js +3 -0
- package/dist/client/adp/quick-actions/fe-v4/create-table-custom-column.ts +15 -5
- package/dist/client/adp/quick-actions/quick-action-base.js +12 -1
- package/dist/client/adp/quick-actions/quick-action-base.ts +16 -0
- package/dist/client/cpe/quick-actions/quick-action-definition.ts +16 -0
- package/dist/client/cpe/quick-actions/quick-action-service.js +12 -1
- package/dist/client/cpe/quick-actions/quick-action-service.ts +13 -2
- package/package.json +5 -5
|
@@ -12,6 +12,7 @@ sap.ui.define([
|
|
|
12
12
|
const NESTED_QUICK_ACTION_KIND = ___sap_ux_private_control_property_editor_common['NESTED_QUICK_ACTION_KIND'];
|
|
13
13
|
const updateQuickAction = ___sap_ux_private_control_property_editor_common['updateQuickAction'];
|
|
14
14
|
const externalFileChange = ___sap_ux_private_control_property_editor_common['externalFileChange'];
|
|
15
|
+
const reportTelemetry = ___sap_ux_private_control_property_editor_common['reportTelemetry'];
|
|
15
16
|
const getTextBundle = ____i18n['getTextBundle'];
|
|
16
17
|
const DialogFactory = ____adp_dialog_factory['DialogFactory'];
|
|
17
18
|
class QuickActionService {
|
|
@@ -101,7 +102,17 @@ sap.ui.define([
|
|
|
101
102
|
this.actions.push(instance);
|
|
102
103
|
}
|
|
103
104
|
}
|
|
104
|
-
executeAction(actionInstance, payload) {
|
|
105
|
+
async executeAction(actionInstance, payload) {
|
|
106
|
+
try {
|
|
107
|
+
await reportTelemetry({
|
|
108
|
+
category: 'QuickAction',
|
|
109
|
+
actionName: actionInstance.type,
|
|
110
|
+
telemetryEventIdentifier: actionInstance.getTelemetryIdentifier(true),
|
|
111
|
+
quickActionSteps: actionInstance.quickActionSteps
|
|
112
|
+
});
|
|
113
|
+
} catch (error) {
|
|
114
|
+
Log.error('Error in reporting Telemetry:', error);
|
|
115
|
+
}
|
|
105
116
|
if (payload.kind === SIMPLE_QUICK_ACTION_KIND && actionInstance.kind === SIMPLE_QUICK_ACTION_KIND) {
|
|
106
117
|
return actionInstance.execute();
|
|
107
118
|
}
|
|
@@ -11,7 +11,8 @@ import {
|
|
|
11
11
|
QuickActionExecutionPayload,
|
|
12
12
|
QuickActionGroup,
|
|
13
13
|
updateQuickAction,
|
|
14
|
-
externalFileChange
|
|
14
|
+
externalFileChange,
|
|
15
|
+
reportTelemetry
|
|
15
16
|
} from '@sap-ux-private/control-property-editor-common';
|
|
16
17
|
|
|
17
18
|
import { ActionSenderFunction, ControlTreeIndex, Service, SubscribeFunction } from '../types';
|
|
@@ -149,7 +150,17 @@ export class QuickActionService implements Service {
|
|
|
149
150
|
}
|
|
150
151
|
}
|
|
151
152
|
|
|
152
|
-
private executeAction(actionInstance: QuickActionDefinition, payload: QuickActionExecutionPayload) {
|
|
153
|
+
private async executeAction(actionInstance: QuickActionDefinition, payload: QuickActionExecutionPayload) {
|
|
154
|
+
try {
|
|
155
|
+
await reportTelemetry({
|
|
156
|
+
category: 'QuickAction',
|
|
157
|
+
actionName: actionInstance.type,
|
|
158
|
+
telemetryEventIdentifier: actionInstance.getTelemetryIdentifier(true),
|
|
159
|
+
quickActionSteps: actionInstance.quickActionSteps
|
|
160
|
+
});
|
|
161
|
+
} catch (error) {
|
|
162
|
+
Log.error('Error in reporting Telemetry:', error);
|
|
163
|
+
}
|
|
153
164
|
if (payload.kind === SIMPLE_QUICK_ACTION_KIND && actionInstance.kind === SIMPLE_QUICK_ACTION_KIND) {
|
|
154
165
|
return actionInstance.execute();
|
|
155
166
|
}
|
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.19.
|
|
12
|
+
"version": "0.19.5",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"author": "@SAP/ux-tools-team",
|
|
15
15
|
"main": "dist/index.js",
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
"ejs": "3.1.10",
|
|
26
26
|
"mem-fs": "2.1.0",
|
|
27
27
|
"mem-fs-editor": "9.4.0",
|
|
28
|
-
"@sap-ux/adp-tooling": "0.13.
|
|
28
|
+
"@sap-ux/adp-tooling": "0.13.21",
|
|
29
29
|
"@sap-ux/btp-utils": "1.0.2",
|
|
30
30
|
"@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@0.6.1",
|
|
31
31
|
"@sap-ux/feature-toggle": "0.2.3",
|
|
32
32
|
"@sap-ux/logger": "0.6.0",
|
|
33
33
|
"@sap-ux/project-access": "1.29.18",
|
|
34
|
-
"@sap-ux/system-access": "0.5.
|
|
34
|
+
"@sap-ux/system-access": "0.5.34"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@sap-ux-private/playwright": "0.1.0",
|
|
@@ -49,8 +49,8 @@
|
|
|
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.
|
|
53
|
-
"@sap-ux/axios-extension": "1.19.
|
|
52
|
+
"@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.13.9",
|
|
53
|
+
"@sap-ux/axios-extension": "1.19.2",
|
|
54
54
|
"@sap-ux/i18n": "0.2.3",
|
|
55
55
|
"@sap-ux/store": "1.0.0",
|
|
56
56
|
"@sap-ux/ui5-info": "0.9.1"
|