@sap-ux/preview-middleware 0.17.22 → 0.17.24
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/README.md +1 -1
- package/dist/base/flp.d.ts +95 -1
- package/dist/base/flp.js +277 -159
- package/dist/client/adp/api-handler.js +153 -153
- package/dist/client/adp/command-executor.js +75 -75
- package/dist/client/adp/control-utils.js +44 -44
- package/dist/client/adp/controllers/BaseDialog.controller.js +187 -187
- package/dist/client/adp/controllers/ControllerExtension.controller.js +213 -213
- package/dist/client/adp/controllers/ExtensionPoint.controller.js +138 -138
- package/dist/client/adp/controllers/FileExistsDialog.controller.js +66 -66
- package/dist/client/adp/dialog-factory.js +122 -122
- package/dist/client/adp/init-dialogs.js +100 -100
- package/dist/client/adp/quick-actions/common/add-controller-to-page.js +55 -55
- package/dist/client/adp/quick-actions/common/create-page-action.js +50 -50
- package/dist/client/adp/quick-actions/common/op-add-custom-section.js +36 -36
- package/dist/client/adp/quick-actions/common/op-add-header-field.js +48 -48
- package/dist/client/adp/quick-actions/common/utils.js +18 -18
- package/dist/client/adp/quick-actions/control-types.js +21 -21
- 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/change-table-columns.js +101 -101
- package/dist/client/adp/quick-actions/fe-v2/create-table-action.js +70 -70
- package/dist/client/adp/quick-actions/fe-v2/create-table-custom-column.js +96 -96
- 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 +58 -58
- 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 +81 -81
- package/dist/client/adp/quick-actions/fe-v2/registry.js +75 -75
- package/dist/client/adp/quick-actions/fe-v2/utils.js +95 -95
- package/dist/client/adp/quick-actions/fe-v4/change-table-columns.js +73 -73
- package/dist/client/adp/quick-actions/fe-v4/create-table-action.js +49 -49
- package/dist/client/adp/quick-actions/fe-v4/create-table-custom-column.js +46 -46
- 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 +55 -55
- package/dist/client/adp/quick-actions/fe-v4/lr-enable-table-filtering.js +82 -82
- package/dist/client/adp/quick-actions/fe-v4/lr-toggle-clear-filter-bar.js +52 -52
- 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 +58 -58
- package/dist/client/adp/quick-actions/fe-v4/utils.js +47 -47
- package/dist/client/adp/quick-actions/load.js +44 -44
- package/dist/client/adp/quick-actions/quick-action-base.js +53 -53
- package/dist/client/adp/utils.js +160 -160
- 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 +222 -222
- 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 +138 -138
- package/dist/client/flp/WorkspaceConnector.js +86 -86
- package/dist/client/flp/common.js +28 -28
- package/dist/client/flp/enableFakeConnector.js +83 -83
- package/dist/client/flp/initConnectors.js +30 -30
- package/dist/client/flp/initRta.js +178 -178
- package/dist/client/i18n.js +56 -56
- package/dist/client/utils/application.js +32 -32
- package/dist/client/utils/core.js +68 -68
- package/dist/client/utils/error.js +19 -19
- package/dist/client/utils/fe-v4.js +118 -118
- package/dist/client/utils/version.js +102 -102
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -188,7 +188,7 @@ return flp.router
|
|
|
188
188
|
|
|
189
189
|
|
|
190
190
|
## [Migration](#migration)
|
|
191
|
-
If you have no custom modifications in the local Fiori Launchpad sandbox files (
|
|
191
|
+
If you have no custom modifications in the local Fiori Launchpad sandbox files (`<webapp>/test/flpSandbox.html` or `<webapp>/test/flpSandboxMockserver.html`), the conversion is finished.
|
|
192
192
|
|
|
193
193
|
If you have custom modifications in the local Fiori Launchpad sandbox files, you need to migrate them into a custom .js or .ts file (depending on your setup) and integrate this file as a custom `init` script into the configuration options of the middleware.
|
|
194
194
|
|
package/dist/base/flp.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { Editor as MemFsEditor } from 'mem-fs-editor';
|
|
|
3
3
|
import type { Router } from 'express';
|
|
4
4
|
import type { Logger, ToolsLogger } from '@sap-ux/logger';
|
|
5
5
|
import type { MiddlewareUtils } from '@ui5/server';
|
|
6
|
-
import type
|
|
6
|
+
import { type Manifest } from '@sap-ux/project-access';
|
|
7
7
|
import { AdpPreview, type AdpPreviewConfig, type CommonChangeProperties, type OperationType } from '@sap-ux/adp-tooling';
|
|
8
8
|
import type { FlpConfig, MiddlewareConfig, RtaConfig, TestConfig } from '../types';
|
|
9
9
|
import { type TemplateConfig } from './config';
|
|
@@ -29,6 +29,7 @@ export declare class FlpSandbox {
|
|
|
29
29
|
readonly rta?: RtaConfig;
|
|
30
30
|
readonly test?: TestConfig[];
|
|
31
31
|
readonly router: EnhancedRouter;
|
|
32
|
+
private fs;
|
|
32
33
|
/**
|
|
33
34
|
* Constructor setting defaults and keeping reference to workspace resources.
|
|
34
35
|
*
|
|
@@ -77,12 +78,41 @@ export declare class FlpSandbox {
|
|
|
77
78
|
* @returns Promise that resolves when the application dependencies are set
|
|
78
79
|
*/
|
|
79
80
|
private setApplicationDependencies;
|
|
81
|
+
/**
|
|
82
|
+
* Handler for the GET requests to the runtime adaptation editor in developer mode.
|
|
83
|
+
*
|
|
84
|
+
* @param res the response
|
|
85
|
+
* @param rta runtime adaptation configuration
|
|
86
|
+
* @param previewUrl the url of the preview
|
|
87
|
+
* @private
|
|
88
|
+
*/
|
|
89
|
+
private editorGetHandlerDeveloperMode;
|
|
90
|
+
/**
|
|
91
|
+
* Handler for the GET requests to the runtime adaptation editor.
|
|
92
|
+
*
|
|
93
|
+
* @param req the request
|
|
94
|
+
* @param res the response
|
|
95
|
+
* @param rta runtime adaptation configuration
|
|
96
|
+
* @param previewUrl the url of the preview
|
|
97
|
+
* @param editor editor configuration
|
|
98
|
+
* @private
|
|
99
|
+
*/
|
|
100
|
+
private editorGetHandler;
|
|
80
101
|
/**
|
|
81
102
|
* Add additional routes for configured editors.
|
|
82
103
|
*
|
|
83
104
|
* @param rta runtime authoring configuration
|
|
84
105
|
*/
|
|
85
106
|
private addEditorRoutes;
|
|
107
|
+
/**
|
|
108
|
+
* Handler for the GET requests to the FLP.
|
|
109
|
+
*
|
|
110
|
+
* @param req the request
|
|
111
|
+
* @param res the response
|
|
112
|
+
* @param next the next function
|
|
113
|
+
* @private
|
|
114
|
+
*/
|
|
115
|
+
private flpGetHandler;
|
|
86
116
|
/**
|
|
87
117
|
* Add routes for html and scripts required for a local FLP.
|
|
88
118
|
*/
|
|
@@ -120,10 +150,53 @@ export declare class FlpSandbox {
|
|
|
120
150
|
* Add additional routes for apps also to be shown in the local FLP.
|
|
121
151
|
*/
|
|
122
152
|
private addRoutesForAdditionalApps;
|
|
153
|
+
/**
|
|
154
|
+
* Handler for flex changes GET requests.
|
|
155
|
+
*
|
|
156
|
+
* @param res the response
|
|
157
|
+
* @private
|
|
158
|
+
*/
|
|
159
|
+
private flexGetHandler;
|
|
160
|
+
/**
|
|
161
|
+
* Handler for flex changes POST requests.
|
|
162
|
+
*
|
|
163
|
+
* @param req the request
|
|
164
|
+
* @param res the response
|
|
165
|
+
* @private
|
|
166
|
+
*/
|
|
167
|
+
private flexPostHandler;
|
|
168
|
+
/**
|
|
169
|
+
* Handler for flex changes DELETE requests.
|
|
170
|
+
*
|
|
171
|
+
* @param req the request
|
|
172
|
+
* @param res the response
|
|
173
|
+
* @private
|
|
174
|
+
*/
|
|
175
|
+
private flexDeleteHandler;
|
|
123
176
|
/**
|
|
124
177
|
* Create required routes for flex.
|
|
125
178
|
*/
|
|
126
179
|
private createFlexHandler;
|
|
180
|
+
/**
|
|
181
|
+
* Handler for the GET requests to the HTML of the test suite.
|
|
182
|
+
*
|
|
183
|
+
* @param res the response
|
|
184
|
+
* @param testsuite the test suite template
|
|
185
|
+
* @param config the test configuration
|
|
186
|
+
* @private
|
|
187
|
+
*/
|
|
188
|
+
private testSuiteHtmlGetHandler;
|
|
189
|
+
/**
|
|
190
|
+
* Handler for the GET requests to the JS of the test suite.
|
|
191
|
+
*
|
|
192
|
+
* @param res the response
|
|
193
|
+
* @param next the next function
|
|
194
|
+
* @param config the test configuration
|
|
195
|
+
* @param initTemplate the test runner template
|
|
196
|
+
* @param testPaths the paths to the test files
|
|
197
|
+
* @private
|
|
198
|
+
*/
|
|
199
|
+
private testSuiteJsGetHandler;
|
|
127
200
|
/**
|
|
128
201
|
* If it is part of TestConfig, create a test suite for the test configurations.
|
|
129
202
|
*
|
|
@@ -142,6 +215,27 @@ export declare class FlpSandbox {
|
|
|
142
215
|
* @private
|
|
143
216
|
*/
|
|
144
217
|
private sendResponse;
|
|
218
|
+
/**
|
|
219
|
+
* Handler for the GET requests to the HTML of the test runner.
|
|
220
|
+
*
|
|
221
|
+
* @param res the response
|
|
222
|
+
* @param next the next function
|
|
223
|
+
* @param config test configuration
|
|
224
|
+
* @param htmlTemplate the test runner template
|
|
225
|
+
* @param id application id from manifest
|
|
226
|
+
*/
|
|
227
|
+
private testRunnerHtmlGetHandler;
|
|
228
|
+
/**
|
|
229
|
+
* Handler for the GET requests to the JS of the test runner.
|
|
230
|
+
*
|
|
231
|
+
* @param res the response
|
|
232
|
+
* @param next the next function
|
|
233
|
+
* @param config test configuration
|
|
234
|
+
* @param initTemplate the test runner template
|
|
235
|
+
* @param ns namespace for the test files
|
|
236
|
+
* @private
|
|
237
|
+
*/
|
|
238
|
+
private testRunnerJsGetHandler;
|
|
145
239
|
/**
|
|
146
240
|
* Add routes for html and scripts required for a local test FLP.
|
|
147
241
|
*
|