@sap-ux/preview-middleware 0.20.73 → 0.20.74
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 +2 -2
- package/dist/client/adp/api-handler.ts +2 -2
- package/dist/client/adp/command-executor.js +66 -76
- package/dist/client/adp/command-executor.ts +28 -13
- package/dist/client/adp/controllers/AddCustomFragment.controller.js +22 -8
- package/dist/client/adp/controllers/AddCustomFragment.controller.ts +16 -6
- package/dist/client/adp/controllers/AddFragment.controller.js +32 -18
- package/dist/client/adp/controllers/AddFragment.controller.ts +23 -13
- package/dist/client/adp/controllers/AddTableColumnFragments.controller.js +35 -19
- package/dist/client/adp/controllers/AddTableColumnFragments.controller.ts +26 -20
- package/dist/client/adp/controllers/BaseDialog.controller.js +1 -9
- package/dist/client/adp/controllers/BaseDialog.controller.ts +0 -14
- package/dist/client/adp/controllers/ControllerExtension.controller.js +252 -267
- package/dist/client/adp/controllers/ControllerExtension.controller.ts +61 -17
- package/dist/client/adp/controllers/ExtensionPoint.controller.js +115 -140
- package/dist/client/adp/controllers/ExtensionPoint.controller.ts +17 -5
- package/dist/client/adp/init.js +22 -10
- package/dist/client/adp/init.ts +31 -13
- package/dist/client/adp/quick-actions/common/add-controller-to-page.js +4 -4
- package/dist/client/adp/quick-actions/common/add-controller-to-page.ts +6 -4
- package/dist/client/adp/quick-actions/common/add-new-annotation-file.js +29 -14
- package/dist/client/adp/quick-actions/common/add-new-annotation-file.ts +22 -9
- package/dist/client/adp/quick-actions/fe-v2/create-table-custom-column.js +100 -98
- package/dist/client/adp/quick-actions/fe-v2/create-table-custom-column.ts +8 -8
- package/dist/client/adp/sync-views-utils.js +11 -13
- package/dist/client/adp/sync-views-utils.ts +10 -12
- package/dist/client/adp/utils.js +1 -15
- package/dist/client/adp/utils.ts +0 -14
- package/dist/client/cpe/changes/service.js +26 -16
- package/dist/client/cpe/changes/service.ts +28 -21
- package/dist/client/cpe/documentation.js +125 -159
- package/dist/client/cpe/documentation.ts +16 -2
- package/dist/client/cpe/init.js +27 -5
- package/dist/client/cpe/init.ts +29 -4
- package/dist/client/cpe/outline/service.js +12 -3
- package/dist/client/cpe/outline/service.ts +10 -8
- package/dist/client/cpe/quick-actions/quick-action-service.ts +0 -1
- package/dist/client/cpe/selection.js +16 -4
- package/dist/client/cpe/selection.ts +14 -3
- package/dist/client/flp/init.js +28 -11
- package/dist/client/flp/init.ts +36 -19
- package/dist/client/messagebundle.properties +34 -1
- package/dist/client/thirdparty/@sap-ux-private/control-property-editor-common.js +2 -2
- package/dist/client/utils/info-center-message.js +33 -0
- package/dist/client/utils/info-center-message.ts +60 -0
- package/dist/client/utils/version.js +69 -104
- package/dist/client/utils/version.ts +25 -14
- package/package.json +5 -5
|
@@ -23,23 +23,24 @@ import { AddTableCellFragmentChangeContentType } from 'sap/ui/fl/Change';
|
|
|
23
23
|
/** sap.ui.layout */
|
|
24
24
|
import { type SimpleForm } from 'sap/ui/layout/form';
|
|
25
25
|
|
|
26
|
-
import { setApplicationRequiresReload } from '@sap-ux-private/control-property-editor-common';
|
|
26
|
+
import { MessageBarType, setApplicationRequiresReload } from '@sap-ux-private/control-property-editor-common';
|
|
27
27
|
|
|
28
|
-
import { getResourceModel, getTextBundle } from '../../i18n';
|
|
29
28
|
import { CommunicationService } from '../../cpe/communication-service';
|
|
29
|
+
import { getResourceModel } from '../../i18n';
|
|
30
30
|
|
|
31
|
-
import ControlUtils from '../control-utils';
|
|
32
|
-
import CommandExecutor from '../command-executor';
|
|
33
|
-
import { getFragments } from '../api-handler';
|
|
34
|
-
import BaseDialog from './BaseDialog.controller';
|
|
35
|
-
import { notifyUser } from '../utils';
|
|
36
|
-
import { type AddFragmentModel, type AddFragmentOptions } from './AddFragment.controller';
|
|
37
|
-
import { ValueState } from 'sap/ui/core/library';
|
|
38
31
|
import Input from 'sap/m/Input';
|
|
39
|
-
import Control from 'sap/ui/core/Control';
|
|
40
32
|
import ManagedObject from 'sap/ui/base/ManagedObject';
|
|
33
|
+
import Control from 'sap/ui/core/Control';
|
|
34
|
+
import { ValueState } from 'sap/ui/core/library';
|
|
41
35
|
import { QuickActionTelemetryData } from '../../cpe/quick-actions/quick-action-definition';
|
|
42
36
|
import { setAdditionalChangeInfoForChangeFile } from '../../utils/additional-change-info';
|
|
37
|
+
import { getError } from '../../utils/error';
|
|
38
|
+
import { sendInfoCenterMessage } from '../../utils/info-center-message';
|
|
39
|
+
import { getFragments } from '../api-handler';
|
|
40
|
+
import CommandExecutor from '../command-executor';
|
|
41
|
+
import ControlUtils from '../control-utils';
|
|
42
|
+
import { type AddFragmentModel, type AddFragmentOptions } from './AddFragment.controller';
|
|
43
|
+
import BaseDialog from './BaseDialog.controller';
|
|
43
44
|
|
|
44
45
|
const radix = 10;
|
|
45
46
|
|
|
@@ -125,15 +126,14 @@ export default class AddTableColumnFragments extends BaseDialog<AddTableColumnsF
|
|
|
125
126
|
|
|
126
127
|
await this.createFragmentChange(fragmentData);
|
|
127
128
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
);
|
|
129
|
+
await sendInfoCenterMessage({
|
|
130
|
+
title: { key: 'ADP_CREATE_XML_FRAGMENT_TITLE' },
|
|
131
|
+
description: {
|
|
132
|
+
key: 'ADP_ADD_TWO_FRAGMENTS_WITH_TEMPLATE_NOTIFICATION',
|
|
133
|
+
params: [columnFragmentName, cellFragmentName]
|
|
134
|
+
},
|
|
135
|
+
type: MessageBarType.info
|
|
136
|
+
});
|
|
137
137
|
|
|
138
138
|
this.handleDialogClose();
|
|
139
139
|
}
|
|
@@ -173,7 +173,13 @@ export default class AddTableColumnFragments extends BaseDialog<AddTableColumnsF
|
|
|
173
173
|
const { fragments } = await getFragments();
|
|
174
174
|
this.model.setProperty('/fragmentList', fragments);
|
|
175
175
|
} catch (e) {
|
|
176
|
-
|
|
176
|
+
const error = getError(e);
|
|
177
|
+
await sendInfoCenterMessage({
|
|
178
|
+
title: { key: 'ADP_GET_FRAGMENTS_FAILURE_TITLE' },
|
|
179
|
+
description: error.message,
|
|
180
|
+
type: MessageBarType.error
|
|
181
|
+
});
|
|
182
|
+
throw error;
|
|
177
183
|
}
|
|
178
184
|
|
|
179
185
|
this.model.setProperty('/index', indexArray);
|
|
@@ -2,22 +2,19 @@
|
|
|
2
2
|
sap.ui.define([
|
|
3
3
|
'sap/ui/core/library',
|
|
4
4
|
'sap/ui/core/mvc/Controller',
|
|
5
|
-
'sap/m/MessageToast',
|
|
6
5
|
'../utils',
|
|
7
|
-
'../../utils/error',
|
|
8
6
|
'../../utils/core',
|
|
9
7
|
'../control-utils',
|
|
10
8
|
'sap/ui/dt/OverlayRegistry',
|
|
11
9
|
'open/ux/preview/client/thirdparty/@sap-ux-private/control-property-editor-common',
|
|
12
10
|
'sap/base/Log'
|
|
13
|
-
], function (sap_ui_core_library, Controller,
|
|
11
|
+
], function (sap_ui_core_library, Controller, ___utils, ____utils_core, __ControlUtils, OverlayRegistry, ___sap_ux_private_control_property_editor_common, Log) {
|
|
14
12
|
'use strict';
|
|
15
13
|
function _interopRequireDefault(obj) {
|
|
16
14
|
return obj && obj.__esModule && typeof obj.default !== 'undefined' ? obj.default : obj;
|
|
17
15
|
}
|
|
18
16
|
const ValueState = sap_ui_core_library['ValueState'];
|
|
19
17
|
const checkForExistingChange = ___utils['checkForExistingChange'];
|
|
20
|
-
const getError = ____utils_error['getError'];
|
|
21
18
|
const getControlById = ____utils_core['getControlById'];
|
|
22
19
|
const ControlUtils = _interopRequireDefault(__ControlUtils);
|
|
23
20
|
const reportTelemetry = ___sap_ux_private_control_property_editor_common['reportTelemetry'];
|
|
@@ -149,11 +146,6 @@ sap.ui.define([
|
|
|
149
146
|
this.dialog.close();
|
|
150
147
|
this.dialog.destroy();
|
|
151
148
|
},
|
|
152
|
-
handleError: function _handleError(e) {
|
|
153
|
-
const error = getError(e);
|
|
154
|
-
MessageToast.show(error.message, { duration: 5000 });
|
|
155
|
-
throw error;
|
|
156
|
-
},
|
|
157
149
|
specialIndexHandling: function _specialIndexHandling(specialIndexAggregation) {
|
|
158
150
|
const overlay = OverlayRegistry.getOverlay(this.getRuntimeControl());
|
|
159
151
|
const aggregations = overlay.getDesignTimeMetadata().getData().aggregations;
|
|
@@ -7,11 +7,9 @@ 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';
|
|
9
9
|
import RuntimeAuthoring from 'sap/ui/rta/RuntimeAuthoring';
|
|
10
|
-
import MessageToast from 'sap/m/MessageToast';
|
|
11
10
|
import CommandExecutor from '../command-executor';
|
|
12
11
|
import { checkForExistingChange } from '../utils';
|
|
13
12
|
import type { Fragments } from '../api-handler';
|
|
14
|
-
import { getError } from '../../utils/error';
|
|
15
13
|
import ManagedObjectMetadata from 'sap/ui/base/ManagedObjectMetadata';
|
|
16
14
|
import { getControlById } from '../../utils/core';
|
|
17
15
|
import ControlUtils from '../control-utils';
|
|
@@ -226,18 +224,6 @@ export default abstract class BaseDialog<T extends BaseDialogModel = BaseDialogM
|
|
|
226
224
|
this.dialog.destroy();
|
|
227
225
|
}
|
|
228
226
|
|
|
229
|
-
/**
|
|
230
|
-
* Function that handles runtime thrown errors with MessageToast
|
|
231
|
-
*
|
|
232
|
-
* @param e error instance
|
|
233
|
-
* @throws {Error}.
|
|
234
|
-
*/
|
|
235
|
-
protected handleError(e: unknown): void {
|
|
236
|
-
const error = getError(e);
|
|
237
|
-
MessageToast.show(error.message, { duration: 5000 });
|
|
238
|
-
throw error;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
227
|
/**
|
|
242
228
|
* Handles the index field whenever a specific aggregation is chosen
|
|
243
229
|
*
|