@sap/ux-ui5-tooling 1.11.1 → 1.11.3
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/CHANGELOG.md +11 -0
- package/README.md +5 -3
- package/dist/cli/index.js +6216 -23473
- package/dist/middlewares/fiori-tools-appreload.js +21728 -9121
- package/dist/middlewares/fiori-tools-preview.js +114 -48
- package/dist/middlewares/fiori-tools-proxy.js +8391 -9156
- package/dist/middlewares/fiori-tools-servestatic.js +16824 -3978
- package/dist/tasks/cf-deploy/index.js +988 -4732
- package/dist/tasks/deploy/index.js +73265 -90624
- package/dist/templates/control-property-editor/app.js +46 -46
- package/dist/templates/control-property-editor/ui5-adaptation.js +1 -1
- package/package.json +12 -13
|
@@ -33,21 +33,53 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
33
33
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
34
34
|
|
|
35
35
|
// ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
36
|
-
function _typeof2(
|
|
36
|
+
function _typeof2(o) {
|
|
37
37
|
"@babel/helpers - typeof";
|
|
38
|
-
return _typeof2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(
|
|
39
|
-
return typeof
|
|
40
|
-
} : function(
|
|
41
|
-
return
|
|
42
|
-
}, _typeof2(
|
|
38
|
+
return _typeof2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
39
|
+
return typeof o2;
|
|
40
|
+
} : function(o2) {
|
|
41
|
+
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
42
|
+
}, _typeof2(o);
|
|
43
43
|
}
|
|
44
44
|
var init_typeof = __esm({
|
|
45
45
|
"../../node_modules/@babel/runtime/helpers/esm/typeof.js"() {
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
|
|
49
|
+
// ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
50
|
+
function _toPrimitive(input, hint) {
|
|
51
|
+
if (_typeof2(input) !== "object" || input === null)
|
|
52
|
+
return input;
|
|
53
|
+
var prim = input[Symbol.toPrimitive];
|
|
54
|
+
if (prim !== void 0) {
|
|
55
|
+
var res = prim.call(input, hint || "default");
|
|
56
|
+
if (_typeof2(res) !== "object")
|
|
57
|
+
return res;
|
|
58
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
59
|
+
}
|
|
60
|
+
return (hint === "string" ? String : Number)(input);
|
|
61
|
+
}
|
|
62
|
+
var init_toPrimitive = __esm({
|
|
63
|
+
"../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js"() {
|
|
64
|
+
init_typeof();
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
// ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
69
|
+
function _toPropertyKey(arg) {
|
|
70
|
+
var key = _toPrimitive(arg, "string");
|
|
71
|
+
return _typeof2(key) === "symbol" ? key : String(key);
|
|
72
|
+
}
|
|
73
|
+
var init_toPropertyKey = __esm({
|
|
74
|
+
"../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js"() {
|
|
75
|
+
init_typeof();
|
|
76
|
+
init_toPrimitive();
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
|
|
49
80
|
// ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
50
81
|
function _defineProperty(obj, key, value) {
|
|
82
|
+
key = _toPropertyKey(key);
|
|
51
83
|
if (key in obj) {
|
|
52
84
|
Object.defineProperty(obj, key, {
|
|
53
85
|
value,
|
|
@@ -62,6 +94,7 @@ function _defineProperty(obj, key, value) {
|
|
|
62
94
|
}
|
|
63
95
|
var init_defineProperty = __esm({
|
|
64
96
|
"../../node_modules/@babel/runtime/helpers/esm/defineProperty.js"() {
|
|
97
|
+
init_toPropertyKey();
|
|
65
98
|
}
|
|
66
99
|
});
|
|
67
100
|
|
|
@@ -106,7 +139,7 @@ function _defineProperties(target, props) {
|
|
|
106
139
|
descriptor.configurable = true;
|
|
107
140
|
if ("value" in descriptor)
|
|
108
141
|
descriptor.writable = true;
|
|
109
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
142
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
110
143
|
}
|
|
111
144
|
}
|
|
112
145
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
@@ -121,6 +154,7 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
121
154
|
}
|
|
122
155
|
var init_createClass = __esm({
|
|
123
156
|
"../../node_modules/@babel/runtime/helpers/esm/createClass.js"() {
|
|
157
|
+
init_toPropertyKey();
|
|
124
158
|
}
|
|
125
159
|
});
|
|
126
160
|
|
|
@@ -154,7 +188,7 @@ var init_possibleConstructorReturn = __esm({
|
|
|
154
188
|
|
|
155
189
|
// ../../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
156
190
|
function _getPrototypeOf(o) {
|
|
157
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf2(o2) {
|
|
191
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o2) {
|
|
158
192
|
return o2.__proto__ || Object.getPrototypeOf(o2);
|
|
159
193
|
};
|
|
160
194
|
return _getPrototypeOf(o);
|
|
@@ -166,7 +200,7 @@ var init_getPrototypeOf = __esm({
|
|
|
166
200
|
|
|
167
201
|
// ../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
168
202
|
function _setPrototypeOf(o, p) {
|
|
169
|
-
_setPrototypeOf = Object.setPrototypeOf
|
|
203
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
|
|
170
204
|
o2.__proto__ = p2;
|
|
171
205
|
return o2;
|
|
172
206
|
};
|
|
@@ -205,9 +239,8 @@ var init_inherits = __esm({
|
|
|
205
239
|
function _arrayLikeToArray(arr, len) {
|
|
206
240
|
if (len == null || len > arr.length)
|
|
207
241
|
len = arr.length;
|
|
208
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
242
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
209
243
|
arr2[i] = arr[i];
|
|
210
|
-
}
|
|
211
244
|
return arr2;
|
|
212
245
|
}
|
|
213
246
|
var init_arrayLikeToArray = __esm({
|
|
@@ -289,33 +322,31 @@ var init_arrayWithHoles = __esm({
|
|
|
289
322
|
});
|
|
290
323
|
|
|
291
324
|
// ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
292
|
-
function _iterableToArrayLimit(
|
|
293
|
-
var
|
|
294
|
-
if (
|
|
295
|
-
|
|
296
|
-
var _arr = [];
|
|
297
|
-
var _n = true;
|
|
298
|
-
var _d = false;
|
|
299
|
-
var _s, _e;
|
|
300
|
-
try {
|
|
301
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
302
|
-
_arr.push(_s.value);
|
|
303
|
-
if (i && _arr.length === i)
|
|
304
|
-
break;
|
|
305
|
-
}
|
|
306
|
-
} catch (err) {
|
|
307
|
-
_d = true;
|
|
308
|
-
_e = err;
|
|
309
|
-
} finally {
|
|
325
|
+
function _iterableToArrayLimit(r, l) {
|
|
326
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
327
|
+
if (null != t) {
|
|
328
|
+
var e, n, i, u, a = [], f = true, o = false;
|
|
310
329
|
try {
|
|
311
|
-
if (
|
|
312
|
-
|
|
330
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
|
331
|
+
if (Object(t) !== t)
|
|
332
|
+
return;
|
|
333
|
+
f = false;
|
|
334
|
+
} else
|
|
335
|
+
for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = true)
|
|
336
|
+
;
|
|
337
|
+
} catch (r2) {
|
|
338
|
+
o = true, n = r2;
|
|
313
339
|
} finally {
|
|
314
|
-
|
|
315
|
-
|
|
340
|
+
try {
|
|
341
|
+
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u))
|
|
342
|
+
return;
|
|
343
|
+
} finally {
|
|
344
|
+
if (o)
|
|
345
|
+
throw n;
|
|
346
|
+
}
|
|
316
347
|
}
|
|
348
|
+
return a;
|
|
317
349
|
}
|
|
318
|
-
return _arr;
|
|
319
350
|
}
|
|
320
351
|
var init_iterableToArrayLimit = __esm({
|
|
321
352
|
"../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js"() {
|
|
@@ -43997,7 +44028,7 @@ var require_package3 = __commonJS({
|
|
|
43997
44028
|
"../lib/telemetry/dist/package.json"(exports2, module2) {
|
|
43998
44029
|
module2.exports = {
|
|
43999
44030
|
name: "@sap/ux-telemetry",
|
|
44000
|
-
version: "1.11.
|
|
44031
|
+
version: "1.11.3",
|
|
44001
44032
|
description: "SAP Fiori tools telemetry library",
|
|
44002
44033
|
main: "dist/src/index.js",
|
|
44003
44034
|
author: "SAP SE",
|
|
@@ -44022,10 +44053,10 @@ var require_package3 = __commonJS({
|
|
|
44022
44053
|
},
|
|
44023
44054
|
dependencies: {
|
|
44024
44055
|
"@sap-ux/store": "0.3.8",
|
|
44025
|
-
"@sap/ux-cds": "1.11.
|
|
44026
|
-
"@sap/ux-common-utils": "1.11.
|
|
44027
|
-
"@sap/ux-feature-toggle": "1.11.
|
|
44028
|
-
"@sap/ux-project-access": "1.11.
|
|
44056
|
+
"@sap/ux-cds": "1.11.3",
|
|
44057
|
+
"@sap/ux-common-utils": "1.11.3",
|
|
44058
|
+
"@sap/ux-feature-toggle": "1.11.3",
|
|
44059
|
+
"@sap/ux-project-access": "1.11.3",
|
|
44029
44060
|
applicationinsights: "1.4.1",
|
|
44030
44061
|
axios: "0.26.0",
|
|
44031
44062
|
"performance-now": "2.1.0",
|
|
@@ -63137,7 +63168,7 @@ var require_utils10 = __commonJS({
|
|
|
63137
63168
|
)) {
|
|
63138
63169
|
return `~${"1.94.0"}`;
|
|
63139
63170
|
} else {
|
|
63140
|
-
return `~${semver_1.default.major(version)}.${semver_1.default.minor(version)}
|
|
63171
|
+
return `~${semver_1.default.major(version)}.${semver_1.default.minor(version)}.0`;
|
|
63141
63172
|
}
|
|
63142
63173
|
}
|
|
63143
63174
|
exports2.getEsmTypesVersion = getEsmTypesVersion;
|
|
@@ -63152,7 +63183,7 @@ var require_utils10 = __commonJS({
|
|
|
63152
63183
|
)) {
|
|
63153
63184
|
return `~${"1.76.0"}`;
|
|
63154
63185
|
} else {
|
|
63155
|
-
return `~${semver_1.default.major(version)}.${semver_1.default.minor(version)}
|
|
63186
|
+
return `~${semver_1.default.major(version)}.${semver_1.default.minor(version)}.0`;
|
|
63156
63187
|
}
|
|
63157
63188
|
}
|
|
63158
63189
|
exports2.getTypesVersion = getTypesVersion;
|
|
@@ -64876,7 +64907,8 @@ var require_featureToggle = __commonJS({
|
|
|
64876
64907
|
"sap.ux.help.testBetaFeatures.enableAppStudioGDContribution": "c8c52f0b-0d7d-4697-997a-d6f29814f42e",
|
|
64877
64908
|
"sap.ux.help.testBetaFeatures.enableAbapCdsSupport": "794cae98-3456-491a-ae20-3215a98b56df",
|
|
64878
64909
|
"sap.ux.help.testBetaFeatures.showTestGuides": "fbb03f42-0a86-4fd5-9fc4-8c9b38a4d1a3",
|
|
64879
|
-
"sap.ux.applicationModeler.testBetaFeatures.manifestEditor": true
|
|
64910
|
+
"sap.ux.applicationModeler.testBetaFeatures.manifestEditor": true,
|
|
64911
|
+
"sap.ux.appGenerator.testBetaFeatures.newAnnotationAPI": true
|
|
64880
64912
|
};
|
|
64881
64913
|
exports2.FeatureToggleKey = "testBetaFeatures";
|
|
64882
64914
|
exports2.ExperimentalFeatures = "sap.ux.applicationModeler.enableExperimentalFeatures";
|
|
@@ -65238,6 +65270,7 @@ var require_EventName = __commonJS({
|
|
|
65238
65270
|
EventName5["ANNOTATION_LSP_XML_LOAD"] = "ANNOTATION_LSP_XML_LOAD";
|
|
65239
65271
|
EventName5["ANNOTATION_LSP_USAGE_TERM"] = "ANNOTATION_LSP_USAGE_TERM";
|
|
65240
65272
|
EventName5["ANNOTATION_LSP_CODE_COMPLETION"] = "ANNOTATION_LSP_CODE_COMPLETION";
|
|
65273
|
+
EventName5["ANNOTATION_LSP_CODE_COMPL_LOAD"] = "ANNOTATION_LSP_CODE_COMPL_LOAD";
|
|
65241
65274
|
EventName5["MIGRATION_ACTIVATED"] = "MIGRATION_ACTIVATED";
|
|
65242
65275
|
EventName5["MIGRATION_BACKEND_LOAD"] = "MIGRATION_BACKEND_LOAD";
|
|
65243
65276
|
EventName5["MIGRATION_REFRESH_BACKEND_LOAD"] = "MIGRATION_REFRESH_BACKEND_LOAD";
|
|
@@ -85600,7 +85633,7 @@ var serializeDataAttributes = (attributes, prefix = "data") => [...attributes.en
|
|
|
85600
85633
|
return `${prefix}-${name}='${value}'`;
|
|
85601
85634
|
}).join(" ");
|
|
85602
85635
|
var getUi5Configuration = (libs, component, theme) => {
|
|
85603
|
-
const workspaceConnectorPath = `preview/WorkspaceConnector`;
|
|
85636
|
+
const workspaceConnectorPath = `open/ux/preview/client/flp/WorkspaceConnector`;
|
|
85604
85637
|
const flexibilityServices = [
|
|
85605
85638
|
{
|
|
85606
85639
|
applyConnector: workspaceConnectorPath,
|
|
@@ -85700,7 +85733,8 @@ async function getTemplateDataForPropertyEditor(options2, reuseLibsExists, libs,
|
|
|
85700
85733
|
ui5ConfigurationMap.set(
|
|
85701
85734
|
"resourceRoots",
|
|
85702
85735
|
JSON.stringify({
|
|
85703
|
-
editor: "editor"
|
|
85736
|
+
editor: "editor",
|
|
85737
|
+
"open.ux.preview.client": "/preview/client"
|
|
85704
85738
|
})
|
|
85705
85739
|
);
|
|
85706
85740
|
const ui5Configuration = serializeUi5Configuration(ui5ConfigurationMap);
|
|
@@ -85752,28 +85786,56 @@ var serveReactApp = async (req, res, next) => {
|
|
|
85752
85786
|
next(error3);
|
|
85753
85787
|
}
|
|
85754
85788
|
};
|
|
85789
|
+
var updateResourceRoots = (html) => {
|
|
85790
|
+
const resourceRootsProperty = "data-sap-ui-resourceroots=";
|
|
85791
|
+
const resourceRootsIdx = html.indexOf(resourceRootsProperty);
|
|
85792
|
+
if (resourceRootsIdx !== -1) {
|
|
85793
|
+
let resourceRootsData = html.slice(resourceRootsIdx + resourceRootsProperty.length);
|
|
85794
|
+
const resourceRootsEndIdx = resourceRootsData.indexOf("data-sap-ui");
|
|
85795
|
+
const resourceRootsOldValue = html.slice(
|
|
85796
|
+
resourceRootsIdx,
|
|
85797
|
+
resourceRootsIdx + resourceRootsProperty.length + resourceRootsEndIdx
|
|
85798
|
+
);
|
|
85799
|
+
resourceRootsData = resourceRootsData.slice(resourceRootsData.indexOf("{"));
|
|
85800
|
+
const roots = JSON.parse(resourceRootsData.slice(0, resourceRootsData.indexOf("}") + 1));
|
|
85801
|
+
Object.assign(roots, { "open.ux.preview.client": "/preview/client" });
|
|
85802
|
+
html = html.replace(resourceRootsOldValue, `data-sap-ui-resourceroots='${JSON.stringify(roots)}'
|
|
85803
|
+
`);
|
|
85804
|
+
} else {
|
|
85805
|
+
const roots = `data-sap-ui-resourceroots='${JSON.stringify({
|
|
85806
|
+
"open.ux.preview.client": "/preview/client"
|
|
85807
|
+
})}'`;
|
|
85808
|
+
const bootstrap = html.match(BOOTSTRAP_REGEX);
|
|
85809
|
+
const oldBoostrap = bootstrap[1];
|
|
85810
|
+
const newBootstrap = bootstrap[1] + "\n " + roots;
|
|
85811
|
+
html = html.replace(oldBoostrap, newBootstrap);
|
|
85812
|
+
}
|
|
85813
|
+
return html;
|
|
85814
|
+
};
|
|
85755
85815
|
var addFlexibilityServices = (html, res, next) => {
|
|
85756
85816
|
var _a2, _b;
|
|
85757
|
-
const connectorConfig = `data-sap-ui-flexibilityServices='[{"applyConnector": "/preview/WorkspaceConnector", "writeConnector": "/preview/WorkspaceConnector", "custom": true}]'`;
|
|
85817
|
+
const connectorConfig = `data-sap-ui-flexibilityServices='[{"applyConnector": "open/ux/preview/client/flp/WorkspaceConnector", "writeConnector": "open/ux/preview/client/flp/WorkspaceConnector", "custom": true}]'`;
|
|
85758
85818
|
const bootstrap = html.match(BOOTSTRAP_REGEX);
|
|
85759
85819
|
if (bootstrap && ((_a2 = bootstrap[1]) == null ? void 0 : _a2.indexOf("data-sap-ui-flexibilityServices")) === -1) {
|
|
85760
85820
|
const oldBoostrap = bootstrap[1];
|
|
85761
85821
|
const newBootstrap = bootstrap[1] + "\n " + connectorConfig;
|
|
85762
85822
|
html = html.replace(oldBoostrap, newBootstrap);
|
|
85823
|
+
html = updateResourceRoots(html);
|
|
85763
85824
|
setHtmlResponse(res, html);
|
|
85764
85825
|
} else if (bootstrap && ((_b = bootstrap[1]) == null ? void 0 : _b.indexOf("data-sap-ui-flexibilityServices")) > 0) {
|
|
85765
85826
|
const connectorsConfig = bootstrap[1].match(FLEXIBILITY_SERVICES_REGEX);
|
|
85766
85827
|
if (connectorsConfig && connectorsConfig[1]) {
|
|
85767
85828
|
const connectors = JSON.parse(connectorsConfig[1]);
|
|
85768
85829
|
connectors.push({
|
|
85769
|
-
applyConnector: "/preview/WorkspaceConnector",
|
|
85770
|
-
writeConnector: "/preview/WorkspaceConnector",
|
|
85830
|
+
applyConnector: "open/ux/preview/client/flp/WorkspaceConnector",
|
|
85831
|
+
writeConnector: "open/ux/preview/client/flp/WorkspaceConnector",
|
|
85771
85832
|
custom: true
|
|
85772
85833
|
});
|
|
85773
85834
|
html = html.replace(
|
|
85774
85835
|
FLEXIBILITY_SERVICES_REGEX,
|
|
85775
85836
|
`data-sap-ui-flexibilityServices='${JSON.stringify(connectors)}'`
|
|
85776
85837
|
);
|
|
85838
|
+
html = updateResourceRoots(html);
|
|
85777
85839
|
setHtmlResponse(res, html);
|
|
85778
85840
|
}
|
|
85779
85841
|
} else {
|
|
@@ -85841,8 +85903,12 @@ module.exports = async ({
|
|
|
85841
85903
|
const rootPath = middlewareUtil.getProject().getRootPath();
|
|
85842
85904
|
const sourcePath = middlewareUtil.getProject().getSourcePath();
|
|
85843
85905
|
const layer = await getSapuxLayer(rootPath);
|
|
85906
|
+
const theme = options2.configuration.ui5Theme;
|
|
85844
85907
|
const flp = new import_preview_middleware.FlpSandbox(
|
|
85845
|
-
{
|
|
85908
|
+
{
|
|
85909
|
+
flp: { intent: { object: "preview", action: "app" }, theme },
|
|
85910
|
+
rta: { layer, editors: [{ path: "/preview.html" }] }
|
|
85911
|
+
},
|
|
85846
85912
|
rootProject,
|
|
85847
85913
|
middlewareUtil,
|
|
85848
85914
|
log3
|