@sap-ux/preview-middleware 0.20.47 → 0.20.49
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/config.d.ts +7 -0
- package/dist/base/config.js +10 -0
- package/dist/base/flp.js +4 -3
- package/dist/client/adp/command-executor.ts +1 -1
- package/dist/client/adp/controllers/AddCustomFragment.controller.js +92 -0
- package/dist/client/adp/controllers/AddCustomFragment.controller.ts +152 -0
- package/dist/client/adp/controllers/AddFragment.controller.js +5 -5
- package/dist/client/adp/controllers/AddFragment.controller.ts +5 -5
- package/dist/client/adp/controllers/AddSubpage.controller.js +1 -1
- package/dist/client/adp/controllers/AddSubpage.controller.ts +1 -1
- package/dist/client/adp/controllers/AddTableColumnFragments.controller.js +4 -4
- package/dist/client/adp/controllers/AddTableColumnFragments.controller.ts +5 -5
- package/dist/client/adp/controllers/BaseDialog.controller.js +22 -10
- package/dist/client/adp/controllers/BaseDialog.controller.ts +35 -13
- package/dist/client/adp/dialog-factory.js +9 -1
- package/dist/client/adp/dialog-factory.ts +23 -5
- package/dist/client/adp/quick-actions/fe-v4/op-add-custom-section.js +72 -0
- package/dist/client/adp/quick-actions/fe-v4/op-add-custom-section.ts +90 -0
- package/dist/client/adp/quick-actions/fe-v4/registry.js +2 -2
- package/dist/client/adp/quick-actions/fe-v4/registry.ts +1 -1
- package/dist/client/adp/ui/AddCustomFragment.fragment.xml +42 -0
- package/dist/client/flp/initConnectors.js +1 -1
- package/dist/client/flp/initConnectors.ts +1 -1
- package/dist/client/tsconfig.tsbuildinfo +1 -0
- package/package.json +5 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
sap.ui.define(["sap/ui/core/Fragment", "../i18n", "./controllers/AddFragment.controller", "./controllers/AddTableColumnFragments.controller", "./controllers/ControllerExtension.controller", "./controllers/ExtensionPoint.controller", "./controllers/FileExistsDialog.controller", "./controllers/AddSubpage.controller"], function (Fragment, ___i18n, __AddFragment, __AddTableColumnFragments, __ControllerExtension, __ExtensionPoint, __FileExistsDialog, __AddSubpage) {
|
|
3
|
+
sap.ui.define(["sap/ui/core/Fragment", "../i18n", "./controllers/AddFragment.controller", "./controllers/AddTableColumnFragments.controller", "./controllers/ControllerExtension.controller", "./controllers/ExtensionPoint.controller", "./controllers/FileExistsDialog.controller", "./controllers/AddSubpage.controller", "./controllers/AddCustomFragment.controller"], function (Fragment, ___i18n, __AddFragment, __AddTableColumnFragments, __ControllerExtension, __ExtensionPoint, __FileExistsDialog, __AddSubpage, __AddCustomFragment) {
|
|
4
4
|
"use strict";
|
|
5
5
|
|
|
6
6
|
function _interopRequireDefault(obj) {
|
|
@@ -13,11 +13,13 @@ sap.ui.define(["sap/ui/core/Fragment", "../i18n", "./controllers/AddFragment.con
|
|
|
13
13
|
const ExtensionPoint = _interopRequireDefault(__ExtensionPoint);
|
|
14
14
|
const FileExistsDialog = _interopRequireDefault(__FileExistsDialog);
|
|
15
15
|
const AddSubpage = _interopRequireDefault(__AddSubpage);
|
|
16
|
+
const AddCustomFragment = _interopRequireDefault(__AddCustomFragment);
|
|
16
17
|
var DialogNames = /*#__PURE__*/function (DialogNames) {
|
|
17
18
|
DialogNames["ADD_FRAGMENT"] = "AddFragment";
|
|
18
19
|
DialogNames["ADD_TABLE_COLUMN_FRAGMENTS"] = "AddTableColumnFragments";
|
|
19
20
|
DialogNames["CONTROLLER_EXTENSION"] = "ControllerExtension";
|
|
20
21
|
DialogNames["ADD_FRAGMENT_AT_EXTENSION_POINT"] = "ExtensionPoint";
|
|
22
|
+
DialogNames["ADD_CUSTOM_FRAGMENT"] = "AddCustomFragment";
|
|
21
23
|
DialogNames["FILE_EXISTS"] = "FileExistsDialog";
|
|
22
24
|
DialogNames["ADD_SUBPAGE"] = "AddSubpage";
|
|
23
25
|
return DialogNames;
|
|
@@ -64,6 +66,12 @@ sap.ui.define(["sap/ui/core/Fragment", "../i18n", "./controllers/AddFragment.con
|
|
|
64
66
|
title: resources.getText(options.title ?? 'ADP_ADD_FRAGMENT_DIALOG_TITLE')
|
|
65
67
|
}, data, telemetryData);
|
|
66
68
|
break;
|
|
69
|
+
case DialogNames.ADD_CUSTOM_FRAGMENT:
|
|
70
|
+
controller = new AddCustomFragment(`open.ux.preview.client.adp.controllers.${dialogName}`, overlay, rta, {
|
|
71
|
+
...options,
|
|
72
|
+
title: resources.getText(options.title ?? 'ADP_ADD_FRAGMENT_DIALOG_TITLE')
|
|
73
|
+
});
|
|
74
|
+
break;
|
|
67
75
|
case DialogNames.ADD_TABLE_COLUMN_FRAGMENTS:
|
|
68
76
|
controller = new AddTableColumnFragments(`open.ux.preview.client.adp.controllers.${dialogName}`, overlay, rta, {
|
|
69
77
|
...('aggregation' in options && {
|
|
@@ -16,12 +16,14 @@ import { ExtendControllerData } from './extend-controller';
|
|
|
16
16
|
import FileExistsDialog, { FileExistsDialogOptions } from './controllers/FileExistsDialog.controller';
|
|
17
17
|
import AddSubpage, { AddSubpageOptions } from './controllers/AddSubpage.controller';
|
|
18
18
|
import { QuickActionTelemetryData } from '../cpe/quick-actions/quick-action-definition';
|
|
19
|
+
import AddCustomFragment, { AddCustomFragmentOptions } from './controllers/AddCustomFragment.controller';
|
|
19
20
|
|
|
20
21
|
export const enum DialogNames {
|
|
21
22
|
ADD_FRAGMENT = 'AddFragment',
|
|
22
23
|
ADD_TABLE_COLUMN_FRAGMENTS = 'AddTableColumnFragments',
|
|
23
24
|
CONTROLLER_EXTENSION = 'ControllerExtension',
|
|
24
25
|
ADD_FRAGMENT_AT_EXTENSION_POINT = 'ExtensionPoint',
|
|
26
|
+
ADD_CUSTOM_FRAGMENT = 'AddCustomFragment',
|
|
25
27
|
FILE_EXISTS = 'FileExistsDialog',
|
|
26
28
|
ADD_SUBPAGE = 'AddSubpage'
|
|
27
29
|
}
|
|
@@ -32,7 +34,8 @@ type Controller =
|
|
|
32
34
|
| ControllerExtension
|
|
33
35
|
| ExtensionPoint
|
|
34
36
|
| FileExistsDialog
|
|
35
|
-
| AddSubpage
|
|
37
|
+
| AddSubpage
|
|
38
|
+
| AddCustomFragment;
|
|
36
39
|
|
|
37
40
|
type DialogData = ExtensionPointData | AddFragmentData | ExtendControllerData;
|
|
38
41
|
|
|
@@ -64,7 +67,11 @@ export class DialogFactory {
|
|
|
64
67
|
rta: RuntimeAuthoring,
|
|
65
68
|
dialogName: DialogNames,
|
|
66
69
|
data?: DialogData,
|
|
67
|
-
options:
|
|
70
|
+
options:
|
|
71
|
+
| Partial<AddFragmentOptions>
|
|
72
|
+
| Partial<FileExistsDialogOptions>
|
|
73
|
+
| AddCustomFragmentOptions
|
|
74
|
+
| AddSubpageOptions = {},
|
|
68
75
|
telemetryData?: QuickActionTelemetryData
|
|
69
76
|
): Promise<void> {
|
|
70
77
|
if (this.isDialogOpen) {
|
|
@@ -86,10 +93,21 @@ export class DialogFactory {
|
|
|
86
93
|
}),
|
|
87
94
|
title: resources.getText(options.title ?? 'ADP_ADD_FRAGMENT_DIALOG_TITLE')
|
|
88
95
|
},
|
|
89
|
-
|
|
96
|
+
data as AddFragmentData,
|
|
90
97
|
telemetryData
|
|
91
98
|
);
|
|
92
99
|
break;
|
|
100
|
+
case DialogNames.ADD_CUSTOM_FRAGMENT:
|
|
101
|
+
controller = new AddCustomFragment(
|
|
102
|
+
`open.ux.preview.client.adp.controllers.${dialogName}`,
|
|
103
|
+
overlay,
|
|
104
|
+
rta,
|
|
105
|
+
{
|
|
106
|
+
...options,
|
|
107
|
+
title: resources.getText(options.title ?? 'ADP_ADD_FRAGMENT_DIALOG_TITLE')
|
|
108
|
+
} as AddCustomFragmentOptions
|
|
109
|
+
);
|
|
110
|
+
break;
|
|
93
111
|
case DialogNames.ADD_TABLE_COLUMN_FRAGMENTS:
|
|
94
112
|
controller = new AddTableColumnFragments(
|
|
95
113
|
`open.ux.preview.client.adp.controllers.${dialogName}`,
|
|
@@ -107,7 +125,7 @@ export class DialogFactory {
|
|
|
107
125
|
`open.ux.preview.client.adp.controllers.${dialogName}`,
|
|
108
126
|
overlay,
|
|
109
127
|
rta,
|
|
110
|
-
|
|
128
|
+
data as ExtendControllerData,
|
|
111
129
|
telemetryData
|
|
112
130
|
);
|
|
113
131
|
break;
|
|
@@ -116,7 +134,7 @@ export class DialogFactory {
|
|
|
116
134
|
`open.ux.preview.client.adp.controllers.${dialogName}`,
|
|
117
135
|
overlay,
|
|
118
136
|
rta,
|
|
119
|
-
|
|
137
|
+
data as ExtensionPointData
|
|
120
138
|
);
|
|
121
139
|
break;
|
|
122
140
|
case DialogNames.FILE_EXISTS:
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
sap.ui.define(["../../../utils/fe-v4", "../simple-quick-action-base", "../common/op-add-custom-section", "../dialog-enablement-validator", "../../../cpe/quick-actions/utils", "sap/ui/dt/OverlayRegistry", "../../dialog-factory"], function (_____utils_fe_v4, ___simple_quick_action_base, ___common_op_add_custom_section, ___dialog_enablement_validator, _____cpe_quick_actions_utils, OverlayRegistry, ____dialog_factory) {
|
|
4
|
+
"use strict";
|
|
5
|
+
|
|
6
|
+
const getV4AppComponent = _____utils_fe_v4["getV4AppComponent"];
|
|
7
|
+
const SimpleQuickActionDefinitionBase = ___simple_quick_action_base["SimpleQuickActionDefinitionBase"];
|
|
8
|
+
const OP_ADD_CUSTOM_SECTION = ___common_op_add_custom_section["OP_ADD_CUSTOM_SECTION"];
|
|
9
|
+
const DIALOG_ENABLEMENT_VALIDATOR = ___dialog_enablement_validator["DIALOG_ENABLEMENT_VALIDATOR"];
|
|
10
|
+
const getRelevantControlFromActivePage = _____cpe_quick_actions_utils["getRelevantControlFromActivePage"];
|
|
11
|
+
const DialogFactory = ____dialog_factory["DialogFactory"];
|
|
12
|
+
const DialogNames = ____dialog_factory["DialogNames"];
|
|
13
|
+
const OP_PAGE_LAYOUT = ['sap.uxap.ObjectPageLayout'];
|
|
14
|
+
/**
|
|
15
|
+
* Quick Action for adding a custom page action.
|
|
16
|
+
*/
|
|
17
|
+
class AddCustomSectionQuickAction extends SimpleQuickActionDefinitionBase {
|
|
18
|
+
get currentPageDescriptor() {
|
|
19
|
+
const appComponent = getV4AppComponent(this.context.view);
|
|
20
|
+
const projectId = this.context.flexSettings.projectId;
|
|
21
|
+
const objectPageLayout = getRelevantControlFromActivePage(this.context.controlIndex, this.context.view, OP_PAGE_LAYOUT)[0];
|
|
22
|
+
const sections = objectPageLayout.getSections();
|
|
23
|
+
let anchor = null;
|
|
24
|
+
const pageId = this.context.view.getViewData()?.stableId.split('::').pop();
|
|
25
|
+
if (sections.length > 0) {
|
|
26
|
+
// Use the first section as the anchor if available
|
|
27
|
+
anchor = (this.context.view.getLocalId(sections[sections.length - 1].getId()) ?? '').split('::').pop();
|
|
28
|
+
}
|
|
29
|
+
if (!pageId) {
|
|
30
|
+
throw new Error('pageId is not defined');
|
|
31
|
+
}
|
|
32
|
+
if (!projectId) {
|
|
33
|
+
throw new Error('app reference is not defined');
|
|
34
|
+
}
|
|
35
|
+
if (!appComponent) {
|
|
36
|
+
throw new Error('appComponent is not defined');
|
|
37
|
+
}
|
|
38
|
+
if (!anchor) {
|
|
39
|
+
throw new Error('appComponent is not defined');
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
appType: 'fe-v4',
|
|
43
|
+
appComponent,
|
|
44
|
+
anchor,
|
|
45
|
+
pageId,
|
|
46
|
+
projectId
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
constructor(context) {
|
|
50
|
+
super(OP_ADD_CUSTOM_SECTION, OP_PAGE_LAYOUT, 'QUICK_ACTION_OP_ADD_CUSTOM_SECTION', context, [DIALOG_ENABLEMENT_VALIDATOR]);
|
|
51
|
+
}
|
|
52
|
+
async execute() {
|
|
53
|
+
const objectPageLayout = getRelevantControlFromActivePage(this.context.controlIndex, this.context.view, OP_PAGE_LAYOUT)[0];
|
|
54
|
+
const overlay = OverlayRegistry.getOverlay(objectPageLayout) || [];
|
|
55
|
+
await DialogFactory.createDialog(overlay, this.context.rta, DialogNames.ADD_CUSTOM_FRAGMENT, undefined, {
|
|
56
|
+
propertyPath: 'content/body/sections/',
|
|
57
|
+
title: 'QUICK_ACTION_OP_ADD_CUSTOM_SECTION',
|
|
58
|
+
appDescriptor: this.currentPageDescriptor
|
|
59
|
+
}, {
|
|
60
|
+
actionName: this.type,
|
|
61
|
+
telemetryEventIdentifier: this.getTelemetryIdentifier()
|
|
62
|
+
});
|
|
63
|
+
return [];
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
var __exports = {
|
|
67
|
+
__esModule: true
|
|
68
|
+
};
|
|
69
|
+
__exports.AddCustomSectionQuickAction = AddCustomSectionQuickAction;
|
|
70
|
+
return __exports;
|
|
71
|
+
});
|
|
72
|
+
//# sourceMappingURL=op-add-custom-section.js.map
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { getV4AppComponent } from '../../../utils/fe-v4';
|
|
2
|
+
import { PageDescriptorV4 } from '../../controllers/AddCustomFragment.controller';
|
|
3
|
+
import { SimpleQuickActionDefinitionBase } from '../simple-quick-action-base';
|
|
4
|
+
import { QuickActionContext, SimpleQuickActionDefinition } from '../../../cpe/quick-actions/quick-action-definition';
|
|
5
|
+
import { OP_ADD_CUSTOM_SECTION } from '../common/op-add-custom-section';
|
|
6
|
+
import { DIALOG_ENABLEMENT_VALIDATOR } from '../dialog-enablement-validator';
|
|
7
|
+
import FlexCommand from 'sap/ui/rta/command/FlexCommand';
|
|
8
|
+
import { getRelevantControlFromActivePage } from '../../../cpe/quick-actions/utils';
|
|
9
|
+
import ObjectPageLayout from 'sap/uxap/ObjectPageLayout';
|
|
10
|
+
import OverlayRegistry from 'sap/ui/dt/OverlayRegistry';
|
|
11
|
+
import { DialogFactory, DialogNames } from '../../dialog-factory';
|
|
12
|
+
|
|
13
|
+
const OP_PAGE_LAYOUT = ['sap.uxap.ObjectPageLayout'];
|
|
14
|
+
|
|
15
|
+
interface ViewDataType {
|
|
16
|
+
stableId: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Quick Action for adding a custom page action.
|
|
20
|
+
*/
|
|
21
|
+
export class AddCustomSectionQuickAction
|
|
22
|
+
extends SimpleQuickActionDefinitionBase
|
|
23
|
+
implements SimpleQuickActionDefinition
|
|
24
|
+
{
|
|
25
|
+
protected get currentPageDescriptor(): PageDescriptorV4 {
|
|
26
|
+
const appComponent = getV4AppComponent(this.context.view);
|
|
27
|
+
const projectId = this.context.flexSettings.projectId;
|
|
28
|
+
const objectPageLayout = getRelevantControlFromActivePage(
|
|
29
|
+
this.context.controlIndex,
|
|
30
|
+
this.context.view,
|
|
31
|
+
OP_PAGE_LAYOUT
|
|
32
|
+
)[0] as ObjectPageLayout;
|
|
33
|
+
const sections = objectPageLayout.getSections();
|
|
34
|
+
let anchor: string | null = null;
|
|
35
|
+
const pageId = (this.context.view.getViewData() as ViewDataType)?.stableId.split('::').pop() as string;
|
|
36
|
+
if (sections.length > 0) {
|
|
37
|
+
// Use the first section as the anchor if available
|
|
38
|
+
anchor = (this.context.view.getLocalId(sections[sections.length - 1].getId()) ?? '')
|
|
39
|
+
.split('::')
|
|
40
|
+
.pop() as string;
|
|
41
|
+
}
|
|
42
|
+
if (!pageId) {
|
|
43
|
+
throw new Error('pageId is not defined');
|
|
44
|
+
}
|
|
45
|
+
if (!projectId) {
|
|
46
|
+
throw new Error('app reference is not defined');
|
|
47
|
+
}
|
|
48
|
+
if (!appComponent) {
|
|
49
|
+
throw new Error('appComponent is not defined');
|
|
50
|
+
}
|
|
51
|
+
if (!anchor) {
|
|
52
|
+
throw new Error('appComponent is not defined');
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
appType: 'fe-v4',
|
|
56
|
+
appComponent,
|
|
57
|
+
anchor,
|
|
58
|
+
pageId,
|
|
59
|
+
projectId
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
constructor(context: QuickActionContext) {
|
|
63
|
+
super(OP_ADD_CUSTOM_SECTION, OP_PAGE_LAYOUT, 'QUICK_ACTION_OP_ADD_CUSTOM_SECTION', context, [
|
|
64
|
+
DIALOG_ENABLEMENT_VALIDATOR
|
|
65
|
+
]);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
async execute(): Promise<FlexCommand[]> {
|
|
69
|
+
const objectPageLayout = getRelevantControlFromActivePage(
|
|
70
|
+
this.context.controlIndex,
|
|
71
|
+
this.context.view,
|
|
72
|
+
OP_PAGE_LAYOUT
|
|
73
|
+
)[0] as ObjectPageLayout;
|
|
74
|
+
|
|
75
|
+
const overlay = OverlayRegistry.getOverlay(objectPageLayout) || [];
|
|
76
|
+
await DialogFactory.createDialog(
|
|
77
|
+
overlay,
|
|
78
|
+
this.context.rta,
|
|
79
|
+
DialogNames.ADD_CUSTOM_FRAGMENT,
|
|
80
|
+
undefined,
|
|
81
|
+
{
|
|
82
|
+
propertyPath: 'content/body/sections/',
|
|
83
|
+
title: 'QUICK_ACTION_OP_ADD_CUSTOM_SECTION',
|
|
84
|
+
appDescriptor: this.currentPageDescriptor
|
|
85
|
+
},
|
|
86
|
+
{ actionName: this.type, telemetryEventIdentifier: this.getTelemetryIdentifier() }
|
|
87
|
+
);
|
|
88
|
+
return [];
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
sap.ui.define(["../../../cpe/quick-actions/registry", "../common/add-controller-to-page", "./lr-toggle-clear-filter-bar", "./change-table-columns", "../common/op-add-header-field", "
|
|
3
|
+
sap.ui.define(["../../../cpe/quick-actions/registry", "../common/add-controller-to-page", "./lr-toggle-clear-filter-bar", "./change-table-columns", "../common/op-add-header-field", "./op-add-custom-section", "./create-table-custom-column", "../common/create-page-action", "./create-table-action", "./lr-enable-table-filtering", "./lr-enable-semantic-date-range-filter-bar", "./op-enable-empty-row-mode", "../common/add-new-annotation-file", "./enable-variant-management", "../fe-v4/add-new-subpage", "../fe-v4/change-table-actions"], function (_____cpe_quick_actions_registry, ___common_add_controller_to_page, ___lr_toggle_clear_filter_bar, ___change_table_columns, ___common_op_add_header_field, ___op_add_custom_section, ___create_table_custom_column, ___common_create_page_action, ___create_table_action, ___lr_enable_table_filtering, ___lr_enable_semantic_date_range_filter_bar, ___op_enable_empty_row_mode, ___common_add_new_annotation_file, ___enable_variant_management, ___fe_v4_add_new_subpage, ___fe_v4_change_table_actions) {
|
|
4
4
|
"use strict";
|
|
5
5
|
|
|
6
6
|
const QuickActionDefinitionRegistry = _____cpe_quick_actions_registry["QuickActionDefinitionRegistry"];
|
|
@@ -8,7 +8,7 @@ sap.ui.define(["../../../cpe/quick-actions/registry", "../common/add-controller-
|
|
|
8
8
|
const ToggleClearFilterBarQuickAction = ___lr_toggle_clear_filter_bar["ToggleClearFilterBarQuickAction"];
|
|
9
9
|
const ChangeTableColumnsQuickAction = ___change_table_columns["ChangeTableColumnsQuickAction"];
|
|
10
10
|
const AddHeaderFieldQuickAction = ___common_op_add_header_field["AddHeaderFieldQuickAction"];
|
|
11
|
-
const AddCustomSectionQuickAction =
|
|
11
|
+
const AddCustomSectionQuickAction = ___op_add_custom_section["AddCustomSectionQuickAction"];
|
|
12
12
|
const AddTableCustomColumnQuickAction = ___create_table_custom_column["AddTableCustomColumnQuickAction"];
|
|
13
13
|
const AddPageActionQuickAction = ___common_create_page_action["AddPageActionQuickAction"];
|
|
14
14
|
const AddTableActionQuickAction = ___create_table_action["AddTableActionQuickAction"];
|
|
@@ -8,7 +8,7 @@ import { AddControllerToPageQuickAction } from '../common/add-controller-to-page
|
|
|
8
8
|
import { ToggleClearFilterBarQuickAction } from './lr-toggle-clear-filter-bar';
|
|
9
9
|
import { ChangeTableColumnsQuickAction } from './change-table-columns';
|
|
10
10
|
import { AddHeaderFieldQuickAction } from '../common/op-add-header-field';
|
|
11
|
-
import { AddCustomSectionQuickAction } from '
|
|
11
|
+
import { AddCustomSectionQuickAction } from './op-add-custom-section';
|
|
12
12
|
import { AddTableCustomColumnQuickAction } from './create-table-custom-column';
|
|
13
13
|
import { AddPageActionQuickAction } from '../common/create-page-action';
|
|
14
14
|
import { AddTableActionQuickAction } from './create-table-action';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<Dialog id="addNewBBFragmentDialog"
|
|
2
|
+
xmlns="sap.m"
|
|
3
|
+
xmlns:core="sap.ui.core"
|
|
4
|
+
xmlns:l="sap.ui.layout"
|
|
5
|
+
xmlns:f="sap.ui.layout.form"
|
|
6
|
+
title="{/title}"
|
|
7
|
+
contentWidth="500px"
|
|
8
|
+
initialFocus="aggregationName"
|
|
9
|
+
class="sapUiRTABorder">
|
|
10
|
+
<content>
|
|
11
|
+
<f:SimpleForm id="addNewBBFragmentDialog_Form"
|
|
12
|
+
editable="true"
|
|
13
|
+
layout="ResponsiveGridLayout"
|
|
14
|
+
labelSpanS="4"
|
|
15
|
+
singleContainerFullSize="false">
|
|
16
|
+
<f:content>
|
|
17
|
+
<Label text="{i18n>ADP_ADD_FRAGMENT_DIALOG_FRAGMENT_NAME_LABEL}" required="true" />
|
|
18
|
+
<Input
|
|
19
|
+
id="bbFragmentName"
|
|
20
|
+
description=".fragment.xml"
|
|
21
|
+
value="{/newFragmentName}"
|
|
22
|
+
liveChange="onFragmentNameInputChange">
|
|
23
|
+
</Input>
|
|
24
|
+
</f:content>
|
|
25
|
+
</f:SimpleForm>
|
|
26
|
+
</content>
|
|
27
|
+
<beginButton>
|
|
28
|
+
<Button
|
|
29
|
+
id="createDialogBtn"
|
|
30
|
+
text="Create"
|
|
31
|
+
press="onCreateBtnPress"
|
|
32
|
+
enabled="false"
|
|
33
|
+
type="Emphasized" />
|
|
34
|
+
</beginButton>
|
|
35
|
+
<endButton>
|
|
36
|
+
<Button
|
|
37
|
+
id="closeDialogBtn"
|
|
38
|
+
text="Cancel"
|
|
39
|
+
press="handleDialogClose"
|
|
40
|
+
type="Reject" />
|
|
41
|
+
</endButton>
|
|
42
|
+
</Dialog>
|
|
@@ -18,7 +18,7 @@ sap.ui.define(["../utils/version"], function (___utils_version) {
|
|
|
18
18
|
async function initConnectors() {
|
|
19
19
|
if (isLowerThanMinimalUi5Version(await getUi5Version(), {
|
|
20
20
|
major: 1,
|
|
21
|
-
minor:
|
|
21
|
+
minor: 76
|
|
22
22
|
})) {
|
|
23
23
|
sap.ui.require(['open/ux/preview/client/flp/enableFakeConnector'], function (enableFakeConnector) {
|
|
24
24
|
enableFakeConnector();
|
|
@@ -11,7 +11,7 @@ import { getUi5Version, isLowerThanMinimalUi5Version } from '../utils/version';
|
|
|
11
11
|
* intiConnectors(); // Simply call the function without any arguments.
|
|
12
12
|
*/
|
|
13
13
|
export default async function initConnectors(): Promise<void> {
|
|
14
|
-
if (isLowerThanMinimalUi5Version(await getUi5Version(), { major: 1, minor:
|
|
14
|
+
if (isLowerThanMinimalUi5Version(await getUi5Version(), { major: 1, minor: 76 })) {
|
|
15
15
|
sap.ui.require(['open/ux/preview/client/flp/enableFakeConnector'], function (enableFakeConnector: () => void) {
|
|
16
16
|
enableFakeConnector();
|
|
17
17
|
});
|