@sap-ux/preview-middleware 0.26.12 → 1.0.1
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/cdm.d.ts +2 -2
- package/dist/base/cdm.js +10 -11
- package/dist/base/config.d.ts +1 -1
- package/dist/base/config.js +60 -72
- package/dist/base/flex.js +16 -23
- package/dist/base/flp.d.ts +2 -2
- package/dist/base/flp.js +96 -96
- package/dist/base/index.d.ts +3 -3
- package/dist/base/index.js +3 -12
- package/dist/base/remote-url.js +14 -24
- package/dist/base/test.d.ts +1 -1
- package/dist/base/test.js +2 -6
- package/dist/base/utils/cards.d.ts +1 -1
- package/dist/base/utils/cards.js +3 -9
- package/dist/client/adp/add-fragment.js +4 -4
- package/dist/client/adp/add-fragment.ts +2 -2
- package/dist/client/adp/api-handler.js +2 -2
- package/dist/client/adp/api-handler.ts +1 -1
- package/dist/client/adp/command-executor.js +3 -3
- package/dist/client/adp/command-executor.ts +2 -2
- package/dist/client/adp/controllers/AddActionFragment.controller.js +5 -5
- package/dist/client/adp/controllers/AddActionFragment.controller.ts +7 -7
- package/dist/client/adp/controllers/AddCustomFragment.controller.js +7 -7
- package/dist/client/adp/controllers/AddCustomFragment.controller.ts +9 -9
- package/dist/client/adp/controllers/AddFragment.controller.js +7 -7
- package/dist/client/adp/controllers/AddFragment.controller.ts +11 -11
- package/dist/client/adp/controllers/AddSubpage.controller.js +4 -4
- package/dist/client/adp/controllers/AddSubpage.controller.ts +7 -7
- package/dist/client/adp/controllers/AddTableColumnFragments.controller.js +7 -7
- package/dist/client/adp/controllers/AddTableColumnFragments.controller.ts +11 -11
- package/dist/client/adp/controllers/BaseDialog.controller.js +3 -3
- package/dist/client/adp/controllers/BaseDialog.controller.ts +6 -6
- package/dist/client/adp/controllers/ControllerExtension.controller.js +14 -14
- package/dist/client/adp/controllers/ControllerExtension.controller.ts +12 -12
- package/dist/client/adp/controllers/ExtensionPoint.controller.js +4 -4
- package/dist/client/adp/controllers/ExtensionPoint.controller.ts +5 -5
- package/dist/client/adp/controllers/FileExistsDialog.controller.js +2 -2
- package/dist/client/adp/controllers/FileExistsDialog.controller.ts +2 -2
- package/dist/client/adp/dialog-factory.js +2 -2
- package/dist/client/adp/dialog-factory.ts +16 -16
- package/dist/client/adp/extend-controller.js +4 -4
- package/dist/client/adp/extend-controller.ts +2 -2
- package/dist/client/adp/extension-point.js +5 -5
- package/dist/client/adp/extension-point.ts +4 -4
- package/dist/client/adp/init-dialogs.js +6 -6
- package/dist/client/adp/init-dialogs.ts +6 -6
- package/dist/client/adp/init.js +13 -13
- package/dist/client/adp/init.ts +9 -9
- package/dist/client/adp/quick-actions/add-new-subpage-quick-action-base.js +8 -8
- package/dist/client/adp/quick-actions/add-new-subpage-quick-action-base.ts +10 -10
- package/dist/client/adp/quick-actions/common/add-controller-to-page.js +13 -13
- package/dist/client/adp/quick-actions/common/add-controller-to-page.ts +11 -11
- package/dist/client/adp/quick-actions/common/add-new-annotation-file.js +11 -11
- package/dist/client/adp/quick-actions/common/add-new-annotation-file.ts +10 -10
- package/dist/client/adp/quick-actions/common/create-page-action.js +8 -8
- package/dist/client/adp/quick-actions/common/create-page-action.ts +7 -7
- package/dist/client/adp/quick-actions/common/op-add-custom-section.js +6 -6
- package/dist/client/adp/quick-actions/common/op-add-custom-section.ts +5 -5
- package/dist/client/adp/quick-actions/common/op-add-header-field.js +7 -7
- package/dist/client/adp/quick-actions/common/op-add-header-field.ts +7 -7
- package/dist/client/adp/quick-actions/common/utils.ts +1 -1
- package/dist/client/adp/quick-actions/dialog-enablement-validator.js +3 -3
- package/dist/client/adp/quick-actions/dialog-enablement-validator.ts +3 -3
- package/dist/client/adp/quick-actions/fe-v2/add-new-subpage.js +6 -6
- package/dist/client/adp/quick-actions/fe-v2/add-new-subpage.ts +5 -5
- package/dist/client/adp/quick-actions/fe-v2/change-table-actions.js +5 -5
- package/dist/client/adp/quick-actions/fe-v2/change-table-actions.ts +5 -5
- package/dist/client/adp/quick-actions/fe-v2/change-table-columns.js +7 -7
- package/dist/client/adp/quick-actions/fe-v2/change-table-columns.ts +5 -5
- package/dist/client/adp/quick-actions/fe-v2/create-table-action.js +11 -11
- package/dist/client/adp/quick-actions/fe-v2/create-table-action.ts +6 -6
- package/dist/client/adp/quick-actions/fe-v2/create-table-custom-column.js +13 -13
- package/dist/client/adp/quick-actions/fe-v2/create-table-custom-column.ts +7 -7
- package/dist/client/adp/quick-actions/fe-v2/lr-enable-semantic-date-range-filter-bar.js +9 -9
- package/dist/client/adp/quick-actions/fe-v2/lr-enable-semantic-date-range-filter-bar.ts +6 -6
- package/dist/client/adp/quick-actions/fe-v2/lr-enable-table-filtering.js +11 -11
- package/dist/client/adp/quick-actions/fe-v2/lr-enable-table-filtering.ts +6 -6
- package/dist/client/adp/quick-actions/fe-v2/lr-enable-variant-management.js +4 -4
- package/dist/client/adp/quick-actions/fe-v2/lr-enable-variant-management.ts +3 -3
- package/dist/client/adp/quick-actions/fe-v2/lr-toggle-clear-filter-bar.js +4 -4
- package/dist/client/adp/quick-actions/fe-v2/lr-toggle-clear-filter-bar.ts +4 -4
- package/dist/client/adp/quick-actions/fe-v2/op-enable-empty-row-mode.js +12 -12
- package/dist/client/adp/quick-actions/fe-v2/op-enable-empty-row-mode.ts +8 -8
- package/dist/client/adp/quick-actions/fe-v2/op-enable-variant-management.js +6 -6
- package/dist/client/adp/quick-actions/fe-v2/op-enable-variant-management.ts +5 -5
- package/dist/client/adp/quick-actions/fe-v2/registry.js +18 -18
- package/dist/client/adp/quick-actions/fe-v2/registry.ts +18 -18
- package/dist/client/adp/quick-actions/fe-v2/utils.js +4 -4
- package/dist/client/adp/quick-actions/fe-v2/utils.ts +2 -2
- package/dist/client/adp/quick-actions/fe-v4/add-new-subpage.js +7 -7
- package/dist/client/adp/quick-actions/fe-v4/add-new-subpage.ts +5 -5
- package/dist/client/adp/quick-actions/fe-v4/change-table-actions.js +9 -9
- package/dist/client/adp/quick-actions/fe-v4/change-table-actions.ts +7 -7
- package/dist/client/adp/quick-actions/fe-v4/change-table-columns.js +6 -6
- package/dist/client/adp/quick-actions/fe-v4/change-table-columns.ts +6 -6
- package/dist/client/adp/quick-actions/fe-v4/create-page-action.js +11 -11
- package/dist/client/adp/quick-actions/fe-v4/create-page-action.ts +9 -9
- package/dist/client/adp/quick-actions/fe-v4/create-table-action-config-change.js +13 -13
- package/dist/client/adp/quick-actions/fe-v4/create-table-action-config-change.ts +11 -11
- package/dist/client/adp/quick-actions/fe-v4/create-table-custom-column-config-change.js +16 -16
- package/dist/client/adp/quick-actions/fe-v4/create-table-custom-column-config-change.ts +9 -9
- package/dist/client/adp/quick-actions/fe-v4/enable-variant-management.js +5 -5
- package/dist/client/adp/quick-actions/fe-v4/enable-variant-management.ts +4 -4
- package/dist/client/adp/quick-actions/fe-v4/lr-enable-semantic-date-range-filter-bar.js +5 -5
- package/dist/client/adp/quick-actions/fe-v4/lr-enable-semantic-date-range-filter-bar.ts +5 -5
- package/dist/client/adp/quick-actions/fe-v4/lr-enable-table-filtering.js +7 -7
- package/dist/client/adp/quick-actions/fe-v4/lr-enable-table-filtering.ts +6 -6
- package/dist/client/adp/quick-actions/fe-v4/lr-toggle-clear-filter-bar.js +5 -5
- package/dist/client/adp/quick-actions/fe-v4/lr-toggle-clear-filter-bar.ts +5 -5
- package/dist/client/adp/quick-actions/fe-v4/op-add-custom-section.js +8 -8
- package/dist/client/adp/quick-actions/fe-v4/op-add-custom-section.ts +8 -8
- package/dist/client/adp/quick-actions/fe-v4/op-enable-empty-row-mode.js +12 -12
- package/dist/client/adp/quick-actions/fe-v4/op-enable-empty-row-mode.ts +8 -8
- package/dist/client/adp/quick-actions/fe-v4/registry.js +17 -17
- package/dist/client/adp/quick-actions/fe-v4/registry.ts +17 -17
- package/dist/client/adp/quick-actions/fe-v4/utils.js +6 -6
- package/dist/client/adp/quick-actions/fe-v4/utils.ts +3 -3
- package/dist/client/adp/quick-actions/load.ts +2 -2
- package/dist/client/adp/quick-actions/quick-action-base.js +2 -2
- package/dist/client/adp/quick-actions/quick-action-base.ts +3 -3
- package/dist/client/adp/quick-actions/simple-quick-action-base.js +3 -3
- package/dist/client/adp/quick-actions/simple-quick-action-base.ts +4 -4
- package/dist/client/adp/quick-actions/table-quick-action-base.js +17 -17
- package/dist/client/adp/quick-actions/table-quick-action-base.ts +9 -9
- package/dist/client/adp/sync-views-utils.js +4 -4
- package/dist/client/adp/sync-views-utils.ts +3 -3
- package/dist/client/adp/utils.js +3 -3
- package/dist/client/adp/utils.ts +2 -2
- package/dist/client/cpe/additional-change-info/add-xml-additional-info.js +7 -7
- package/dist/client/cpe/additional-change-info/add-xml-additional-info.ts +2 -2
- package/dist/client/cpe/changes/flex-change.js +3 -3
- package/dist/client/cpe/changes/flex-change.ts +3 -3
- package/dist/client/cpe/changes/generic-change.js +5 -5
- package/dist/client/cpe/changes/generic-change.ts +4 -4
- package/dist/client/cpe/changes/index.js +2 -2
- package/dist/client/cpe/changes/index.ts +1 -1
- package/dist/client/cpe/changes/service.js +12 -12
- package/dist/client/cpe/changes/service.ts +9 -9
- package/dist/client/cpe/changes/validator.js +2 -2
- package/dist/client/cpe/changes/validator.ts +1 -1
- package/dist/client/cpe/communication-service.js +2 -2
- package/dist/client/cpe/communication-service.ts +2 -2
- package/dist/client/cpe/connector-service.js +3 -3
- package/dist/client/cpe/connector-service.ts +3 -3
- package/dist/client/cpe/context-menu-service.js +6 -6
- package/dist/client/cpe/context-menu-service.ts +6 -6
- package/dist/client/cpe/control-data.js +3 -3
- package/dist/client/cpe/control-data.ts +5 -5
- package/dist/client/cpe/documentation.js +4 -4
- package/dist/client/cpe/documentation.ts +5 -5
- package/dist/client/cpe/init.js +15 -15
- package/dist/client/cpe/init.ts +16 -16
- package/dist/client/cpe/odata-health/odata-health-checker.js +5 -5
- package/dist/client/cpe/odata-health/odata-health-checker.ts +10 -10
- package/dist/client/cpe/outline/editable.js +4 -4
- package/dist/client/cpe/outline/editable.ts +4 -4
- package/dist/client/cpe/outline/nodes.js +7 -7
- package/dist/client/cpe/outline/nodes.ts +7 -7
- package/dist/client/cpe/outline/service.js +3 -3
- package/dist/client/cpe/outline/service.ts +4 -4
- package/dist/client/cpe/quick-actions/quick-action-service.js +5 -5
- package/dist/client/cpe/quick-actions/quick-action-service.ts +10 -10
- package/dist/client/cpe/quick-actions/registry.js +3 -3
- 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 +2 -2
- package/dist/client/cpe/rta-service.ts +1 -1
- package/dist/client/cpe/selection.js +8 -8
- package/dist/client/cpe/selection.ts +7 -7
- package/dist/client/cpe/utils.js +2 -2
- package/dist/client/cpe/utils.ts +2 -2
- package/dist/client/flp/WorkspaceConnector.js +6 -6
- package/dist/client/flp/WorkspaceConnector.ts +4 -4
- package/dist/client/flp/enableFakeConnector.js +4 -4
- package/dist/client/flp/enableFakeConnector.ts +3 -3
- package/dist/client/flp/init.js +6 -6
- package/dist/client/flp/init.ts +5 -5
- package/dist/client/flp/initConnectors.js +3 -3
- package/dist/client/flp/initConnectors.ts +1 -1
- package/dist/client/thirdparty/@sap-ux-private/control-property-editor-common.js +397 -477
- package/dist/client/utils/additional-change-info.js +2 -2
- package/dist/client/utils/additional-change-info.ts +2 -2
- package/dist/client/utils/core.js +2 -2
- package/dist/client/utils/core.ts +1 -1
- package/dist/client/utils/fe-v4.js +3 -3
- package/dist/client/utils/fe-v4.ts +2 -2
- package/dist/client/utils/info-center-message.js +3 -3
- package/dist/client/utils/info-center-message.ts +2 -2
- package/dist/client/utils/version.js +2 -2
- package/dist/client/utils/version.ts +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -25
- package/dist/types/index.js +1 -4
- package/dist/ui5/middleware.d.ts +11 -1
- package/dist/ui5/middleware.js +13 -15
- package/package.json +18 -16
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
sap.ui.define(["../../utils/version", "sap/ui/core/util/reflection/JsControlTreeModifier", "sap/base/Log", "../../utils/error", "../../utils/fe-v4"], function (
|
|
3
|
+
sap.ui.define(["../../utils/version", "sap/ui/core/util/reflection/JsControlTreeModifier", "sap/base/Log", "../../utils/error", "../../utils/fe-v4"], function (____utils_versionjs, JsControlTreeModifier, Log, ____utils_errorjs, ____utils_fe_v4js) {
|
|
4
4
|
"use strict";
|
|
5
5
|
|
|
6
6
|
function __ui5_require_async(path) {
|
|
@@ -20,10 +20,10 @@ sap.ui.define(["../../utils/version", "sap/ui/core/util/reflection/JsControlTree
|
|
|
20
20
|
});
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
|
-
const getUi5Version =
|
|
24
|
-
const isLowerThanMinimalUi5Version =
|
|
25
|
-
const getError =
|
|
26
|
-
const getConfigMapControlIdMap =
|
|
23
|
+
const getUi5Version = ____utils_versionjs["getUi5Version"];
|
|
24
|
+
const isLowerThanMinimalUi5Version = ____utils_versionjs["isLowerThanMinimalUi5Version"];
|
|
25
|
+
const getError = ____utils_errorjs["getError"];
|
|
26
|
+
const getConfigMapControlIdMap = ____utils_fe_v4js["getConfigMapControlIdMap"];
|
|
27
27
|
const ADD_NEW_ANNOTATION_FILE_CHANGE = 'appdescr_app_addAnnotationsToOData';
|
|
28
28
|
const RENAME_CHANGE = 'rename';
|
|
29
29
|
const MOVE_CHANGE = 'moveControls';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { ChangeDefinition } from 'sap/ui/fl/Change';
|
|
2
|
-
import { TextBundle } from '../../i18n';
|
|
3
|
-
import { getUi5Version, isLowerThanMinimalUi5Version } from '../../utils/version';
|
|
2
|
+
import { TextBundle } from '../../i18n.js';
|
|
3
|
+
import { getUi5Version, isLowerThanMinimalUi5Version } from '../../utils/version.js';
|
|
4
4
|
import FlexChange from 'sap/ui/fl/Change';
|
|
5
5
|
import JsControlTreeModifier from 'sap/ui/core/util/reflection/JsControlTreeModifier';
|
|
6
6
|
import Log from 'sap/base/Log';
|
|
7
|
-
import { getError } from '../../utils/error';
|
|
7
|
+
import { getError } from '../../utils/error.js';
|
|
8
8
|
import { AppComponent } from 'sap/ui/rta/RuntimeAuthoring';
|
|
9
|
-
import { getConfigMapControlIdMap } from '../../utils/fe-v4';
|
|
9
|
+
import { getConfigMapControlIdMap } from '../../utils/fe-v4.js';
|
|
10
10
|
import { PropertyValue } from '@sap-ux-private/control-property-editor-common';
|
|
11
11
|
|
|
12
12
|
export const ADD_NEW_ANNOTATION_FILE_CHANGE = 'appdescr_app_addAnnotationsToOData';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
sap.ui.define(["./service"], function (
|
|
3
|
+
sap.ui.define(["./service"], function (___servicejs) {
|
|
4
4
|
"use strict";
|
|
5
5
|
|
|
6
6
|
var __exports = {
|
|
7
7
|
__esModule: true
|
|
8
8
|
};
|
|
9
|
-
__exports.ChangeService =
|
|
9
|
+
__exports.ChangeService = ___servicejs.ChangeService;
|
|
10
10
|
return __exports;
|
|
11
11
|
});
|
|
12
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ChangeService } from './service';
|
|
1
|
+
export { ChangeService } from './service.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
sap.ui.define(["open/ux/preview/client/thirdparty/@sap-ux-private/control-property-editor-common", "sap/base/Log", "../../i18n", "../../utils/additional-change-info", "../../utils/core", "../../utils/error", "../../utils/info-center-message", "../rta-service", "./flex-change", "./generic-change"], function (___sap_ux_private_control_property_editor_common, Log,
|
|
3
|
+
sap.ui.define(["open/ux/preview/client/thirdparty/@sap-ux-private/control-property-editor-common", "sap/base/Log", "../../i18n", "../../utils/additional-change-info", "../../utils/core", "../../utils/error", "../../utils/info-center-message", "../rta-service", "./flex-change", "./generic-change"], function (___sap_ux_private_control_property_editor_common, Log, ____i18njs, ____utils_additional_change_infojs, ____utils_corejs, ____utils_errorjs, ____utils_info_center_messagejs, ___rta_servicejs, ___flex_changejs, ___generic_changejs) {
|
|
4
4
|
"use strict";
|
|
5
5
|
|
|
6
6
|
const changeProperty = ___sap_ux_private_control_property_editor_common["changeProperty"];
|
|
@@ -15,17 +15,17 @@ sap.ui.define(["open/ux/preview/client/thirdparty/@sap-ux-private/control-proper
|
|
|
15
15
|
const save = ___sap_ux_private_control_property_editor_common["save"];
|
|
16
16
|
const setApplicationRequiresReload = ___sap_ux_private_control_property_editor_common["setApplicationRequiresReload"];
|
|
17
17
|
const UNKNOWN_CHANGE_KIND = ___sap_ux_private_control_property_editor_common["UNKNOWN_CHANGE_KIND"];
|
|
18
|
-
const getTextBundle =
|
|
19
|
-
const setAdditionalChangeInfo =
|
|
20
|
-
const getControlById =
|
|
21
|
-
const isA =
|
|
22
|
-
const getError =
|
|
23
|
-
const sendInfoCenterMessage =
|
|
24
|
-
const modeAndStackChangeHandler =
|
|
25
|
-
const applyChange =
|
|
26
|
-
const GENERIC_CHANGE_HANDLER =
|
|
27
|
-
const getControlIdByChange =
|
|
28
|
-
const getFlexObject =
|
|
18
|
+
const getTextBundle = ____i18njs["getTextBundle"];
|
|
19
|
+
const setAdditionalChangeInfo = ____utils_additional_change_infojs["setAdditionalChangeInfo"];
|
|
20
|
+
const getControlById = ____utils_corejs["getControlById"];
|
|
21
|
+
const isA = ____utils_corejs["isA"];
|
|
22
|
+
const getError = ____utils_errorjs["getError"];
|
|
23
|
+
const sendInfoCenterMessage = ____utils_info_center_messagejs["sendInfoCenterMessage"];
|
|
24
|
+
const modeAndStackChangeHandler = ___rta_servicejs["modeAndStackChangeHandler"];
|
|
25
|
+
const applyChange = ___flex_changejs["applyChange"];
|
|
26
|
+
const GENERIC_CHANGE_HANDLER = ___generic_changejs["GENERIC_CHANGE_HANDLER"];
|
|
27
|
+
const getControlIdByChange = ___generic_changejs["getControlIdByChange"];
|
|
28
|
+
const getFlexObject = ___generic_changejs["getFlexObject"];
|
|
29
29
|
const TITLE_MAP = {
|
|
30
30
|
appdescr_app_addAnnotationsToOData: 'Add New Annotation File'
|
|
31
31
|
};
|
|
@@ -27,14 +27,14 @@ import type Event from 'sap/ui/base/Event';
|
|
|
27
27
|
import UI5Element from 'sap/ui/core/Element';
|
|
28
28
|
import { ChangeDefinition } from 'sap/ui/fl/Change';
|
|
29
29
|
import type FlexCommand from 'sap/ui/rta/command/FlexCommand';
|
|
30
|
-
import { getTextBundle } from '../../i18n';
|
|
31
|
-
import { setAdditionalChangeInfo } from '../../utils/additional-change-info';
|
|
32
|
-
import { getControlById, isA } from '../../utils/core';
|
|
33
|
-
import { getError } from '../../utils/error';
|
|
34
|
-
import { sendInfoCenterMessage } from '../../utils/info-center-message';
|
|
35
|
-
import { modeAndStackChangeHandler } from '../rta-service';
|
|
36
|
-
import type { ActionSenderFunction, SubscribeFunction, UI5AdaptationOptions } from '../types';
|
|
37
|
-
import { applyChange } from './flex-change';
|
|
30
|
+
import { getTextBundle } from '../../i18n.js';
|
|
31
|
+
import { setAdditionalChangeInfo } from '../../utils/additional-change-info.js';
|
|
32
|
+
import { getControlById, isA } from '../../utils/core.js';
|
|
33
|
+
import { getError } from '../../utils/error.js';
|
|
34
|
+
import { sendInfoCenterMessage } from '../../utils/info-center-message.js';
|
|
35
|
+
import { modeAndStackChangeHandler } from '../rta-service.js';
|
|
36
|
+
import type { ActionSenderFunction, SubscribeFunction, UI5AdaptationOptions } from '../types.js';
|
|
37
|
+
import { applyChange } from './flex-change.js';
|
|
38
38
|
import {
|
|
39
39
|
ChangeHandler,
|
|
40
40
|
ChangeType,
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
getControlIdByChange,
|
|
44
44
|
getFlexObject,
|
|
45
45
|
type GenericChange
|
|
46
|
-
} from './generic-change';
|
|
46
|
+
} from './generic-change.js';
|
|
47
47
|
|
|
48
48
|
const TITLE_MAP: { [key: string]: string } = {
|
|
49
49
|
appdescr_app_addAnnotationsToOData: 'Add New Annotation File'
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
sap.ui.define(["../../i18n"], function (
|
|
3
|
+
sap.ui.define(["../../i18n"], function (____i18njs) {
|
|
4
4
|
"use strict";
|
|
5
5
|
|
|
6
|
-
const getTextBundle =
|
|
6
|
+
const getTextBundle = ____i18njs["getTextBundle"];
|
|
7
7
|
/**
|
|
8
8
|
* Function to validate if a given value is a valid binding model.
|
|
9
9
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type ResourceBundle from 'sap/base/i18n/ResourceBundle';
|
|
2
2
|
import type ResourceModel from 'sap/ui/model/resource/ResourceModel';
|
|
3
3
|
import type UI5Element from 'sap/ui/core/Element';
|
|
4
|
-
import { getTextBundle } from '../../i18n';
|
|
4
|
+
import { getTextBundle } from '../../i18n.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Function to validate if a given value is a valid binding model.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
sap.ui.define(["sap/base/Log", "open/ux/preview/client/thirdparty/@sap-ux-private/control-property-editor-common", "../utils/error"], function (Log, ___sap_ux_private_control_property_editor_common,
|
|
3
|
+
sap.ui.define(["sap/base/Log", "open/ux/preview/client/thirdparty/@sap-ux-private/control-property-editor-common", "../utils/error"], function (Log, ___sap_ux_private_control_property_editor_common, ___utils_errorjs) {
|
|
4
4
|
"use strict";
|
|
5
5
|
|
|
6
6
|
const startPostMessageCommunication = ___sap_ux_private_control_property_editor_common["startPostMessageCommunication"];
|
|
7
|
-
const getError =
|
|
7
|
+
const getError = ___utils_errorjs["getError"];
|
|
8
8
|
class CommunicationService {
|
|
9
9
|
/**
|
|
10
10
|
* Sends an action to the CPE.
|
|
@@ -3,9 +3,9 @@ import Log from 'sap/base/Log';
|
|
|
3
3
|
import type { ExternalAction } from '@sap-ux-private/control-property-editor-common';
|
|
4
4
|
import { startPostMessageCommunication } from '@sap-ux-private/control-property-editor-common';
|
|
5
5
|
|
|
6
|
-
import { getError } from '../utils/error';
|
|
6
|
+
import { getError } from '../utils/error.js';
|
|
7
7
|
|
|
8
|
-
import type { ActionHandler } from './types';
|
|
8
|
+
import type { ActionHandler } from './types.js';
|
|
9
9
|
|
|
10
10
|
export class CommunicationService {
|
|
11
11
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
sap.ui.define(["open/ux/preview/client/thirdparty/@sap-ux-private/control-property-editor-common", "../utils/version"], function (___sap_ux_private_control_property_editor_common,
|
|
3
|
+
sap.ui.define(["open/ux/preview/client/thirdparty/@sap-ux-private/control-property-editor-common", "../utils/version"], function (___sap_ux_private_control_property_editor_common, ___utils_versionjs) {
|
|
4
4
|
"use strict";
|
|
5
5
|
|
|
6
6
|
function __ui5_require_async(path) {
|
|
@@ -22,8 +22,8 @@ sap.ui.define(["open/ux/preview/client/thirdparty/@sap-ux-private/control-proper
|
|
|
22
22
|
}
|
|
23
23
|
const reloadApplication = ___sap_ux_private_control_property_editor_common["reloadApplication"];
|
|
24
24
|
const storageFileChanged = ___sap_ux_private_control_property_editor_common["storageFileChanged"];
|
|
25
|
-
const getUi5Version =
|
|
26
|
-
const isLowerThanMinimalUi5Version =
|
|
25
|
+
const getUi5Version = ___utils_versionjs["getUi5Version"];
|
|
26
|
+
const isLowerThanMinimalUi5Version = ___utils_versionjs["isLowerThanMinimalUi5Version"];
|
|
27
27
|
/**
|
|
28
28
|
* A Class of WorkspaceConnectorService
|
|
29
29
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ExternalAction } from '@sap-ux-private/control-property-editor-common';
|
|
2
2
|
import { reloadApplication, storageFileChanged } from '@sap-ux-private/control-property-editor-common';
|
|
3
|
-
import type { ActionSenderFunction, SubscribeFunction } from './types';
|
|
4
|
-
import { getUi5Version, isLowerThanMinimalUi5Version } from '../utils/version';
|
|
5
|
-
import { AdditionalChangeInfo } from '../utils/additional-change-info';
|
|
3
|
+
import type { ActionSenderFunction, SubscribeFunction } from './types.js';
|
|
4
|
+
import { getUi5Version, isLowerThanMinimalUi5Version } from '../utils/version.js';
|
|
5
|
+
import { AdditionalChangeInfo } from '../utils/additional-change-info.js';
|
|
6
6
|
/**
|
|
7
7
|
* A Class of WorkspaceConnectorService
|
|
8
8
|
*/
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
sap.ui.define(["open/ux/preview/client/thirdparty/@sap-ux-private/control-property-editor-common", "../adp/dialog-factory", "../i18n", "sap/base/Log", "../utils/core", "../utils/version", "../utils/application"], function (___sap_ux_private_control_property_editor_common,
|
|
3
|
+
sap.ui.define(["open/ux/preview/client/thirdparty/@sap-ux-private/control-property-editor-common", "../adp/dialog-factory", "../i18n", "sap/base/Log", "../utils/core", "../utils/version", "../utils/application"], function (___sap_ux_private_control_property_editor_common, ___adp_dialog_factoryjs, ___i18njs, Log, ___utils_corejs, ___utils_versionjs, ___utils_applicationjs) {
|
|
4
4
|
"use strict";
|
|
5
5
|
|
|
6
6
|
const executeContextMenuAction = ___sap_ux_private_control_property_editor_common["executeContextMenuAction"];
|
|
7
7
|
const reportTelemetry = ___sap_ux_private_control_property_editor_common["reportTelemetry"];
|
|
8
8
|
const requestControlContextMenu = ___sap_ux_private_control_property_editor_common["requestControlContextMenu"];
|
|
9
|
-
const DialogFactory =
|
|
10
|
-
const getTextBundle =
|
|
11
|
-
const getControlById =
|
|
12
|
-
const getUi5Version =
|
|
13
|
-
const getApplicationType =
|
|
9
|
+
const DialogFactory = ___adp_dialog_factoryjs["DialogFactory"];
|
|
10
|
+
const getTextBundle = ___i18njs["getTextBundle"];
|
|
11
|
+
const getControlById = ___utils_corejs["getControlById"];
|
|
12
|
+
const getUi5Version = ___utils_versionjs["getUi5Version"];
|
|
13
|
+
const getApplicationType = ___utils_applicationjs["getApplicationType"];
|
|
14
14
|
/**
|
|
15
15
|
* A Class of ContextMenuService
|
|
16
16
|
*/
|
|
@@ -4,15 +4,15 @@ import {
|
|
|
4
4
|
reportTelemetry,
|
|
5
5
|
requestControlContextMenu
|
|
6
6
|
} from '@sap-ux-private/control-property-editor-common';
|
|
7
|
-
import { ActionSenderFunction, SubscribeFunction } from './types';
|
|
7
|
+
import { ActionSenderFunction, SubscribeFunction } from './types.js';
|
|
8
8
|
import RuntimeAuthoring from 'sap/ui/rta/RuntimeAuthoring';
|
|
9
9
|
import { ActionService } from 'sap/ui/rta/service/Action';
|
|
10
|
-
import { DialogFactory } from '../adp/dialog-factory';
|
|
11
|
-
import { getTextBundle } from '../i18n';
|
|
10
|
+
import { DialogFactory } from '../adp/dialog-factory.js';
|
|
11
|
+
import { getTextBundle } from '../i18n.js';
|
|
12
12
|
import Log from 'sap/base/Log';
|
|
13
|
-
import { getControlById } from '../utils/core';
|
|
14
|
-
import { getUi5Version } from '../utils/version';
|
|
15
|
-
import { getApplicationType } from '../utils/application';
|
|
13
|
+
import { getControlById } from '../utils/core.js';
|
|
14
|
+
import { getUi5Version } from '../utils/version.js';
|
|
15
|
+
import { getApplicationType } from '../utils/application.js';
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* A Class of ContextMenuService
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
sap.ui.define(["open/ux/preview/client/thirdparty/@sap-ux-private/control-property-editor-common", "sap/ui/fl/Utils", "./utils", "sap/ui/base/DataType", "../utils/fe-v4"], function (___sap_ux_private_control_property_editor_common, Utils,
|
|
3
|
+
sap.ui.define(["open/ux/preview/client/thirdparty/@sap-ux-private/control-property-editor-common", "sap/ui/fl/Utils", "./utils", "sap/ui/base/DataType", "../utils/fe-v4"], function (___sap_ux_private_control_property_editor_common, Utils, ___utilsjs, DataType, ___utils_fe_v4js) {
|
|
4
4
|
"use strict";
|
|
5
5
|
|
|
6
6
|
const BOOLEAN_VALUE_TYPE = ___sap_ux_private_control_property_editor_common["BOOLEAN_VALUE_TYPE"];
|
|
@@ -12,8 +12,8 @@ sap.ui.define(["open/ux/preview/client/thirdparty/@sap-ux-private/control-proper
|
|
|
12
12
|
const PropertyType = ___sap_ux_private_control_property_editor_common["PropertyType"];
|
|
13
13
|
const STRING_VALUE_TYPE = ___sap_ux_private_control_property_editor_common["STRING_VALUE_TYPE"];
|
|
14
14
|
const convertCamelCaseToPascalCase = ___sap_ux_private_control_property_editor_common["convertCamelCaseToPascalCase"];
|
|
15
|
-
const getManifestProperties =
|
|
16
|
-
const getV4PageType =
|
|
15
|
+
const getManifestProperties = ___utilsjs["getManifestProperties"];
|
|
16
|
+
const getV4PageType = ___utils_fe_v4js["getV4PageType"];
|
|
17
17
|
/**
|
|
18
18
|
* A property is disabled if it is an array or the type is 'any'
|
|
19
19
|
* - since we currently don't have a good editor for it Otherwise, it is enabled.
|
|
@@ -14,12 +14,12 @@ import {
|
|
|
14
14
|
import Utils from 'sap/ui/fl/Utils';
|
|
15
15
|
import type ManagedObject from 'sap/ui/base/ManagedObject';
|
|
16
16
|
import type ElementOverlay from 'sap/ui/dt/ElementOverlay';
|
|
17
|
-
import type { MergedSetting, ManagedObjectMetadataProperties } from './utils';
|
|
18
|
-
import { getManifestProperties } from './utils';
|
|
19
|
-
import type { UI5ControlProperty } from './types';
|
|
17
|
+
import type { MergedSetting, ManagedObjectMetadataProperties } from './utils.js';
|
|
18
|
+
import { getManifestProperties } from './utils.js';
|
|
19
|
+
import type { UI5ControlProperty } from './types.js';
|
|
20
20
|
import DataType from 'sap/ui/base/DataType';
|
|
21
|
-
import { getV4PageType } from '../utils/fe-v4';
|
|
22
|
-
import type { ChangeService } from './changes';
|
|
21
|
+
import { getV4PageType } from '../utils/fe-v4.js';
|
|
22
|
+
import type { ChangeService } from './changes/index.js';
|
|
23
23
|
import type { TemplateType } from 'sap/ui/dt/DesignTimeMetadata';
|
|
24
24
|
|
|
25
25
|
type AnalyzedType = Pick<UI5ControlProperty, 'isArray' | 'primitiveType' | 'ui5Type' | 'enumValues'>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
sap.ui.define(["./utils", "sap/base/Log", "open/ux/preview/client/thirdparty/@sap-ux-private/control-property-editor-common", "../utils/info-center-message", "../utils/error"], function (
|
|
3
|
+
sap.ui.define(["./utils", "sap/base/Log", "open/ux/preview/client/thirdparty/@sap-ux-private/control-property-editor-common", "../utils/info-center-message", "../utils/error"], function (___utilsjs, Log, ___sap_ux_private_control_property_editor_common, ___utils_info_center_messagejs, ___utils_errorjs) {
|
|
4
4
|
"use strict";
|
|
5
5
|
|
|
6
|
-
const getLibrary =
|
|
6
|
+
const getLibrary = ___utilsjs["getLibrary"];
|
|
7
7
|
const MessageBarType = ___sap_ux_private_control_property_editor_common["MessageBarType"];
|
|
8
|
-
const sendInfoCenterMessage =
|
|
9
|
-
const FetchError =
|
|
8
|
+
const sendInfoCenterMessage = ___utils_info_center_messagejs["sendInfoCenterMessage"];
|
|
9
|
+
const FetchError = ___utils_errorjs["FetchError"];
|
|
10
10
|
/**
|
|
11
11
|
* Get ui5 metadata of given library name.
|
|
12
12
|
*
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { getLibrary } from './utils';
|
|
2
|
-
import type { SchemaForApiJsonFiles, Ui5Metadata, Ui5Property } from './api-json';
|
|
3
|
-
import type { Properties } from './utils';
|
|
1
|
+
import { getLibrary } from './utils.js';
|
|
2
|
+
import type { SchemaForApiJsonFiles, Ui5Metadata, Ui5Property } from './api-json.js';
|
|
3
|
+
import type { Properties } from './utils.js';
|
|
4
4
|
import Log from 'sap/base/Log';
|
|
5
5
|
import { MessageBarType, PropertiesInfo } from '@sap-ux-private/control-property-editor-common';
|
|
6
|
-
import { sendInfoCenterMessage } from '../utils/info-center-message';
|
|
7
|
-
import { FetchError } from '../utils/error';
|
|
6
|
+
import { sendInfoCenterMessage } from '../utils/info-center-message.js';
|
|
7
|
+
import { FetchError } from '../utils/error.js';
|
|
8
8
|
|
|
9
9
|
export interface ControlMetadata {
|
|
10
10
|
baseType: string | undefined;
|
package/dist/client/cpe/init.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
sap.ui.define(["sap/base/Log", "open/ux/preview/client/thirdparty/@sap-ux-private/control-property-editor-common", "../utils/error", "./changes/service", "./communication-service", "./connector-service", "./context-menu-service", "./documentation", "./outline/service", "./quick-actions/quick-action-service", "./rta-service", "./selection", "./ui5-utils", "./odata-health/odata-health-checker", "../utils/info-center-message", "./odata-health/odata-health-status"], function (Log, ___sap_ux_private_control_property_editor_common,
|
|
3
|
+
sap.ui.define(["sap/base/Log", "open/ux/preview/client/thirdparty/@sap-ux-private/control-property-editor-common", "../utils/error", "./changes/service", "./communication-service", "./connector-service", "./context-menu-service", "./documentation", "./outline/service", "./quick-actions/quick-action-service", "./rta-service", "./selection", "./ui5-utils", "./odata-health/odata-health-checker", "../utils/info-center-message", "./odata-health/odata-health-status"], function (Log, ___sap_ux_private_control_property_editor_common, ___utils_errorjs, ___changes_servicejs, ___communication_servicejs, ___connector_servicejs, ___context_menu_servicejs, ___documentationjs, ___outline_servicejs, ___quick_actions_quick_action_servicejs, ___rta_servicejs, ___selectionjs, ___ui5_utilsjs, ___odata_health_odata_health_checkerjs, ___utils_info_center_messagejs, ___odata_health_odata_health_statusjs) {
|
|
4
4
|
"use strict";
|
|
5
5
|
|
|
6
6
|
const appLoaded = ___sap_ux_private_control_property_editor_common["appLoaded"];
|
|
7
7
|
const enableTelemetry = ___sap_ux_private_control_property_editor_common["enableTelemetry"];
|
|
8
8
|
const iconsLoaded = ___sap_ux_private_control_property_editor_common["iconsLoaded"];
|
|
9
9
|
const MessageBarType = ___sap_ux_private_control_property_editor_common["MessageBarType"];
|
|
10
|
-
const getError =
|
|
11
|
-
const ChangeService =
|
|
12
|
-
const CommunicationService =
|
|
13
|
-
const WorkspaceConnectorService =
|
|
14
|
-
const ContextMenuService =
|
|
15
|
-
const loadDefaultLibraries =
|
|
16
|
-
const OutlineService =
|
|
17
|
-
const QuickActionService =
|
|
18
|
-
const RtaService =
|
|
19
|
-
const SelectionService =
|
|
20
|
-
const getIcons =
|
|
21
|
-
const ODataHealthChecker =
|
|
22
|
-
const sendInfoCenterMessage =
|
|
23
|
-
const ODataUpStatus =
|
|
10
|
+
const getError = ___utils_errorjs["getError"];
|
|
11
|
+
const ChangeService = ___changes_servicejs["ChangeService"];
|
|
12
|
+
const CommunicationService = ___communication_servicejs["CommunicationService"];
|
|
13
|
+
const WorkspaceConnectorService = ___connector_servicejs["WorkspaceConnectorService"];
|
|
14
|
+
const ContextMenuService = ___context_menu_servicejs["ContextMenuService"];
|
|
15
|
+
const loadDefaultLibraries = ___documentationjs["loadDefaultLibraries"];
|
|
16
|
+
const OutlineService = ___outline_servicejs["OutlineService"];
|
|
17
|
+
const QuickActionService = ___quick_actions_quick_action_servicejs["QuickActionService"];
|
|
18
|
+
const RtaService = ___rta_servicejs["RtaService"];
|
|
19
|
+
const SelectionService = ___selectionjs["SelectionService"];
|
|
20
|
+
const getIcons = ___ui5_utilsjs["getIcons"];
|
|
21
|
+
const ODataHealthChecker = ___odata_health_odata_health_checkerjs["ODataHealthChecker"];
|
|
22
|
+
const sendInfoCenterMessage = ___utils_info_center_messagejs["sendInfoCenterMessage"];
|
|
23
|
+
const ODataUpStatus = ___odata_health_odata_health_statusjs["ODataUpStatus"];
|
|
24
24
|
/**
|
|
25
25
|
* Subscribes a handler to the CommunicationService
|
|
26
26
|
*
|
package/dist/client/cpe/init.ts
CHANGED
|
@@ -8,22 +8,22 @@ import {
|
|
|
8
8
|
MessageBarType
|
|
9
9
|
} from '@sap-ux-private/control-property-editor-common';
|
|
10
10
|
|
|
11
|
-
import { getError } from '../utils/error';
|
|
12
|
-
import { ChangeService } from './changes/service';
|
|
13
|
-
import { CommunicationService } from './communication-service';
|
|
14
|
-
import { WorkspaceConnectorService } from './connector-service';
|
|
15
|
-
import { ContextMenuService } from './context-menu-service';
|
|
16
|
-
import { loadDefaultLibraries } from './documentation';
|
|
17
|
-
import { OutlineService } from './outline/service';
|
|
18
|
-
import { QuickActionService } from './quick-actions/quick-action-service';
|
|
19
|
-
import type { QuickActionDefinitionRegistry } from './quick-actions/registry';
|
|
20
|
-
import { RtaService } from './rta-service';
|
|
21
|
-
import { SelectionService } from './selection';
|
|
22
|
-
import type { ActionHandler, Service } from './types';
|
|
23
|
-
import { getIcons } from './ui5-utils';
|
|
24
|
-
import { ODataHealthChecker } from './odata-health/odata-health-checker';
|
|
25
|
-
import { sendInfoCenterMessage } from '../utils/info-center-message';
|
|
26
|
-
import { ODataUpStatus } from './odata-health/odata-health-status';
|
|
11
|
+
import { getError } from '../utils/error.js';
|
|
12
|
+
import { ChangeService } from './changes/service.js';
|
|
13
|
+
import { CommunicationService } from './communication-service.js';
|
|
14
|
+
import { WorkspaceConnectorService } from './connector-service.js';
|
|
15
|
+
import { ContextMenuService } from './context-menu-service.js';
|
|
16
|
+
import { loadDefaultLibraries } from './documentation.js';
|
|
17
|
+
import { OutlineService } from './outline/service.js';
|
|
18
|
+
import { QuickActionService } from './quick-actions/quick-action-service.js';
|
|
19
|
+
import type { QuickActionDefinitionRegistry } from './quick-actions/registry.js';
|
|
20
|
+
import { RtaService } from './rta-service.js';
|
|
21
|
+
import { SelectionService } from './selection.js';
|
|
22
|
+
import type { ActionHandler, Service } from './types.js';
|
|
23
|
+
import { getIcons } from './ui5-utils.js';
|
|
24
|
+
import { ODataHealthChecker } from './odata-health/odata-health-checker.js';
|
|
25
|
+
import { sendInfoCenterMessage } from '../utils/info-center-message.js';
|
|
26
|
+
import { ODataUpStatus } from './odata-health/odata-health-status.js';
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* Subscribes a handler to the CommunicationService
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
sap.ui.define(["sap/base/Log", "sap/ui/model/odata/v2/ODataModel", "sap/ui/model/odata/v4/ODataModel", "./odata-health-status"], function (Log, ODataModelV2, ODataModelV4,
|
|
3
|
+
sap.ui.define(["sap/base/Log", "sap/ui/model/odata/v2/ODataModel", "sap/ui/model/odata/v4/ODataModel", "./odata-health-status"], function (Log, ODataModelV2, ODataModelV4, ___odata_health_statusjs) {
|
|
4
4
|
"use strict";
|
|
5
5
|
|
|
6
|
-
const ODataDownStatus =
|
|
7
|
-
const ODataUpStatus =
|
|
6
|
+
const ODataDownStatus = ___odata_health_statusjs["ODataDownStatus"];
|
|
7
|
+
const ODataUpStatus = ___odata_health_statusjs["ODataUpStatus"];
|
|
8
8
|
/**
|
|
9
9
|
* The OData version type.
|
|
10
10
|
*/
|
|
@@ -41,7 +41,7 @@ sap.ui.define(["sap/base/Log", "sap/ui/model/odata/v2/ODataModel", "sap/ui/model
|
|
|
41
41
|
* @returns The OData service info object.
|
|
42
42
|
*/
|
|
43
43
|
toOdataServiceInfo = src => ({
|
|
44
|
-
serviceUrl: src.uri,
|
|
44
|
+
serviceUrl: src.uri ?? '',
|
|
45
45
|
oDataVersion: src.settings?.odataVersion ?? ODataHealthChecker.DEFAULT_ODATA_VERSION
|
|
46
46
|
});
|
|
47
47
|
constructor(rta) {
|
|
@@ -120,7 +120,7 @@ sap.ui.define(["sap/base/Log", "sap/ui/model/odata/v2/ODataModel", "sap/ui/model
|
|
|
120
120
|
if (isCloudFoundry) {
|
|
121
121
|
const manifestObject = rootControl.getManifestObject();
|
|
122
122
|
return odataServices.map(src => ({
|
|
123
|
-
serviceUrl: manifestObject.resolveUri(src.uri),
|
|
123
|
+
serviceUrl: manifestObject.resolveUri(src.uri ?? ''),
|
|
124
124
|
oDataVersion: src.settings?.odataVersion ?? ODataHealthChecker.DEFAULT_ODATA_VERSION
|
|
125
125
|
}));
|
|
126
126
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type { SAPJSONSchemaForWebApplicationManifestFile, DataSource } from '@ui5/manifest';
|
|
2
2
|
import Log from 'sap/base/Log';
|
|
3
3
|
import ODataModelV2 from 'sap/ui/model/odata/v2/ODataModel';
|
|
4
4
|
import ODataModelV4 from 'sap/ui/model/odata/v4/ODataModel';
|
|
5
5
|
import RuntimeAuthoring from 'sap/ui/rta/RuntimeAuthoring';
|
|
6
|
-
import { ODataDownStatus, ODataHealthStatus, ODataMetadata, ODataUpStatus } from './odata-health-status';
|
|
6
|
+
import { ODataDownStatus, ODataHealthStatus, ODataMetadata, ODataUpStatus } from './odata-health-status.js';
|
|
7
7
|
|
|
8
|
-
type Manifest =
|
|
9
|
-
type
|
|
8
|
+
type Manifest = SAPJSONSchemaForWebApplicationManifestFile;
|
|
9
|
+
type DataSourceType = DataSource;
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* The OData version type.
|
|
@@ -48,7 +48,7 @@ export class ODataHealthChecker {
|
|
|
48
48
|
* @param src The service data source.
|
|
49
49
|
* @returns True if the data source represents an OData service.
|
|
50
50
|
*/
|
|
51
|
-
private readonly isOdataService = (src:
|
|
51
|
+
private readonly isOdataService = (src: DataSourceType): boolean => src.type === ODataHealthChecker.ODATA_TYPE;
|
|
52
52
|
|
|
53
53
|
/**
|
|
54
54
|
* Use this helper function to map the OData data source to the internal structure
|
|
@@ -56,9 +56,9 @@ export class ODataHealthChecker {
|
|
|
56
56
|
* @param src The OData service data source.
|
|
57
57
|
* @returns The OData service info object.
|
|
58
58
|
*/
|
|
59
|
-
private readonly toOdataServiceInfo = (src:
|
|
60
|
-
serviceUrl: src.uri,
|
|
61
|
-
oDataVersion: src.settings?.odataVersion ?? ODataHealthChecker.DEFAULT_ODATA_VERSION
|
|
59
|
+
private readonly toOdataServiceInfo = (src: DataSourceType): ODataServiceInfo => ({
|
|
60
|
+
serviceUrl: src.uri ?? '',
|
|
61
|
+
oDataVersion: (src.settings?.odataVersion as ODataVersion) ?? ODataHealthChecker.DEFAULT_ODATA_VERSION
|
|
62
62
|
});
|
|
63
63
|
|
|
64
64
|
constructor(private readonly rta: RuntimeAuthoring) {}
|
|
@@ -150,8 +150,8 @@ export class ODataHealthChecker {
|
|
|
150
150
|
if (isCloudFoundry) {
|
|
151
151
|
const manifestObject = rootControl.getManifestObject();
|
|
152
152
|
return odataServices.map((src) => ({
|
|
153
|
-
serviceUrl: manifestObject.resolveUri(src.uri),
|
|
154
|
-
oDataVersion: (src.settings?.odataVersion ?? ODataHealthChecker.DEFAULT_ODATA_VERSION)
|
|
153
|
+
serviceUrl: manifestObject.resolveUri(src.uri ?? ''),
|
|
154
|
+
oDataVersion: ((src.settings?.odataVersion as ODataVersion) ?? ODataHealthChecker.DEFAULT_ODATA_VERSION)
|
|
155
155
|
}));
|
|
156
156
|
}
|
|
157
157
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
sap.ui.define(["../control-data", "../utils", "sap/ui/dt/OverlayUtil", "sap/ui/dt/OverlayRegistry", "../../utils/core"], function (
|
|
3
|
+
sap.ui.define(["../control-data", "../utils", "sap/ui/dt/OverlayUtil", "sap/ui/dt/OverlayRegistry", "../../utils/core"], function (___control_datajs, ___utilsjs, OverlayUtil, OverlayRegistry, ____utils_corejs) {
|
|
4
4
|
"use strict";
|
|
5
5
|
|
|
6
|
-
const buildControlData =
|
|
7
|
-
const getRuntimeControl =
|
|
8
|
-
const getComponent =
|
|
6
|
+
const buildControlData = ___control_datajs["buildControlData"];
|
|
7
|
+
const getRuntimeControl = ___utilsjs["getRuntimeControl"];
|
|
8
|
+
const getComponent = ____utils_corejs["getComponent"];
|
|
9
9
|
const isEditable = (changeService, id = '') => {
|
|
10
10
|
let editable = false;
|
|
11
11
|
const control = sap.ui.getCore().byId(id);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { buildControlData } from '../control-data';
|
|
2
|
-
import { getRuntimeControl } from '../utils';
|
|
1
|
+
import { buildControlData } from '../control-data.js';
|
|
2
|
+
import { getRuntimeControl } from '../utils.js';
|
|
3
3
|
import OverlayUtil from 'sap/ui/dt/OverlayUtil';
|
|
4
4
|
import OverlayRegistry from 'sap/ui/dt/OverlayRegistry';
|
|
5
|
-
import { getComponent } from '../../utils/core';
|
|
6
|
-
import type { ChangeService } from '../changes';
|
|
5
|
+
import { getComponent } from '../../utils/core.js';
|
|
6
|
+
import type { ChangeService } from '../changes/index.js';
|
|
7
7
|
|
|
8
8
|
export const isEditable = (changeService: ChangeService, id = ''): boolean => {
|
|
9
9
|
let editable = false;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
sap.ui.define(["sap/base/Log", "../../utils/core", "../../utils/error", "../utils", "./editable", "../../utils/fe-v4"], function (Log,
|
|
3
|
+
sap.ui.define(["sap/base/Log", "../../utils/core", "../../utils/error", "../utils", "./editable", "../../utils/fe-v4"], function (Log, ____utils_corejs, ____utils_errorjs, ___utilsjs, ___editablejs, ____utils_fe_v4js) {
|
|
4
4
|
"use strict";
|
|
5
5
|
|
|
6
|
-
const getControlById =
|
|
7
|
-
const getError =
|
|
8
|
-
const getOverlay =
|
|
9
|
-
const isEditable =
|
|
10
|
-
const getConfigMapControlIdMap =
|
|
11
|
-
const getPageName =
|
|
6
|
+
const getControlById = ____utils_corejs["getControlById"];
|
|
7
|
+
const getError = ____utils_errorjs["getError"];
|
|
8
|
+
const getOverlay = ___utilsjs["getOverlay"];
|
|
9
|
+
const isEditable = ___editablejs["isEditable"];
|
|
10
|
+
const getConfigMapControlIdMap = ____utils_fe_v4js["getConfigMapControlIdMap"];
|
|
11
|
+
const getPageName = ____utils_fe_v4js["getPageName"];
|
|
12
12
|
/**
|
|
13
13
|
* Retrieves additional data for a given control ID.
|
|
14
14
|
*
|
|
@@ -3,15 +3,15 @@ import type { OutlineViewNode } from 'sap/ui/rta/command/OutlineService';
|
|
|
3
3
|
import type { Scenario } from 'sap/ui/fl/Scenario';
|
|
4
4
|
import Log from 'sap/base/Log';
|
|
5
5
|
|
|
6
|
-
import { getControlById } from '../../utils/core';
|
|
7
|
-
import { getError } from '../../utils/error';
|
|
6
|
+
import { getControlById } from '../../utils/core.js';
|
|
7
|
+
import { getError } from '../../utils/error.js';
|
|
8
8
|
|
|
9
|
-
import type { ControlTreeIndex } from '../types';
|
|
10
|
-
import { getOverlay } from '../utils';
|
|
9
|
+
import type { ControlTreeIndex } from '../types.js';
|
|
10
|
+
import { getOverlay } from '../utils.js';
|
|
11
11
|
|
|
12
|
-
import { isEditable } from './editable';
|
|
13
|
-
import type { ChangeService } from '../changes';
|
|
14
|
-
import { getConfigMapControlIdMap, getPageName } from '../../utils/fe-v4';
|
|
12
|
+
import { isEditable } from './editable.js';
|
|
13
|
+
import type { ChangeService } from '../changes/index.js';
|
|
14
|
+
import { getConfigMapControlIdMap, getPageName } from '../../utils/fe-v4.js';
|
|
15
15
|
|
|
16
16
|
interface AdditionalData {
|
|
17
17
|
text?: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
sap.ui.define(["sap/base/Log", "open/ux/preview/client/thirdparty/@sap-ux-private/control-property-editor-common", "../../utils/error", "./nodes"], function (Log, ___sap_ux_private_control_property_editor_common,
|
|
3
|
+
sap.ui.define(["sap/base/Log", "open/ux/preview/client/thirdparty/@sap-ux-private/control-property-editor-common", "../../utils/error", "./nodes"], function (Log, ___sap_ux_private_control_property_editor_common, ____utils_errorjs, ___nodesjs) {
|
|
4
4
|
"use strict";
|
|
5
5
|
|
|
6
6
|
const outlineChanged = ___sap_ux_private_control_property_editor_common["outlineChanged"];
|
|
7
|
-
const getError =
|
|
8
|
-
const transformNodes =
|
|
7
|
+
const getError = ____utils_errorjs["getError"];
|
|
8
|
+
const transformNodes = ___nodesjs["transformNodes"];
|
|
9
9
|
const OUTLINE_CHANGE_EVENT = 'OUTLINE_CHANGED';
|
|
10
10
|
/**
|
|
11
11
|
* A Class of WorkspaceConnectorService
|