@sap-ux/preview-middleware 0.19.42 → 0.20.0
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/add-fragment.js +46 -46
- package/dist/client/adp/api-handler.js +159 -159
- package/dist/client/adp/command-executor.js +75 -75
- package/dist/client/adp/control-utils.js +44 -44
- package/dist/client/adp/controllers/ControllerExtension.controller.js +210 -210
- package/dist/client/adp/controllers/ExtensionPoint.controller.js +139 -139
- package/dist/client/adp/controllers/FileExistsDialog.controller.js +66 -66
- package/dist/client/adp/dialog-factory.js +135 -135
- package/dist/client/adp/init-dialogs.js +163 -163
- package/dist/client/adp/quick-actions/add-new-subpage-quick-action-base.js +96 -96
- package/dist/client/adp/quick-actions/common/add-controller-to-page.js +60 -60
- package/dist/client/adp/quick-actions/common/create-page-action.js +54 -54
- package/dist/client/adp/quick-actions/common/op-add-custom-section.js +39 -39
- package/dist/client/adp/quick-actions/common/op-add-header-field.js +67 -67
- package/dist/client/adp/quick-actions/common/utils.js +18 -18
- package/dist/client/adp/quick-actions/control-types.js +23 -23
- package/dist/client/adp/quick-actions/dialog-enablement-validator.js +24 -24
- package/dist/client/adp/quick-actions/enablement-validator.js +4 -4
- package/dist/client/adp/quick-actions/fe-v2/add-new-subpage.js +81 -81
- package/dist/client/adp/quick-actions/fe-v2/change-table-actions.js +67 -67
- package/dist/client/adp/quick-actions/fe-v2/change-table-columns.js +101 -101
- package/dist/client/adp/quick-actions/fe-v2/create-table-action.js +107 -107
- package/dist/client/adp/quick-actions/fe-v2/create-table-custom-column.js +99 -99
- package/dist/client/adp/quick-actions/fe-v2/lr-enable-semantic-date-range-filter-bar.js +78 -78
- package/dist/client/adp/quick-actions/fe-v2/lr-enable-table-filtering.js +77 -77
- package/dist/client/adp/quick-actions/fe-v2/lr-enable-variant-management.js +69 -69
- package/dist/client/adp/quick-actions/fe-v2/lr-toggle-clear-filter-bar.js +59 -59
- package/dist/client/adp/quick-actions/fe-v2/op-enable-empty-row-mode.js +93 -93
- package/dist/client/adp/quick-actions/fe-v2/op-enable-variant-management.js +84 -84
- package/dist/client/adp/quick-actions/fe-v2/registry.js +77 -77
- package/dist/client/adp/quick-actions/fe-v2/utils.js +116 -116
- package/dist/client/adp/quick-actions/fe-v4/add-new-subpage.js +138 -138
- package/dist/client/adp/quick-actions/fe-v4/change-table-actions.js +79 -79
- package/dist/client/adp/quick-actions/fe-v4/change-table-columns.js +75 -75
- package/dist/client/adp/quick-actions/fe-v4/create-table-action.js +53 -53
- package/dist/client/adp/quick-actions/fe-v4/create-table-custom-column.js +49 -49
- package/dist/client/adp/quick-actions/fe-v4/enable-variant-management.js +81 -81
- package/dist/client/adp/quick-actions/fe-v4/lr-enable-semantic-date-range-filter-bar.js +56 -56
- package/dist/client/adp/quick-actions/fe-v4/lr-enable-table-filtering.js +84 -84
- package/dist/client/adp/quick-actions/fe-v4/lr-toggle-clear-filter-bar.js +53 -53
- package/dist/client/adp/quick-actions/fe-v4/op-enable-empty-row-mode.js +89 -89
- package/dist/client/adp/quick-actions/fe-v4/registry.js +60 -60
- package/dist/client/adp/quick-actions/fe-v4/utils.js +72 -72
- package/dist/client/adp/quick-actions/load.js +44 -44
- package/dist/client/adp/quick-actions/quick-action-base.js +64 -64
- package/dist/client/adp/utils.js +218 -218
- package/dist/client/cpe/additional-change-info/add-xml-additional-info.js +75 -75
- package/dist/client/cpe/changes/generic-change.js +326 -326
- package/dist/client/cpe/changes/index.js +10 -10
- package/dist/client/cpe/changes/validator.js +39 -39
- package/dist/client/cpe/documentation.js +164 -164
- package/dist/client/cpe/feature-service.js +36 -36
- package/dist/client/cpe/logger.js +30 -30
- package/dist/client/cpe/outline/editable.js +37 -37
- package/dist/client/cpe/outline/nodes.js +203 -203
- package/dist/client/cpe/quick-actions/quick-action-definition.js +4 -4
- package/dist/client/cpe/quick-actions/registry.js +143 -143
- package/dist/client/cpe/quick-actions/utils.js +92 -92
- package/dist/client/cpe/types.js +4 -4
- package/dist/client/cpe/ui5-utils.js +33 -33
- package/dist/client/cpe/utils.js +111 -111
- package/dist/client/flp/WorkspaceConnector.js +92 -92
- package/dist/client/flp/common.js +28 -28
- package/dist/client/flp/enableFakeConnector.js +89 -89
- package/dist/client/flp/homepage/Component.js +14 -14
- package/dist/client/flp/initCdm.js +117 -117
- package/dist/client/flp/initConnectors.js +28 -28
- package/dist/client/flp/initRta.js +178 -178
- package/dist/client/i18n.js +56 -56
- package/dist/client/utils/additional-change-info.js +54 -54
- package/dist/client/utils/application.js +32 -32
- package/dist/client/utils/core.js +84 -84
- package/dist/client/utils/error.js +19 -19
- package/dist/client/utils/fe-v2.js +56 -56
- package/dist/client/utils/fe-v4.js +140 -140
- package/dist/client/utils/version.js +104 -104
- package/package.json +14 -14
- package/dist/client/tsconfig.tsbuildinfo +0 -1
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
sap.ui.define(["../../utils/core", "../../adp/quick-actions/control-types"], function (____utils_core, ____adp_quick_actions_control_types) {
|
|
4
|
-
"use strict";
|
|
5
|
-
|
|
6
|
-
const getControlById = ____utils_core["getControlById"];
|
|
7
|
-
const ANALYTICAL_TABLE_TYPE = ____adp_quick_actions_control_types["ANALYTICAL_TABLE_TYPE"];
|
|
8
|
-
const GRID_TABLE_TYPE = ____adp_quick_actions_control_types["GRID_TABLE_TYPE"];
|
|
9
|
-
const MDC_TABLE_TYPE = ____adp_quick_actions_control_types["MDC_TABLE_TYPE"];
|
|
10
|
-
const TREE_TABLE_TYPE = ____adp_quick_actions_control_types["TREE_TABLE_TYPE"];
|
|
11
|
-
function getAddXMLAdditionalInfo(change) {
|
|
12
|
-
const selectorId = change.getSelector()?.id ?? '';
|
|
13
|
-
const targetAggregation = change.getContent()?.targetAggregation ?? '';
|
|
14
|
-
const templateName = getFragmentTemplateName(selectorId, targetAggregation);
|
|
15
|
-
if (templateName) {
|
|
16
|
-
return {
|
|
17
|
-
templateName
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
return undefined;
|
|
21
|
-
}
|
|
22
|
-
function getFragmentTemplateName(selectorId, targetAggregation) {
|
|
23
|
-
const control = getControlById(selectorId);
|
|
24
|
-
if (!control) {
|
|
25
|
-
return '';
|
|
26
|
-
}
|
|
27
|
-
const controlName = control.getMetadata().getName();
|
|
28
|
-
if (controlName === 'sap.uxap.ObjectPageLayout' && targetAggregation === 'sections') {
|
|
29
|
-
return 'OBJECT_PAGE_CUSTOM_SECTION';
|
|
30
|
-
} else if (isCustomAction(controlName, targetAggregation)) {
|
|
31
|
-
return 'CUSTOM_ACTION';
|
|
32
|
-
} else if (isObjectPageHeaderField(control, controlName, targetAggregation)) {
|
|
33
|
-
return 'OBJECT_PAGE_HEADER_FIELD';
|
|
34
|
-
} else if (targetAggregation === 'columns') {
|
|
35
|
-
switch (controlName) {
|
|
36
|
-
case MDC_TABLE_TYPE:
|
|
37
|
-
return 'V4_MDC_TABLE_COLUMN';
|
|
38
|
-
case TREE_TABLE_TYPE:
|
|
39
|
-
case GRID_TABLE_TYPE:
|
|
40
|
-
return 'GRID_TREE_TABLE_COLUMN';
|
|
41
|
-
case ANALYTICAL_TABLE_TYPE:
|
|
42
|
-
return 'ANALYTICAL_TABLE_COLUMN';
|
|
43
|
-
default:
|
|
44
|
-
return '';
|
|
45
|
-
}
|
|
46
|
-
} else if (controlName === 'sap.ui.mdc.Table' && targetAggregation === 'actions') {
|
|
47
|
-
return 'TABLE_ACTION';
|
|
48
|
-
}
|
|
49
|
-
return '';
|
|
50
|
-
}
|
|
51
|
-
function isCustomAction(controlName, targetAggregation) {
|
|
52
|
-
if (['sap.f.DynamicPageTitle', 'sap.uxap.ObjectPageHeader', 'sap.uxap.ObjectPageDynamicHeaderTitle'].includes(controlName)) {
|
|
53
|
-
return targetAggregation === 'actions';
|
|
54
|
-
} else if (controlName === 'sap.m.OverflowToolbar' || controlName === 'sap.m.Toolbar') {
|
|
55
|
-
return targetAggregation === 'content';
|
|
56
|
-
}
|
|
57
|
-
return false;
|
|
58
|
-
}
|
|
59
|
-
function isObjectPageHeaderField(control, controlName, targetAggregation) {
|
|
60
|
-
if (controlName === 'sap.uxap.ObjectPageLayout') {
|
|
61
|
-
return targetAggregation === 'headerContent';
|
|
62
|
-
} else if (controlName === 'sap.m.FlexBox') {
|
|
63
|
-
const parentName = control.getParent()?.getMetadata().getName();
|
|
64
|
-
if (parentName === 'sap.uxap.ObjectPageDynamicHeaderContent' || parentName === 'sap.uxap.ObjectPageLayout') {
|
|
65
|
-
return targetAggregation === 'items';
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
return false;
|
|
69
|
-
}
|
|
70
|
-
var __exports = {
|
|
71
|
-
__esModule: true
|
|
72
|
-
};
|
|
73
|
-
__exports.getAddXMLAdditionalInfo = getAddXMLAdditionalInfo;
|
|
74
|
-
__exports.getFragmentTemplateName = getFragmentTemplateName;
|
|
75
|
-
return __exports;
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
sap.ui.define(["../../utils/core", "../../adp/quick-actions/control-types"], function (____utils_core, ____adp_quick_actions_control_types) {
|
|
4
|
+
"use strict";
|
|
5
|
+
|
|
6
|
+
const getControlById = ____utils_core["getControlById"];
|
|
7
|
+
const ANALYTICAL_TABLE_TYPE = ____adp_quick_actions_control_types["ANALYTICAL_TABLE_TYPE"];
|
|
8
|
+
const GRID_TABLE_TYPE = ____adp_quick_actions_control_types["GRID_TABLE_TYPE"];
|
|
9
|
+
const MDC_TABLE_TYPE = ____adp_quick_actions_control_types["MDC_TABLE_TYPE"];
|
|
10
|
+
const TREE_TABLE_TYPE = ____adp_quick_actions_control_types["TREE_TABLE_TYPE"];
|
|
11
|
+
function getAddXMLAdditionalInfo(change) {
|
|
12
|
+
const selectorId = change.getSelector()?.id ?? '';
|
|
13
|
+
const targetAggregation = change.getContent()?.targetAggregation ?? '';
|
|
14
|
+
const templateName = getFragmentTemplateName(selectorId, targetAggregation);
|
|
15
|
+
if (templateName) {
|
|
16
|
+
return {
|
|
17
|
+
templateName
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
return undefined;
|
|
21
|
+
}
|
|
22
|
+
function getFragmentTemplateName(selectorId, targetAggregation) {
|
|
23
|
+
const control = getControlById(selectorId);
|
|
24
|
+
if (!control) {
|
|
25
|
+
return '';
|
|
26
|
+
}
|
|
27
|
+
const controlName = control.getMetadata().getName();
|
|
28
|
+
if (controlName === 'sap.uxap.ObjectPageLayout' && targetAggregation === 'sections') {
|
|
29
|
+
return 'OBJECT_PAGE_CUSTOM_SECTION';
|
|
30
|
+
} else if (isCustomAction(controlName, targetAggregation)) {
|
|
31
|
+
return 'CUSTOM_ACTION';
|
|
32
|
+
} else if (isObjectPageHeaderField(control, controlName, targetAggregation)) {
|
|
33
|
+
return 'OBJECT_PAGE_HEADER_FIELD';
|
|
34
|
+
} else if (targetAggregation === 'columns') {
|
|
35
|
+
switch (controlName) {
|
|
36
|
+
case MDC_TABLE_TYPE:
|
|
37
|
+
return 'V4_MDC_TABLE_COLUMN';
|
|
38
|
+
case TREE_TABLE_TYPE:
|
|
39
|
+
case GRID_TABLE_TYPE:
|
|
40
|
+
return 'GRID_TREE_TABLE_COLUMN';
|
|
41
|
+
case ANALYTICAL_TABLE_TYPE:
|
|
42
|
+
return 'ANALYTICAL_TABLE_COLUMN';
|
|
43
|
+
default:
|
|
44
|
+
return '';
|
|
45
|
+
}
|
|
46
|
+
} else if (controlName === 'sap.ui.mdc.Table' && targetAggregation === 'actions') {
|
|
47
|
+
return 'TABLE_ACTION';
|
|
48
|
+
}
|
|
49
|
+
return '';
|
|
50
|
+
}
|
|
51
|
+
function isCustomAction(controlName, targetAggregation) {
|
|
52
|
+
if (['sap.f.DynamicPageTitle', 'sap.uxap.ObjectPageHeader', 'sap.uxap.ObjectPageDynamicHeaderTitle'].includes(controlName)) {
|
|
53
|
+
return targetAggregation === 'actions';
|
|
54
|
+
} else if (controlName === 'sap.m.OverflowToolbar' || controlName === 'sap.m.Toolbar') {
|
|
55
|
+
return targetAggregation === 'content';
|
|
56
|
+
}
|
|
57
|
+
return false;
|
|
58
|
+
}
|
|
59
|
+
function isObjectPageHeaderField(control, controlName, targetAggregation) {
|
|
60
|
+
if (controlName === 'sap.uxap.ObjectPageLayout') {
|
|
61
|
+
return targetAggregation === 'headerContent';
|
|
62
|
+
} else if (controlName === 'sap.m.FlexBox') {
|
|
63
|
+
const parentName = control.getParent()?.getMetadata().getName();
|
|
64
|
+
if (parentName === 'sap.uxap.ObjectPageDynamicHeaderContent' || parentName === 'sap.uxap.ObjectPageLayout') {
|
|
65
|
+
return targetAggregation === 'items';
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
return false;
|
|
69
|
+
}
|
|
70
|
+
var __exports = {
|
|
71
|
+
__esModule: true
|
|
72
|
+
};
|
|
73
|
+
__exports.getAddXMLAdditionalInfo = getAddXMLAdditionalInfo;
|
|
74
|
+
__exports.getFragmentTemplateName = getFragmentTemplateName;
|
|
75
|
+
return __exports;
|
|
76
76
|
});
|
|
77
77
|
//# sourceMappingURL=add-xml-additional-info.js.map
|