@sap/ux-ui5-tooling 1.8.6 → 1.9.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/cli/index.js +924 -807
- package/dist/markdowns/deploy/deploy.en.md +1 -1
- package/dist/markdowns/undeploy/undeploy.en.md +6 -0
- package/dist/middlewares/fiori-tools-appreload.js +497 -124
- package/dist/middlewares/fiori-tools-preview.js +911 -796
- package/dist/middlewares/fiori-tools-proxy.js +989 -867
- package/dist/tasks/cf-deploy/index.js +852 -741
- package/dist/tasks/deploy/index.js +857 -746
- package/dist/templates/control-property-editor/app.css +1 -1
- package/dist/templates/control-property-editor/app.js +48 -46
- package/dist/templates/control-property-editor/ui5-adaptation.js +1 -1
- package/package.json +10 -12
|
@@ -160,9 +160,13 @@ var require_dist = __commonJS({
|
|
|
160
160
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
161
161
|
if (k2 === void 0)
|
|
162
162
|
k2 = k;
|
|
163
|
-
Object.
|
|
164
|
-
|
|
165
|
-
|
|
163
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
164
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
165
|
+
desc = { enumerable: true, get: function() {
|
|
166
|
+
return m[k];
|
|
167
|
+
} };
|
|
168
|
+
}
|
|
169
|
+
Object.defineProperty(o, k2, desc);
|
|
166
170
|
} : function(o, m, k, k2) {
|
|
167
171
|
if (k2 === void 0)
|
|
168
172
|
k2 = k;
|
|
@@ -199,7 +203,7 @@ var require_dist = __commonJS({
|
|
|
199
203
|
FioriToolsSettings2["dir"] = ".fioritools";
|
|
200
204
|
})(FioriToolsSettings = exports2.FioriToolsSettings || (exports2.FioriToolsSettings = {}));
|
|
201
205
|
var getFioriToolsDirectory = () => {
|
|
202
|
-
return path_1.default.join(os_1.homedir(), FioriToolsSettings.dir);
|
|
206
|
+
return path_1.default.join((0, os_1.homedir)(), FioriToolsSettings.dir);
|
|
203
207
|
};
|
|
204
208
|
exports2.getFioriToolsDirectory = getFioriToolsDirectory;
|
|
205
209
|
function filterReferenceUri(metadata) {
|
|
@@ -24920,7 +24924,7 @@ var require_utils2 = __commonJS({
|
|
|
24920
24924
|
var debug_1 = require_src2();
|
|
24921
24925
|
exports2.STORE_NAMESPACE = "ft:store";
|
|
24922
24926
|
exports2.MIGRATION_NAMESPACE = exports2.STORE_NAMESPACE + ":migrate";
|
|
24923
|
-
var newDebugLogger = (namespace = exports2.STORE_NAMESPACE) => debug_1.debug(namespace);
|
|
24927
|
+
var newDebugLogger = (namespace = exports2.STORE_NAMESPACE) => (0, debug_1.debug)(namespace);
|
|
24924
24928
|
exports2.newDebugLogger = newDebugLogger;
|
|
24925
24929
|
var enableDebugLogger = (namespace) => debug_1.debug.enable(namespace);
|
|
24926
24930
|
exports2.enableDebugLogger = enableDebugLogger;
|
|
@@ -24934,7 +24938,7 @@ var require_utils2 = __commonJS({
|
|
|
24934
24938
|
function getExtendedLogger(l) {
|
|
24935
24939
|
return {
|
|
24936
24940
|
...l,
|
|
24937
|
-
debug: exports2.newDebugLogger()
|
|
24941
|
+
debug: (0, exports2.newDebugLogger)()
|
|
24938
24942
|
};
|
|
24939
24943
|
}
|
|
24940
24944
|
exports2.getExtendedLogger = getExtendedLogger;
|
|
@@ -25277,9 +25281,13 @@ var require_filesystem = __commonJS({
|
|
|
25277
25281
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
25278
25282
|
if (k2 === void 0)
|
|
25279
25283
|
k2 = k;
|
|
25280
|
-
Object.
|
|
25281
|
-
|
|
25282
|
-
|
|
25284
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
25285
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
25286
|
+
desc = { enumerable: true, get: function() {
|
|
25287
|
+
return m[k];
|
|
25288
|
+
} };
|
|
25289
|
+
}
|
|
25290
|
+
Object.defineProperty(o, k2, desc);
|
|
25283
25291
|
} : function(o, m, k, k2) {
|
|
25284
25292
|
if (k2 === void 0)
|
|
25285
25293
|
k2 = k;
|
|
@@ -25414,7 +25422,7 @@ var require_filesystem = __commonJS({
|
|
|
25414
25422
|
var _a2, _b;
|
|
25415
25423
|
let rawContents;
|
|
25416
25424
|
try {
|
|
25417
|
-
rawContents = (_a2 = fs_1.readFileSync(path_1.join(exports2.basedir(), `${entityName}.json`))) == null ? void 0 : _a2.toString().trim();
|
|
25425
|
+
rawContents = (_a2 = (0, fs_1.readFileSync)((0, path_1.join)((0, exports2.basedir)(), `${entityName}.json`))) == null ? void 0 : _a2.toString().trim();
|
|
25418
25426
|
} catch (e) {
|
|
25419
25427
|
this.logger.debug(e.message);
|
|
25420
25428
|
return { error: e };
|
|
@@ -25431,16 +25439,16 @@ var require_filesystem = __commonJS({
|
|
|
25431
25439
|
return { entities };
|
|
25432
25440
|
}
|
|
25433
25441
|
writeToFile(entityName, entities) {
|
|
25434
|
-
const base = exports2.basedir();
|
|
25442
|
+
const base = (0, exports2.basedir)();
|
|
25435
25443
|
const data2 = JSON.stringify({ [entityName]: entities }, null, 2);
|
|
25436
25444
|
const filename = getEntityFileName(entityName);
|
|
25437
25445
|
try {
|
|
25438
|
-
fs_1.writeFileSync(path_1.default.join(base, filename), data2);
|
|
25446
|
+
(0, fs_1.writeFileSync)(path_1.default.join(base, filename), data2);
|
|
25439
25447
|
} catch (e) {
|
|
25440
25448
|
if (e.code === "ENOENT") {
|
|
25441
25449
|
this.logger.debug(`Base directory [${base}] does not exist, trying to create it`);
|
|
25442
|
-
fs_1.mkdirSync(base, { recursive: true });
|
|
25443
|
-
fs_1.writeFileSync(path_1.default.join(base, filename), data2);
|
|
25450
|
+
(0, fs_1.mkdirSync)(base, { recursive: true });
|
|
25451
|
+
(0, fs_1.writeFileSync)(path_1.default.join(base, filename), data2);
|
|
25444
25452
|
} else {
|
|
25445
25453
|
throw e;
|
|
25446
25454
|
}
|
|
@@ -25450,15 +25458,15 @@ var require_filesystem = __commonJS({
|
|
|
25450
25458
|
exports2.FilesystemStore = FilesystemStore;
|
|
25451
25459
|
function toPersistenceName(s) {
|
|
25452
25460
|
const t = s == null ? void 0 : s.trim().toLowerCase();
|
|
25453
|
-
return t && pluralize_1.plural(t);
|
|
25461
|
+
return t && (0, pluralize_1.plural)(t);
|
|
25454
25462
|
}
|
|
25455
25463
|
function getEntityFileName(entityName) {
|
|
25456
25464
|
return toPersistenceName(entityName) + ".json";
|
|
25457
25465
|
}
|
|
25458
25466
|
function getFilesystemWatcherFor(entityName, callback) {
|
|
25459
|
-
const watchPath = path_1.default.join(exports2.basedir(), getEntityFileName(entityName));
|
|
25460
|
-
if (fs_1.existsSync(watchPath)) {
|
|
25461
|
-
return fs_1.watch(watchPath, void 0, () => {
|
|
25467
|
+
const watchPath = path_1.default.join((0, exports2.basedir)(), getEntityFileName(entityName));
|
|
25468
|
+
if ((0, fs_1.existsSync)(watchPath)) {
|
|
25469
|
+
return (0, fs_1.watch)(watchPath, void 0, () => {
|
|
25462
25470
|
callback(entityName);
|
|
25463
25471
|
});
|
|
25464
25472
|
} else {
|
|
@@ -25577,9 +25585,13 @@ var require_secure_store = __commonJS({
|
|
|
25577
25585
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
25578
25586
|
if (k2 === void 0)
|
|
25579
25587
|
k2 = k;
|
|
25580
|
-
Object.
|
|
25581
|
-
|
|
25582
|
-
|
|
25588
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
25589
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
25590
|
+
desc = { enumerable: true, get: function() {
|
|
25591
|
+
return m[k];
|
|
25592
|
+
} };
|
|
25593
|
+
}
|
|
25594
|
+
Object.defineProperty(o, k2, desc);
|
|
25583
25595
|
} : function(o, m, k, k2) {
|
|
25584
25596
|
if (k2 === void 0)
|
|
25585
25597
|
k2 = k;
|
|
@@ -25626,7 +25638,7 @@ var require_secure_store = __commonJS({
|
|
|
25626
25638
|
}
|
|
25627
25639
|
}
|
|
25628
25640
|
var getSecureStore = (log3) => {
|
|
25629
|
-
if (ux_common_utils_1.isAppStudio() || process.env.UX_TOOLS_DISABLE_KEYSTORE) {
|
|
25641
|
+
if ((0, ux_common_utils_1.isAppStudio)() || process.env.UX_TOOLS_DISABLE_KEYSTORE) {
|
|
25630
25642
|
return new dummy_store_1.DummyStore(log3);
|
|
25631
25643
|
} else {
|
|
25632
25644
|
const keytar = getKeytar(log3);
|
|
@@ -26413,7 +26425,7 @@ var require_hybrid = __commonJS({
|
|
|
26413
26425
|
constructor(logger) {
|
|
26414
26426
|
this.logger = logger;
|
|
26415
26427
|
this.filesystem = new filesystem_1.FilesystemStore(this.logger);
|
|
26416
|
-
this.secureStore = secure_store_1.getSecureStore(this.logger);
|
|
26428
|
+
this.secureStore = (0, secure_store_1.getSecureStore)(this.logger);
|
|
26417
26429
|
}
|
|
26418
26430
|
async read({ entityName, id }) {
|
|
26419
26431
|
const serialized = await this.filesystem.read({ entityName, id });
|
|
@@ -26448,8 +26460,8 @@ var require_hybrid = __commonJS({
|
|
|
26448
26460
|
return result2;
|
|
26449
26461
|
}
|
|
26450
26462
|
async write({ entityName, id, entity }) {
|
|
26451
|
-
const serializableProps = decorators_1.getSerializableProperties(entity);
|
|
26452
|
-
const sensitiveProps = decorators_1.getSensitiveDataProperties(entity);
|
|
26463
|
+
const serializableProps = (0, decorators_1.getSerializableProperties)(entity);
|
|
26464
|
+
const sensitiveProps = (0, decorators_1.getSensitiveDataProperties)(entity);
|
|
26453
26465
|
if (serializableProps.length > 0 && sensitiveProps.length > 0) {
|
|
26454
26466
|
for (let i = 0; i < serializableProps.length; i = i + 1) {
|
|
26455
26467
|
if (sensitiveProps.indexOf(serializableProps[i]) !== -1) {
|
|
@@ -26458,14 +26470,14 @@ var require_hybrid = __commonJS({
|
|
|
26458
26470
|
}
|
|
26459
26471
|
}
|
|
26460
26472
|
}
|
|
26461
|
-
const serializable = utils_1.pick(entity, ...serializableProps);
|
|
26473
|
+
const serializable = (0, utils_1.pick)(entity, ...serializableProps);
|
|
26462
26474
|
if (serializable) {
|
|
26463
26475
|
this.logger.debug("hybrid/write - writing serializable properties: %O", serializable);
|
|
26464
26476
|
await this.filesystem.write({ entityName, id, entity: serializable });
|
|
26465
26477
|
} else {
|
|
26466
26478
|
this.logger.debug("hybrid/write - no serializable properties found in %O", serializable);
|
|
26467
26479
|
}
|
|
26468
|
-
const sensitiveData = utils_1.pick(entity, ...sensitiveProps);
|
|
26480
|
+
const sensitiveData = (0, utils_1.pick)(entity, ...sensitiveProps);
|
|
26469
26481
|
if (sensitiveData) {
|
|
26470
26482
|
this.logger.debug(`hybrid/write - writing sensitive properties to secure store. ID: [${id}]`);
|
|
26471
26483
|
await this.secureStore.save(getFullyQualifiedServiceName(entityName), id, sensitiveData);
|
|
@@ -26511,13 +26523,13 @@ var require_backend_system = __commonJS({
|
|
|
26511
26523
|
AuthenticationType2["OAuth2ClientCredential"] = "oauth2ClientCredential";
|
|
26512
26524
|
})(AuthenticationType = exports2.AuthenticationType || (exports2.AuthenticationType = {}));
|
|
26513
26525
|
var BackendSystemKey = class {
|
|
26526
|
+
static from(system) {
|
|
26527
|
+
return new BackendSystemKey({ url: system.url, client: system.client });
|
|
26528
|
+
}
|
|
26514
26529
|
constructor({ url, client }) {
|
|
26515
26530
|
this.url = url.trim().replace(/\/$/, "");
|
|
26516
26531
|
this.client = client == null ? void 0 : client.trim();
|
|
26517
26532
|
}
|
|
26518
|
-
static from(system) {
|
|
26519
|
-
return new BackendSystemKey({ url: system.url, client: system.client });
|
|
26520
|
-
}
|
|
26521
26533
|
getId() {
|
|
26522
26534
|
return this.url + `${this.client ? "/" + this.client : ""}`;
|
|
26523
26535
|
}
|
|
@@ -26774,16 +26786,16 @@ var require_system_migration2 = __commonJS({
|
|
|
26774
26786
|
this.logger.debug(`Migrating sytem ID: [${systemId}]`);
|
|
26775
26787
|
const refreshToken = await this.getRefreshTokenFromOldStore(oldSystem);
|
|
26776
26788
|
if (refreshToken) {
|
|
26777
|
-
this.logger.info(i18n_1.text("info.foundRefreshToken", { systemId }));
|
|
26789
|
+
this.logger.info((0, i18n_1.text)("info.foundRefreshToken", { systemId }));
|
|
26778
26790
|
}
|
|
26779
26791
|
await this.saveBackendSystem(new backend_system_1.BackendSystem({ ...oldSystem, refreshToken }));
|
|
26780
26792
|
await this.secureStore.delete(contants_1.ServiceName.OldSystemService, systemId);
|
|
26781
26793
|
if (refreshToken) {
|
|
26782
26794
|
await this.deleteOldRefreshToken(oldSystem, systemId);
|
|
26783
|
-
this.logger.info(i18n_1.text("info.deletingRefreshTokenFromOldStore", { systemId }));
|
|
26795
|
+
this.logger.info((0, i18n_1.text)("info.deletingRefreshTokenFromOldStore", { systemId }));
|
|
26784
26796
|
}
|
|
26785
26797
|
} else {
|
|
26786
|
-
this.logger.info(i18n_1.text("error.systemAlreadyExistsInHybridStore", { systemId }));
|
|
26798
|
+
this.logger.info((0, i18n_1.text)("error.systemAlreadyExistsInHybridStore", { systemId }));
|
|
26787
26799
|
}
|
|
26788
26800
|
}
|
|
26789
26801
|
}
|
|
@@ -26793,7 +26805,7 @@ var require_system_migration2 = __commonJS({
|
|
|
26793
26805
|
const existingSystem = existingSystems[systemId];
|
|
26794
26806
|
const refreshToken = await this.getRefreshTokenFromOldStore(existingSystem);
|
|
26795
26807
|
if (refreshToken) {
|
|
26796
|
-
this.logger.info(i18n_1.text("info.foundRefreshToken", { systemId }));
|
|
26808
|
+
this.logger.info((0, i18n_1.text)("info.foundRefreshToken", { systemId }));
|
|
26797
26809
|
await this.updateRefreshTokenInStoredSystem(existingSystem, refreshToken, systemId);
|
|
26798
26810
|
await this.deleteOldRefreshToken(existingSystem, systemId);
|
|
26799
26811
|
}
|
|
@@ -26804,13 +26816,13 @@ var require_system_migration2 = __commonJS({
|
|
|
26804
26816
|
for (const systemId of Object.keys(existingSystems)) {
|
|
26805
26817
|
const existingSystem = existingSystems[systemId];
|
|
26806
26818
|
if (!existingSystem.authenticationType) {
|
|
26807
|
-
this.logger.info(i18n_1.text("info.tryingToUpdateAuthType", { systemId }));
|
|
26819
|
+
this.logger.info((0, i18n_1.text)("info.tryingToUpdateAuthType", { systemId }));
|
|
26808
26820
|
const authenticationType = this.guessAuthType(existingSystem);
|
|
26809
26821
|
if (authenticationType) {
|
|
26810
|
-
this.logger.info(i18n_1.text("info.authTypeDetermined", { authenticationType, systemId }));
|
|
26822
|
+
this.logger.info((0, i18n_1.text)("info.authTypeDetermined", { authenticationType, systemId }));
|
|
26811
26823
|
await this.saveBackendSystem(new backend_system_1.BackendSystem({ ...existingSystem, authenticationType }));
|
|
26812
26824
|
} else {
|
|
26813
|
-
this.logger.info(i18n_1.text("info.authTypeNotDetermined", { systemId }));
|
|
26825
|
+
this.logger.info((0, i18n_1.text)("info.authTypeNotDetermined", { systemId }));
|
|
26814
26826
|
}
|
|
26815
26827
|
}
|
|
26816
26828
|
}
|
|
@@ -26835,18 +26847,18 @@ var require_system_migration2 = __commonJS({
|
|
|
26835
26847
|
}
|
|
26836
26848
|
async deleteOldRefreshToken(system, systemId) {
|
|
26837
26849
|
var _a2;
|
|
26838
|
-
this.logger.info(i18n_1.text("info.deletingRefreshTokenFromOldStore", { systemId }));
|
|
26850
|
+
this.logger.info((0, i18n_1.text)("info.deletingRefreshTokenFromOldStore", { systemId }));
|
|
26839
26851
|
try {
|
|
26840
26852
|
const host = (_a2 = new URL(system.url)) == null ? void 0 : _a2.host;
|
|
26841
26853
|
await this.secureStore.delete(contants_1.ServiceName.OldRefreshTokenService, host);
|
|
26842
26854
|
} catch (e) {
|
|
26843
|
-
this.logger.info(i18n_1.text("error.couldNotDeleteRefreshToken", { url: system.url }));
|
|
26855
|
+
this.logger.info((0, i18n_1.text)("error.couldNotDeleteRefreshToken", { url: system.url }));
|
|
26844
26856
|
this.logger.info(e.message);
|
|
26845
26857
|
}
|
|
26846
26858
|
}
|
|
26847
26859
|
async updateRefreshTokenInStoredSystem(system, refreshToken, systemId) {
|
|
26848
26860
|
if (system.refreshToken !== refreshToken) {
|
|
26849
|
-
this.logger.info(i18n_1.text("info.updatingRefreshTokenInNewStore", { systemId }));
|
|
26861
|
+
this.logger.info((0, i18n_1.text)("info.updatingRefreshTokenInNewStore", { systemId }));
|
|
26850
26862
|
await this.saveBackendSystem(new backend_system_1.BackendSystem({ ...system, refreshToken }));
|
|
26851
26863
|
}
|
|
26852
26864
|
}
|
|
@@ -26869,7 +26881,7 @@ var require_system_migration2 = __commonJS({
|
|
|
26869
26881
|
const systemMigrationStatusDataProvider = new system_migration_1.SystemMigrationStatusDataProvider(logger);
|
|
26870
26882
|
const systemMigrationStatus = await systemMigrationStatusDataProvider.read(new system_migration_status_1.SystemMigrationStatusKey()) || { migrationDone: false, authTypeMigrated: false, migrationLogs: [] };
|
|
26871
26883
|
const migrationLogger = createLogInterceptor(logger, systemMigrationStatus.migrationLogs);
|
|
26872
|
-
const secureStore = secure_store_1.getSecureStore(migrationLogger);
|
|
26884
|
+
const secureStore = (0, secure_store_1.getSecureStore)(migrationLogger);
|
|
26873
26885
|
const migration = new Migration({
|
|
26874
26886
|
logger: migrationLogger,
|
|
26875
26887
|
systemMigrationStatus,
|
|
@@ -26884,7 +26896,7 @@ var require_system_migration2 = __commonJS({
|
|
|
26884
26896
|
}));
|
|
26885
26897
|
}
|
|
26886
26898
|
} catch (e) {
|
|
26887
|
-
logger.warn(i18n_1.text("error.systemMigrationFailed"));
|
|
26899
|
+
logger.warn((0, i18n_1.text)("error.systemMigrationFailed"));
|
|
26888
26900
|
logger.debug(e.message);
|
|
26889
26901
|
}
|
|
26890
26902
|
}
|
|
@@ -26905,11 +26917,11 @@ var require_system_migration2 = __commonJS({
|
|
|
26905
26917
|
};
|
|
26906
26918
|
}
|
|
26907
26919
|
function getMigrationLogger(migrationLogs) {
|
|
26908
|
-
const migrationLogger = utils_1.newDebugLogger(utils_1.MIGRATION_NAMESPACE);
|
|
26920
|
+
const migrationLogger = (0, utils_1.newDebugLogger)(utils_1.MIGRATION_NAMESPACE);
|
|
26909
26921
|
migrationLogger.log = (args) => {
|
|
26910
26922
|
migrationLogs.push(args == null ? void 0 : args.toString());
|
|
26911
26923
|
};
|
|
26912
|
-
utils_1.enableDebugLogger(utils_1.MIGRATION_NAMESPACE);
|
|
26924
|
+
(0, utils_1.enableDebugLogger)(utils_1.MIGRATION_NAMESPACE);
|
|
26913
26925
|
return migrationLogger;
|
|
26914
26926
|
}
|
|
26915
26927
|
}
|
|
@@ -26929,7 +26941,7 @@ var require_backend_system3 = __commonJS({
|
|
|
26929
26941
|
var SystemService = class {
|
|
26930
26942
|
constructor(logger) {
|
|
26931
26943
|
this.migrationDone = false;
|
|
26932
|
-
this.logger = utils_1.getExtendedLogger(logger);
|
|
26944
|
+
this.logger = (0, utils_1.getExtendedLogger)(logger);
|
|
26933
26945
|
this.dataProvider = new backend_system_1.SystemDataProvider(this.logger);
|
|
26934
26946
|
}
|
|
26935
26947
|
async partialUpdate(key, entity) {
|
|
@@ -26948,18 +26960,18 @@ var require_backend_system3 = __commonJS({
|
|
|
26948
26960
|
async readOrThrow(key) {
|
|
26949
26961
|
const existingSystem = await this.read(key);
|
|
26950
26962
|
if (!existingSystem) {
|
|
26951
|
-
throw new Error(i18n_1.text("error.systemDoesNotExist", { system: key }));
|
|
26963
|
+
throw new Error((0, i18n_1.text)("error.systemDoesNotExist", { system: key }));
|
|
26952
26964
|
}
|
|
26953
26965
|
return existingSystem;
|
|
26954
26966
|
}
|
|
26955
26967
|
validatePartialUpdateInput(entity) {
|
|
26956
26968
|
if (!entity || !Object.keys(entity).length) {
|
|
26957
|
-
throw new Error(i18n_1.text("error.noPropertiesSpecified"));
|
|
26969
|
+
throw new Error((0, i18n_1.text)("error.noPropertiesSpecified"));
|
|
26958
26970
|
}
|
|
26959
26971
|
}
|
|
26960
26972
|
async ensureMigrationDone() {
|
|
26961
26973
|
if (!this.migrationDone) {
|
|
26962
|
-
await system_migration_1.migrate(this.logger, this.dataProvider);
|
|
26974
|
+
await (0, system_migration_1.migrate)(this.logger, this.dataProvider);
|
|
26963
26975
|
this.migrationDone = true;
|
|
26964
26976
|
}
|
|
26965
26977
|
}
|
|
@@ -27021,9 +27033,13 @@ var require_dist4 = __commonJS({
|
|
|
27021
27033
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
27022
27034
|
if (k2 === void 0)
|
|
27023
27035
|
k2 = k;
|
|
27024
|
-
Object.
|
|
27025
|
-
|
|
27026
|
-
|
|
27036
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
27037
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
27038
|
+
desc = { enumerable: true, get: function() {
|
|
27039
|
+
return m[k];
|
|
27040
|
+
} };
|
|
27041
|
+
}
|
|
27042
|
+
Object.defineProperty(o, k2, desc);
|
|
27027
27043
|
} : function(o, m, k, k2) {
|
|
27028
27044
|
if (k2 === void 0)
|
|
27029
27045
|
k2 = k;
|
|
@@ -27046,12 +27062,12 @@ var require_dist4 = __commonJS({
|
|
|
27046
27062
|
system: backend_system_1.getInstance
|
|
27047
27063
|
};
|
|
27048
27064
|
async function getService({ logger = console, entityName }) {
|
|
27049
|
-
await i18n_1.initI18n();
|
|
27065
|
+
await (0, i18n_1.initI18n)();
|
|
27050
27066
|
const factory = services[entityName];
|
|
27051
27067
|
if (factory) {
|
|
27052
27068
|
return factory(logger);
|
|
27053
27069
|
} else {
|
|
27054
|
-
throw new Error(i18n_1.text("error.unsupportedEntity", { entityName }));
|
|
27070
|
+
throw new Error((0, i18n_1.text)("error.unsupportedEntity", { entityName }));
|
|
27055
27071
|
}
|
|
27056
27072
|
}
|
|
27057
27073
|
exports2.getService = getService;
|
|
@@ -30722,17 +30738,17 @@ var require_uaaOauth = __commonJS({
|
|
|
30722
30738
|
Redirect.path = "/oauth/client/redirect";
|
|
30723
30739
|
function getAuthCode({ uaa, log: log3, timeout = utils_1.timeoutMs }) {
|
|
30724
30740
|
return new Promise((resolve, reject) => {
|
|
30725
|
-
const app = express_1.default();
|
|
30741
|
+
const app = (0, express_1.default)();
|
|
30726
30742
|
const server = http_1.default.createServer(app);
|
|
30727
30743
|
let redirect;
|
|
30728
30744
|
const handleTimeout = () => {
|
|
30729
30745
|
server.close();
|
|
30730
|
-
reject(new error_1.UAATimeoutError(`Timeout. Did not get a response within ${utils_1.timeString(timeout)}`));
|
|
30746
|
+
reject(new error_1.UAATimeoutError(`Timeout. Did not get a response within ${(0, utils_1.timeString)(timeout)}`));
|
|
30731
30747
|
};
|
|
30732
30748
|
const timer = setTimeout(handleTimeout, timeout);
|
|
30733
30749
|
app.get(Redirect.path, (req, res) => {
|
|
30734
30750
|
res.set("Content-Type", "text/html");
|
|
30735
|
-
res.send(Buffer.from(static_1.redirectSuccessHtml(uaa.logoutUrl, uaa.systemId)));
|
|
30751
|
+
res.send(Buffer.from((0, static_1.redirectSuccessHtml)(uaa.logoutUrl, uaa.systemId)));
|
|
30736
30752
|
log3.info("Got authCode");
|
|
30737
30753
|
resolve({ authCode: req.query.code + "", redirect });
|
|
30738
30754
|
if (timer) {
|
|
@@ -30974,7 +30990,7 @@ var require_uaaOauth = __commonJS({
|
|
|
30974
30990
|
if (credentials.serviceKeysContents) {
|
|
30975
30991
|
return typeof credentials.serviceKeyContents === "string" ? JSON.parse(credentials.serviceKeysContents) : credentials.serviceKeysContents;
|
|
30976
30992
|
}
|
|
30977
|
-
return JSON.parse(fs_1.readFileSync(credentials.serviceKeys, "utf-8"));
|
|
30993
|
+
return JSON.parse((0, fs_1.readFileSync)(credentials.serviceKeys, "utf-8"));
|
|
30978
30994
|
} catch (e) {
|
|
30979
30995
|
throw new Error("Error parsing service keys");
|
|
30980
30996
|
}
|
|
@@ -31087,11 +31103,11 @@ var require_connectWithReentranceTicket = __commonJS({
|
|
|
31087
31103
|
var ADT_REENTRANCE_ENDPOINT = "/sap/bc/adt/core/http/reentranceticket";
|
|
31088
31104
|
async function getReentranceTicket({ backendUrl, logger, timeout = utils_1.timeoutMs }) {
|
|
31089
31105
|
return new Promise((resolve, reject) => {
|
|
31090
|
-
const app = express_1.default();
|
|
31106
|
+
const app = (0, express_1.default)();
|
|
31091
31107
|
const server = http_1.default.createServer(app);
|
|
31092
31108
|
const handleTimeout = () => {
|
|
31093
31109
|
server.close();
|
|
31094
|
-
reject(new error_1.TimeoutError(`Timeout. Did not get a response within ${utils_1.timeString(timeout)}`));
|
|
31110
|
+
reject(new error_1.TimeoutError(`Timeout. Did not get a response within ${(0, utils_1.timeString)(timeout)}`));
|
|
31095
31111
|
};
|
|
31096
31112
|
class Redirect {
|
|
31097
31113
|
static url(port) {
|
|
@@ -31105,7 +31121,7 @@ var require_connectWithReentranceTicket = __commonJS({
|
|
|
31105
31121
|
const reentranceTicket = (_a2 = req.query["reentrance-ticket"]) == null ? void 0 : _a2.toString();
|
|
31106
31122
|
logger.info("Got reentrance ticket: " + reentranceTicket);
|
|
31107
31123
|
res.set("Content-Type", "text/html");
|
|
31108
|
-
res.send(Buffer.from(static_1.redirectSuccessHtml(ABAPSystem.logoffUrl(backendUrl))));
|
|
31124
|
+
res.send(Buffer.from((0, static_1.redirectSuccessHtml)(ABAPSystem.logoffUrl(backendUrl))));
|
|
31109
31125
|
if (timer) {
|
|
31110
31126
|
clearTimeout(timer);
|
|
31111
31127
|
}
|
|
@@ -45469,8 +45485,8 @@ var require_destination = __commonJS({
|
|
|
45469
45485
|
async function fetchDestinations() {
|
|
45470
45486
|
var _a2;
|
|
45471
45487
|
const destinations = {};
|
|
45472
|
-
await axios_1.default.get(ux_common_utils_1.getAppStudioProxyURL() + "/reload");
|
|
45473
|
-
const response = await axios_1.default.get(ux_common_utils_1.getAppStudioBaseURL() + "/api/listDestinations");
|
|
45488
|
+
await axios_1.default.get((0, ux_common_utils_1.getAppStudioProxyURL)() + "/reload");
|
|
45489
|
+
const response = await axios_1.default.get((0, ux_common_utils_1.getAppStudioBaseURL)() + "/api/listDestinations");
|
|
45474
45490
|
(_a2 = response == null ? void 0 : response.data) == null ? void 0 : _a2.forEach((destination) => {
|
|
45475
45491
|
if (destination.WebIDEEnabled) {
|
|
45476
45492
|
destinations[destination.Name] = destination;
|
|
@@ -45481,7 +45497,7 @@ var require_destination = __commonJS({
|
|
|
45481
45497
|
async function getAuthHeaderForInstanceBasedDest(destinationInstance) {
|
|
45482
45498
|
var _a2, _b;
|
|
45483
45499
|
try {
|
|
45484
|
-
const credentials = (await cf_tools_1.apiGetInstanceCredentials(destinationInstance)).credentials;
|
|
45500
|
+
const credentials = (await (0, cf_tools_1.apiGetInstanceCredentials)(destinationInstance)).credentials;
|
|
45485
45501
|
const clientId = ((_a2 = credentials.uaa) == null ? void 0 : _a2.clientid) || credentials.clientid;
|
|
45486
45502
|
const clientSecret = ((_b = credentials.uaa) == null ? void 0 : _b.clientsecret) || credentials.clientsecret;
|
|
45487
45503
|
return Buffer.from(`${encodeURIComponent(clientId)}:${encodeURIComponent(clientSecret)}`).toString("base64");
|
|
@@ -45490,7 +45506,7 @@ var require_destination = __commonJS({
|
|
|
45490
45506
|
}
|
|
45491
45507
|
}
|
|
45492
45508
|
async function listDestinations() {
|
|
45493
|
-
if (ux_common_utils_1.isAppStudio()) {
|
|
45509
|
+
if ((0, ux_common_utils_1.isAppStudio)()) {
|
|
45494
45510
|
return fetchDestinations();
|
|
45495
45511
|
} else {
|
|
45496
45512
|
return {};
|
|
@@ -45504,7 +45520,7 @@ var require_destination = __commonJS({
|
|
|
45504
45520
|
systemConfig.url = `https://${destinationName}${DEST}`;
|
|
45505
45521
|
systemConfig.basDestinationInstanceCred = await getAuthHeaderForInstanceBasedDest(destinationInstance);
|
|
45506
45522
|
} else {
|
|
45507
|
-
systemConfig.url = ux_common_utils_1.getAppStudioBaseURL();
|
|
45523
|
+
systemConfig.url = (0, ux_common_utils_1.getAppStudioBaseURL)();
|
|
45508
45524
|
systemConfig.service = `/destinations/${destinationName != null ? destinationName : systemConfig.destination}${(_b = (_a2 = systemConfig.service) == null ? void 0 : _a2.replace(/^\/?/, "/")) != null ? _b : ""}`;
|
|
45509
45525
|
}
|
|
45510
45526
|
delete systemConfig.scp;
|
|
@@ -45512,7 +45528,7 @@ var require_destination = __commonJS({
|
|
|
45512
45528
|
}
|
|
45513
45529
|
exports2.replaceUrlForAppStudio = replaceUrlForAppStudio;
|
|
45514
45530
|
async function updateSystemConfig(system) {
|
|
45515
|
-
if (ux_common_utils_1.isAppStudio() && system.destination) {
|
|
45531
|
+
if ((0, ux_common_utils_1.isAppStudio)() && system.destination) {
|
|
45516
45532
|
if (system.destinationInstance) {
|
|
45517
45533
|
await replaceUrlForAppStudio(system, system.destination, system.destinationInstance);
|
|
45518
45534
|
} else {
|
|
@@ -45520,7 +45536,7 @@ var require_destination = __commonJS({
|
|
|
45520
45536
|
if (destinations[system.destination]) {
|
|
45521
45537
|
const dest = destinations[system.destination];
|
|
45522
45538
|
system.destinationAuthType = dest.Authentication;
|
|
45523
|
-
if (config_1.hasFullUrlDestAttribute({
|
|
45539
|
+
if ((0, config_1.hasFullUrlDestAttribute)({
|
|
45524
45540
|
["WebIDEAdditionalData"]: dest["WebIDEAdditionalData"]
|
|
45525
45541
|
})) {
|
|
45526
45542
|
system.isDestinationFullUrl = true;
|
|
@@ -45545,9 +45561,13 @@ var require_connection = __commonJS({
|
|
|
45545
45561
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
45546
45562
|
if (k2 === void 0)
|
|
45547
45563
|
k2 = k;
|
|
45548
|
-
Object.
|
|
45549
|
-
|
|
45550
|
-
|
|
45564
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
45565
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
45566
|
+
desc = { enumerable: true, get: function() {
|
|
45567
|
+
return m[k];
|
|
45568
|
+
} };
|
|
45569
|
+
}
|
|
45570
|
+
Object.defineProperty(o, k2, desc);
|
|
45551
45571
|
} : function(o, m, k, k2) {
|
|
45552
45572
|
if (k2 === void 0)
|
|
45553
45573
|
k2 = k;
|
|
@@ -45608,7 +45628,7 @@ var require_connection = __commonJS({
|
|
|
45608
45628
|
if (target.client) {
|
|
45609
45629
|
config2.params[exports2.SAP_CLIENT] = target.client;
|
|
45610
45630
|
}
|
|
45611
|
-
const isTargetDestOnAppStudio = ux_common_utils_1.isAppStudio() && target.destination;
|
|
45631
|
+
const isTargetDestOnAppStudio = (0, ux_common_utils_1.isAppStudio)() && target.destination;
|
|
45612
45632
|
if (isTargetDestOnAppStudio || disableSAML) {
|
|
45613
45633
|
config2.params.saml2 = "disabled";
|
|
45614
45634
|
}
|
|
@@ -45657,7 +45677,7 @@ var require_connection = __commonJS({
|
|
|
45657
45677
|
if (contentTypeHeader) {
|
|
45658
45678
|
return contentTypeHeader.toLowerCase();
|
|
45659
45679
|
} else if (typeof responseData === "string") {
|
|
45660
|
-
return (_b = (_a2 = detect_content_type_1.default(Buffer.from(responseData))) == null ? void 0 : _a2.toLowerCase()) != null ? _b : "";
|
|
45680
|
+
return (_b = (_a2 = (0, detect_content_type_1.default)(Buffer.from(responseData))) == null ? void 0 : _a2.toLowerCase()) != null ? _b : "";
|
|
45661
45681
|
} else {
|
|
45662
45682
|
return "";
|
|
45663
45683
|
}
|
|
@@ -45668,11 +45688,11 @@ var require_connection = __commonJS({
|
|
|
45668
45688
|
async function connect({ target, credentials, log: log3, autoAddTrailingSlash = true, timeout, ignoreCertError = false, postConnectionCallback, disableSAML = false }) {
|
|
45669
45689
|
const targetAuthType = target.authenticationType;
|
|
45670
45690
|
if (targetAuthType === config_1.AuthenticationType.OAuth2RefreshToken) {
|
|
45671
|
-
return uaaOauth_1.connectUsingUaa({ target, credentials, log: log3, postConnectionCallback });
|
|
45691
|
+
return (0, uaaOauth_1.connectUsingUaa)({ target, credentials, log: log3, postConnectionCallback });
|
|
45672
45692
|
} else if (targetAuthType === config_1.AuthenticationType.OAuth2ClientCredential) {
|
|
45673
|
-
return uaaOauth_1.connectUsingUaaClientCredential({ target, credentials, log: log3 });
|
|
45693
|
+
return (0, uaaOauth_1.connectUsingUaaClientCredential)({ target, credentials, log: log3 });
|
|
45674
45694
|
} else if (targetAuthType === config_1.AuthenticationType.ReentranceTicket) {
|
|
45675
|
-
return connectWithReentranceTicket_1.connectWithReentranceTicket({ target, logger: log3, ignoreCertError });
|
|
45695
|
+
return (0, connectWithReentranceTicket_1.connectWithReentranceTicket)({ target, logger: log3, ignoreCertError });
|
|
45676
45696
|
} else {
|
|
45677
45697
|
return connectWithBasicAuth({
|
|
45678
45698
|
target,
|
|
@@ -45705,7 +45725,7 @@ var require_httpClient = __commonJS({
|
|
|
45705
45725
|
var https_1 = __importDefault(require("https"));
|
|
45706
45726
|
var url_1 = require("url");
|
|
45707
45727
|
async function newHttpClient({ system, credentials, log: log3, existingConnection, autoAddTrailingSlash = true, timeout, ignoreCertError, postConnectionCallback, disableSAML = false }) {
|
|
45708
|
-
const connection = existingConnection || await connection_1.connect({
|
|
45728
|
+
const connection = existingConnection || await (0, connection_1.connect)({
|
|
45709
45729
|
target: system,
|
|
45710
45730
|
credentials,
|
|
45711
45731
|
log: log3,
|
|
@@ -47685,7 +47705,7 @@ var require_message = __commonJS({
|
|
|
47685
47705
|
exports2.printErrorDetails = exports2.prettyPrintError = exports2.prettyPrintMessage = void 0;
|
|
47686
47706
|
var chalk_1 = __importDefault(require_source());
|
|
47687
47707
|
var debug_1 = __importDefault(require_src7());
|
|
47688
|
-
var odataClientDebug = debug_1.default("ux-odata-client");
|
|
47708
|
+
var odataClientDebug = (0, debug_1.default)("ux-odata-client");
|
|
47689
47709
|
function prettyPrintMessage(msg, log3, logData) {
|
|
47690
47710
|
logLevel(msg.severity, msg.message, log3);
|
|
47691
47711
|
if (msg.longtextUrl && logData.frontendUrl) {
|
|
@@ -48797,7 +48817,7 @@ var require_utils7 = __commonJS({
|
|
|
48797
48817
|
exports2.guessAuthType = guessAuthType;
|
|
48798
48818
|
async function getOnPremSystem(system, isImportedSystem = false) {
|
|
48799
48819
|
var _a2, _b;
|
|
48800
|
-
let sapSystem = await __1.getSapSystem(system.url, system.client);
|
|
48820
|
+
let sapSystem = await (0, __1.getSapSystem)(system.url, system.client);
|
|
48801
48821
|
let isNewSapSystem = false;
|
|
48802
48822
|
const creds = {
|
|
48803
48823
|
username: (_a2 = system.credentials) == null ? void 0 : _a2.systemUsername,
|
|
@@ -48810,7 +48830,7 @@ var require_utils7 = __commonJS({
|
|
|
48810
48830
|
sapSystem.setUserDisplayName(creds.username);
|
|
48811
48831
|
}
|
|
48812
48832
|
} else {
|
|
48813
|
-
sapSystem = __1.newSapSystem(system.name || "", system.url, system.client, creds, true);
|
|
48833
|
+
sapSystem = (0, __1.newSapSystem)(system.name || "", system.url, system.client, creds, true);
|
|
48814
48834
|
isNewSapSystem = true;
|
|
48815
48835
|
}
|
|
48816
48836
|
return { sapSystem, isNewSapSystem };
|
|
@@ -48820,13 +48840,13 @@ var require_utils7 = __commonJS({
|
|
|
48820
48840
|
let sapSystem;
|
|
48821
48841
|
let isNewSapSystem = false;
|
|
48822
48842
|
if (system.url && system.credentials === savedSapSystemServiceKey) {
|
|
48823
|
-
sapSystem = await __1.getSapSystem(system.url, system.client);
|
|
48843
|
+
sapSystem = await (0, __1.getSapSystem)(system.url, system.client);
|
|
48824
48844
|
}
|
|
48825
48845
|
if (sapSystem) {
|
|
48826
48846
|
sapSystem.name = system.name || "";
|
|
48827
48847
|
} else {
|
|
48828
|
-
const newBTPSapSystem = __1.newSapSystemForSteampunk(system.name || "", system.credentials, true);
|
|
48829
|
-
sapSystem = await __1.getSapSystem(newBTPSapSystem.url, newBTPSapSystem.client);
|
|
48848
|
+
const newBTPSapSystem = (0, __1.newSapSystemForSteampunk)(system.name || "", system.credentials, true);
|
|
48849
|
+
sapSystem = await (0, __1.getSapSystem)(newBTPSapSystem.url, newBTPSapSystem.client);
|
|
48830
48850
|
if (!sapSystem) {
|
|
48831
48851
|
isNewSapSystem = true;
|
|
48832
48852
|
sapSystem = newBTPSapSystem;
|
|
@@ -48840,7 +48860,7 @@ var require_utils7 = __commonJS({
|
|
|
48840
48860
|
return false;
|
|
48841
48861
|
}
|
|
48842
48862
|
let isValid = true;
|
|
48843
|
-
const isNameInUse = await __1.isSystemNameInUse(newName);
|
|
48863
|
+
const isNameInUse = await (0, __1.isSystemNameInUse)(newName);
|
|
48844
48864
|
if (isNameInUse && newName !== savedSystemName) {
|
|
48845
48865
|
isValid = false;
|
|
48846
48866
|
}
|
|
@@ -48969,7 +48989,7 @@ var require_oDataClient = __commonJS({
|
|
|
48969
48989
|
}
|
|
48970
48990
|
initDebugLogger() {
|
|
48971
48991
|
if (!ODataClient.hasAxiosDebugLoggerConfig) {
|
|
48972
|
-
axios_debug_log_1.default({
|
|
48992
|
+
(0, axios_debug_log_1.default)({
|
|
48973
48993
|
request: (debug2, req) => {
|
|
48974
48994
|
var _a2;
|
|
48975
48995
|
debug2(`${(_a2 = req.method) == null ? void 0 : _a2.toUpperCase()} ${this.buildFullUrl(req)}`);
|
|
@@ -48992,7 +49012,7 @@ var require_oDataClient = __commonJS({
|
|
|
48992
49012
|
return reqConfig.baseURL ? `${reqConfig.baseURL}${reqConfig.url}` : `${reqConfig.url}`;
|
|
48993
49013
|
}
|
|
48994
49014
|
validateSysAuthType(system, credentials) {
|
|
48995
|
-
system.authenticationType = system.authenticationType || utils_1.guessAuthType({ credentials, fallback: true });
|
|
49015
|
+
system.authenticationType = system.authenticationType || (0, utils_1.guessAuthType)({ credentials, fallback: true });
|
|
48996
49016
|
if (!Object.values(config_1.AuthenticationType).includes(system.authenticationType)) {
|
|
48997
49017
|
throw new error_1.UnknownSystemAuthenticationType(system.authenticationType);
|
|
48998
49018
|
}
|
|
@@ -49000,15 +49020,15 @@ var require_oDataClient = __commonJS({
|
|
|
49000
49020
|
logError(e, logData) {
|
|
49001
49021
|
this.log.error(e.message);
|
|
49002
49022
|
if (e.isAxiosError && e.response.data["error"]) {
|
|
49003
|
-
message_1.prettyPrintError(e.response.data["error"], this.log, logData);
|
|
49023
|
+
(0, message_1.prettyPrintError)(e.response.data["error"], this.log, logData);
|
|
49004
49024
|
}
|
|
49005
49025
|
}
|
|
49006
49026
|
async getClient() {
|
|
49007
49027
|
if (!this.client) {
|
|
49008
|
-
if (ux_common_utils_1.isAppStudio()) {
|
|
49009
|
-
await destination_1.updateSystemConfig(this.system);
|
|
49028
|
+
if ((0, ux_common_utils_1.isAppStudio)()) {
|
|
49029
|
+
await (0, destination_1.updateSystemConfig)(this.system);
|
|
49010
49030
|
}
|
|
49011
|
-
const { connection, httpClient } = await httpClient_1.newHttpClient({
|
|
49031
|
+
const { connection, httpClient } = await (0, httpClient_1.newHttpClient)({
|
|
49012
49032
|
system: this.system,
|
|
49013
49033
|
credentials: this.credentials,
|
|
49014
49034
|
log: this.log,
|
|
@@ -49036,7 +49056,7 @@ var require_oDataClient = __commonJS({
|
|
|
49036
49056
|
const metadataPath = ((_a2 = this.system.service) == null ? void 0 : _a2.endsWith("/")) ? "$metadata" : "/$metadata";
|
|
49037
49057
|
const edmx = await this.get(metadataPath, { Accept: "application/xml" });
|
|
49038
49058
|
try {
|
|
49039
|
-
return filterReferenceUriInEdmx ? ux_common_utils_1.filterReferenceUri(edmx) : edmx;
|
|
49059
|
+
return filterReferenceUriInEdmx ? (0, ux_common_utils_1.filterReferenceUri)(edmx) : edmx;
|
|
49040
49060
|
} catch {
|
|
49041
49061
|
return edmx;
|
|
49042
49062
|
}
|
|
@@ -49132,12 +49152,12 @@ var require_ui5AbapRepository = __commonJS({
|
|
|
49132
49152
|
if ((_a2 = response == null ? void 0 : response.headers) == null ? void 0 : _a2["sap-message"]) {
|
|
49133
49153
|
const message = JSON.parse(response.headers["sap-message"]);
|
|
49134
49154
|
message["longtextUrl"] = message["longtext_url"];
|
|
49135
|
-
message_1.prettyPrintMessage(message, this.log, { frontendUrl });
|
|
49155
|
+
(0, message_1.prettyPrintMessage)(message, this.log, { frontendUrl });
|
|
49136
49156
|
const path3 = "/sap/bc/ui5_ui5" + (!app.name.startsWith("/") ? "/sap/" : "") + app.name.toLowerCase();
|
|
49137
49157
|
const query = this.system.client ? "?sap-client=" + this.system.client : "";
|
|
49138
49158
|
this.log.info(`App available at ${frontendUrl}${path3}${query}`);
|
|
49139
49159
|
} else if (testMode) {
|
|
49140
|
-
message_1.printErrorDetails((_c = (_b = response == null ? void 0 : response.data.error) == null ? void 0 : _b.innererror) == null ? void 0 : _c.errordetails, this.log, {
|
|
49160
|
+
(0, message_1.printErrorDetails)((_c = (_b = response == null ? void 0 : response.data.error) == null ? void 0 : _b.innererror) == null ? void 0 : _c.errordetails, this.log, {
|
|
49141
49161
|
frontendUrl
|
|
49142
49162
|
});
|
|
49143
49163
|
}
|
|
@@ -49155,7 +49175,7 @@ var require_ui5AbapRepository = __commonJS({
|
|
|
49155
49175
|
const response = await this.deleteRepoRequest(app.name, httpClient, config2);
|
|
49156
49176
|
if ((_a2 = response == null ? void 0 : response.headers) == null ? void 0 : _a2["sap-message"]) {
|
|
49157
49177
|
const message = JSON.parse(response.headers["sap-message"]);
|
|
49158
|
-
message_1.prettyPrintMessage(message, this.log);
|
|
49178
|
+
(0, message_1.prettyPrintMessage)(message, this.log);
|
|
49159
49179
|
}
|
|
49160
49180
|
return response;
|
|
49161
49181
|
} catch (error3) {
|
|
@@ -49190,7 +49210,7 @@ var require_ui5AbapRepository = __commonJS({
|
|
|
49190
49210
|
return { headers, params, maxBodyLength, maxContentLength };
|
|
49191
49211
|
}
|
|
49192
49212
|
createPayload(archive, name, description, abapPackage, httpClient) {
|
|
49193
|
-
const base64Data = fs_1.readFileSync(archive, { encoding: "base64" });
|
|
49213
|
+
const base64Data = (0, fs_1.readFileSync)(archive, { encoding: "base64" });
|
|
49194
49214
|
const time = new Date().toISOString();
|
|
49195
49215
|
const escapedName = encodeXmlValue(name);
|
|
49196
49216
|
return `<entry xmlns="http://www.w3.org/2005/Atom" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xml:base="${httpClient.defaults.baseURL}"> <id>${httpClient.defaults.baseURL}/Repositories('${escapedName}')</id> <title type="text">Repositories('${escapedName}')</title> <updated>${time}</updated> <category term="/UI5/ABAP_REPOSITORY_SRV.Repository" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/> <link href="Repositories('${escapedName}')" rel="edit" title="Repository"/> <content type="application/xml"> <m:properties> <d:Name>${escapedName}</d:Name> <d:Package>${abapPackage == null ? void 0 : abapPackage.toUpperCase()}</d:Package> <d:Description>${encodeXmlValue(description)}</d:Description> <d:ZipArchive>${base64Data}</d:ZipArchive> <d:Info/> </m:properties> </content></entry>`;
|
|
@@ -49313,7 +49333,7 @@ var require_atoCatalog = __commonJS({
|
|
|
49313
49333
|
return this.getAtoData(atoDataXml);
|
|
49314
49334
|
}
|
|
49315
49335
|
static getAtoData(atoDataXml) {
|
|
49316
|
-
const atoData = utils_1.xmlToJson(atoDataXml);
|
|
49336
|
+
const atoData = (0, utils_1.xmlToJson)(atoDataXml);
|
|
49317
49337
|
const settings = atoData == null ? void 0 : atoData["settings"];
|
|
49318
49338
|
if (!settings) {
|
|
49319
49339
|
throw new Error("ATO settings unavailable");
|
|
@@ -49360,7 +49380,7 @@ var require_v2Catalog = __commonJS({
|
|
|
49360
49380
|
constructor({ system, credentials = void 0, log: log3 = console, connection = void 0, postConnectionCallback }) {
|
|
49361
49381
|
var _a2, _b;
|
|
49362
49382
|
if ((credentials == null ? void 0 : credentials.serviceKeys) || (credentials == null ? void 0 : credentials.serviceKeysContents)) {
|
|
49363
|
-
const serviceInfo = uaaOauth_1.getServiceInfo(credentials);
|
|
49383
|
+
const serviceInfo = (0, uaaOauth_1.getServiceInfo)(credentials);
|
|
49364
49384
|
credentials.serviceInfo = serviceInfo;
|
|
49365
49385
|
system.url = serviceInfo.url;
|
|
49366
49386
|
if ((_b = (_a2 = serviceInfo.catalogs) == null ? void 0 : _a2.abap) == null ? void 0 : _b.path) {
|
|
@@ -49372,13 +49392,14 @@ var require_v2Catalog = __commonJS({
|
|
|
49372
49392
|
super({ system, credentials, log: log3, connection, postConnectionCallback });
|
|
49373
49393
|
}
|
|
49374
49394
|
async listServices(recommended = false) {
|
|
49395
|
+
let services;
|
|
49375
49396
|
if (recommended) {
|
|
49376
|
-
|
|
49397
|
+
services = await this.get(common_1.V2_RECOMMENDED_SERVICES_PATH);
|
|
49377
49398
|
} else {
|
|
49378
49399
|
let isS4C = false;
|
|
49379
49400
|
try {
|
|
49380
49401
|
await this.getConnection();
|
|
49381
|
-
isS4C = utils_1.isS4HanaCloudSystem(await atoCatalog_1.AtoCatalog.getATOData({
|
|
49402
|
+
isS4C = (0, utils_1.isS4HanaCloudSystem)(await atoCatalog_1.AtoCatalog.getATOData({
|
|
49382
49403
|
system: this.system,
|
|
49383
49404
|
connection: this.connection,
|
|
49384
49405
|
log: this.log,
|
|
@@ -49386,8 +49407,12 @@ var require_v2Catalog = __commonJS({
|
|
|
49386
49407
|
}));
|
|
49387
49408
|
} catch (error3) {
|
|
49388
49409
|
}
|
|
49389
|
-
|
|
49410
|
+
services = await this.get(isS4C ? common_1.V2_SERVICES_PATH + common_1.V2_ODATA_CATALOG_FILTER_FOR_S4_HANA_SERVICES : common_1.V2_SERVICES_PATH);
|
|
49411
|
+
}
|
|
49412
|
+
if (!Array.isArray(services)) {
|
|
49413
|
+
throw new Error("Error parsing service list");
|
|
49390
49414
|
}
|
|
49415
|
+
return services;
|
|
49391
49416
|
}
|
|
49392
49417
|
async findService({ title, path: path3 }) {
|
|
49393
49418
|
if (!title) {
|
|
@@ -49465,7 +49490,7 @@ var require_v4Catalog = __commonJS({
|
|
|
49465
49490
|
var V4Catalog = class extends common_1.Catalog {
|
|
49466
49491
|
constructor({ system, credentials = void 0, log: log3 = console, connection = void 0, postConnectionCallback }) {
|
|
49467
49492
|
if ((credentials == null ? void 0 : credentials.serviceKeys) || (credentials == null ? void 0 : credentials.serviceKeysContents)) {
|
|
49468
|
-
const serviceInfo = uaaOauth_1.getServiceInfo(credentials);
|
|
49493
|
+
const serviceInfo = (0, uaaOauth_1.getServiceInfo)(credentials);
|
|
49469
49494
|
credentials.serviceInfo = serviceInfo;
|
|
49470
49495
|
system.url = serviceInfo.url;
|
|
49471
49496
|
}
|
|
@@ -49489,6 +49514,9 @@ var require_v4Catalog = __commonJS({
|
|
|
49489
49514
|
const servicePath = recommended ? common_1.V4_RECOMMENDED_SERVICES_PATH_PROD : common_1.V4_SERVICES_PATH_PROD;
|
|
49490
49515
|
this.services = [];
|
|
49491
49516
|
const respValues = await this.get(`${servicePath}&${common_1.ODATA_COUNT_QUERY}`);
|
|
49517
|
+
if (!Array.isArray(respValues.value)) {
|
|
49518
|
+
throw new Error("Error parsing service list");
|
|
49519
|
+
}
|
|
49492
49520
|
this.services = this.services.concat(this.parseServiceData(respValues.value, recommended));
|
|
49493
49521
|
if (respValues["@odata.nextLink"]) {
|
|
49494
49522
|
let skipval = parseInt((_a2 = respValues["@odata.nextLink"]) == null ? void 0 : _a2.split("skiptoken=")[1]);
|
|
@@ -49516,9 +49544,13 @@ var require_catalog = __commonJS({
|
|
|
49516
49544
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
49517
49545
|
if (k2 === void 0)
|
|
49518
49546
|
k2 = k;
|
|
49519
|
-
Object.
|
|
49520
|
-
|
|
49521
|
-
|
|
49547
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
49548
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
49549
|
+
desc = { enumerable: true, get: function() {
|
|
49550
|
+
return m[k];
|
|
49551
|
+
} };
|
|
49552
|
+
}
|
|
49553
|
+
Object.defineProperty(o, k2, desc);
|
|
49522
49554
|
} : function(o, m, k, k2) {
|
|
49523
49555
|
if (k2 === void 0)
|
|
49524
49556
|
k2 = k;
|
|
@@ -49551,9 +49583,13 @@ var require_client = __commonJS({
|
|
|
49551
49583
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
49552
49584
|
if (k2 === void 0)
|
|
49553
49585
|
k2 = k;
|
|
49554
|
-
Object.
|
|
49555
|
-
|
|
49556
|
-
|
|
49586
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
49587
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
49588
|
+
desc = { enumerable: true, get: function() {
|
|
49589
|
+
return m[k];
|
|
49590
|
+
} };
|
|
49591
|
+
}
|
|
49592
|
+
Object.defineProperty(o, k2, desc);
|
|
49557
49593
|
} : function(o, m, k, k2) {
|
|
49558
49594
|
if (k2 === void 0)
|
|
49559
49595
|
k2 = k;
|
|
@@ -49583,7 +49619,7 @@ var require_api_hub = __commonJS({
|
|
|
49583
49619
|
var ux_store_1 = require_dist4();
|
|
49584
49620
|
var constants_1 = require_constants2();
|
|
49585
49621
|
async function getApiHubApiKey(log3 = console) {
|
|
49586
|
-
const keyStore = ux_store_1.getSecureStore(log3);
|
|
49622
|
+
const keyStore = (0, ux_store_1.getSecureStore)(log3);
|
|
49587
49623
|
const apiHubServiceName = config_1.ServiceName.ApiHub;
|
|
49588
49624
|
const apiHubApiKey = await keyStore.retrieve(apiHubServiceName, constants_1.API_HUB_API_KEY);
|
|
49589
49625
|
if (apiHubApiKey) {
|
|
@@ -49593,7 +49629,7 @@ var require_api_hub = __commonJS({
|
|
|
49593
49629
|
}
|
|
49594
49630
|
exports2.getApiHubApiKey = getApiHubApiKey;
|
|
49595
49631
|
async function saveApiHubApiKey(val, log3 = console) {
|
|
49596
|
-
const keyStore = ux_store_1.getSecureStore(log3);
|
|
49632
|
+
const keyStore = (0, ux_store_1.getSecureStore)(log3);
|
|
49597
49633
|
const apiHubServiceName = config_1.ServiceName.ApiHub;
|
|
49598
49634
|
const existingKey = await getApiHubApiKey(log3);
|
|
49599
49635
|
if (existingKey !== void 0) {
|
|
@@ -49633,19 +49669,6 @@ var require_sapSystem = __commonJS({
|
|
|
49633
49669
|
var types_1 = require_types3();
|
|
49634
49670
|
var NEW_SCP_SUFFIX = " (BTP)";
|
|
49635
49671
|
var SapSystem2 = class {
|
|
49636
|
-
constructor(name, config2, credentials = {}, userDisplayName, unSaved = false, postConnectionCallbackCreator) {
|
|
49637
|
-
this.config = config2;
|
|
49638
|
-
this.credentials = credentials;
|
|
49639
|
-
this._unSaved = false;
|
|
49640
|
-
this.postConnectionCallbackInitialized = false;
|
|
49641
|
-
this._name = name;
|
|
49642
|
-
if (this.config.scp === void 0) {
|
|
49643
|
-
this.config.scp = !!(credentials == null ? void 0 : credentials.serviceKeysContents) || !!(credentials == null ? void 0 : credentials.serviceKeys);
|
|
49644
|
-
}
|
|
49645
|
-
this._unSaved = unSaved;
|
|
49646
|
-
this._userDisplayName = userDisplayName;
|
|
49647
|
-
this._postConnectionCallbackCreator = postConnectionCallbackCreator;
|
|
49648
|
-
}
|
|
49649
49672
|
postConnectionCallback() {
|
|
49650
49673
|
var _a2;
|
|
49651
49674
|
if (!this.postConnectionCallbackInitialized) {
|
|
@@ -49661,9 +49684,22 @@ var require_sapSystem = __commonJS({
|
|
|
49661
49684
|
password: s.password,
|
|
49662
49685
|
refreshToken: s.refreshToken
|
|
49663
49686
|
} : void 0;
|
|
49664
|
-
const authenticationType = Object.values(ux_store_1.AuthenticationType).find((v) => v === s.authenticationType) || __1.guessAuthType({ credentials, fallback: false });
|
|
49687
|
+
const authenticationType = Object.values(ux_store_1.AuthenticationType).find((v) => v === s.authenticationType) || (0, __1.guessAuthType)({ credentials, fallback: false });
|
|
49665
49688
|
return new SapSystem2(s.name, { url: s.url, client: s.client, authenticationType }, credentials, s.userDisplayName, void 0, void 0);
|
|
49666
49689
|
}
|
|
49690
|
+
constructor(name, config2, credentials = {}, userDisplayName, unSaved = false, postConnectionCallbackCreator) {
|
|
49691
|
+
this.config = config2;
|
|
49692
|
+
this.credentials = credentials;
|
|
49693
|
+
this._unSaved = false;
|
|
49694
|
+
this.postConnectionCallbackInitialized = false;
|
|
49695
|
+
this._name = name;
|
|
49696
|
+
if (this.config.scp === void 0) {
|
|
49697
|
+
this.config.scp = !!(credentials == null ? void 0 : credentials.serviceKeysContents) || !!(credentials == null ? void 0 : credentials.serviceKeys);
|
|
49698
|
+
}
|
|
49699
|
+
this._unSaved = unSaved;
|
|
49700
|
+
this._userDisplayName = userDisplayName;
|
|
49701
|
+
this._postConnectionCallbackCreator = postConnectionCallbackCreator;
|
|
49702
|
+
}
|
|
49667
49703
|
getConnection() {
|
|
49668
49704
|
return this.connection;
|
|
49669
49705
|
}
|
|
@@ -49752,7 +49788,7 @@ var require_sapSystem = __commonJS({
|
|
|
49752
49788
|
}
|
|
49753
49789
|
addS4HCSuffix(name) {
|
|
49754
49790
|
const S4HC_SUFFIX = " (S4HC)";
|
|
49755
|
-
return (name == null ? void 0 : name.trim().match(`${ux_common_utils_1.escapeRegExp(S4HC_SUFFIX)}$`)) ? name : name + S4HC_SUFFIX;
|
|
49791
|
+
return (name == null ? void 0 : name.trim().match(`${(0, ux_common_utils_1.escapeRegExp)(S4HC_SUFFIX)}$`)) ? name : name + S4HC_SUFFIX;
|
|
49756
49792
|
}
|
|
49757
49793
|
get bareName() {
|
|
49758
49794
|
return stripOldSCPSuffix(this.name);
|
|
@@ -49761,19 +49797,19 @@ var require_sapSystem = __commonJS({
|
|
|
49761
49797
|
return this.config.scp;
|
|
49762
49798
|
}
|
|
49763
49799
|
isPartialUrlDest() {
|
|
49764
|
-
return !config_1.hasDestinationAttrib("WebIDEAdditionalData", config_1.DestinationAttributeProperty.FULL_URL, this.config.destinationAttributes) && this.isGenericODataDest();
|
|
49800
|
+
return !(0, config_1.hasDestinationAttrib)("WebIDEAdditionalData", config_1.DestinationAttributeProperty.FULL_URL, this.config.destinationAttributes) && this.isGenericODataDest();
|
|
49765
49801
|
}
|
|
49766
49802
|
isGenericODataDest() {
|
|
49767
|
-
return this.config.destination ? config_1.hasDestinationAttrib("WebIDEUsage", config_1.DestinationAttributeProperty.ODATA_GENERIC, this.config.destinationAttributes) && !config_1.hasDestinationAttrib("WebIDEUsage", config_1.DestinationAttributeProperty.ODATA_ABAP, this.config.destinationAttributes) : false;
|
|
49803
|
+
return this.config.destination ? (0, config_1.hasDestinationAttrib)("WebIDEUsage", config_1.DestinationAttributeProperty.ODATA_GENERIC, this.config.destinationAttributes) && !(0, config_1.hasDestinationAttrib)("WebIDEUsage", config_1.DestinationAttributeProperty.ODATA_ABAP, this.config.destinationAttributes) : false;
|
|
49768
49804
|
}
|
|
49769
49805
|
isFullUrlDest() {
|
|
49770
|
-
return this.config.destination ? config_1.hasDestinationAttrib("WebIDEAdditionalData", config_1.DestinationAttributeProperty.FULL_URL, this.config.destinationAttributes) && this.isGenericODataDest() : false;
|
|
49806
|
+
return this.config.destination ? (0, config_1.hasDestinationAttrib)("WebIDEAdditionalData", config_1.DestinationAttributeProperty.FULL_URL, this.config.destinationAttributes) && this.isGenericODataDest() : false;
|
|
49771
49807
|
}
|
|
49772
49808
|
isAbapCatalogDest() {
|
|
49773
|
-
return this.config.destination ? config_1.hasDestinationAttrib("WebIDEUsage", config_1.DestinationAttributeProperty.ODATA_ABAP, this.config.destinationAttributes) && !this.isFullUrlDest() : false;
|
|
49809
|
+
return this.config.destination ? (0, config_1.hasDestinationAttrib)("WebIDEUsage", config_1.DestinationAttributeProperty.ODATA_ABAP, this.config.destinationAttributes) && !this.isFullUrlDest() : false;
|
|
49774
49810
|
}
|
|
49775
49811
|
isHTML5DynamicDestination() {
|
|
49776
|
-
return this.config.destination ? config_1.hasHTML5DynamicDestinationAttrib(this.config.destinationAttributes) : false;
|
|
49812
|
+
return this.config.destination ? (0, config_1.hasHTML5DynamicDestinationAttrib)(this.config.destinationAttributes) : false;
|
|
49777
49813
|
}
|
|
49778
49814
|
toString() {
|
|
49779
49815
|
var _a2;
|
|
@@ -49831,14 +49867,14 @@ var require_sapSystem = __commonJS({
|
|
|
49831
49867
|
async getCatalog(odataVersion) {
|
|
49832
49868
|
const system = deepClone(this.config);
|
|
49833
49869
|
if (this.connection) {
|
|
49834
|
-
return client_1.getCatalog({
|
|
49870
|
+
return (0, client_1.getCatalog)({
|
|
49835
49871
|
system,
|
|
49836
49872
|
connection: this.connection,
|
|
49837
49873
|
odataVersion,
|
|
49838
49874
|
postConnectionCallback: this.postConnectionCallback()
|
|
49839
49875
|
});
|
|
49840
49876
|
} else {
|
|
49841
|
-
const catalog = client_1.getCatalog({
|
|
49877
|
+
const catalog = (0, client_1.getCatalog)({
|
|
49842
49878
|
system,
|
|
49843
49879
|
credentials: this.credentials,
|
|
49844
49880
|
odataVersion,
|
|
@@ -49889,7 +49925,7 @@ var require_sapSystem = __commonJS({
|
|
|
49889
49925
|
exports2.SapSystem = SapSystem2;
|
|
49890
49926
|
function toSCPSystemName(systemName) {
|
|
49891
49927
|
const s = systemName.trim();
|
|
49892
|
-
return s.match(`${ux_common_utils_1.escapeRegExp(NEW_SCP_SUFFIX)}$`) ? s : s + NEW_SCP_SUFFIX;
|
|
49928
|
+
return s.match(`${(0, ux_common_utils_1.escapeRegExp)(NEW_SCP_SUFFIX)}$`) ? s : s + NEW_SCP_SUFFIX;
|
|
49893
49929
|
}
|
|
49894
49930
|
function stripOldSCPSuffix(name) {
|
|
49895
49931
|
return name.trim().replace(/ \(SCP\)$/, "");
|
|
@@ -49915,7 +49951,7 @@ var require_systemStore = __commonJS({
|
|
|
49915
49951
|
this.storeService = storeService;
|
|
49916
49952
|
}
|
|
49917
49953
|
static async createInstance(logger) {
|
|
49918
|
-
const storeService = await ux_store_1.getService({ logger, entityName: "system" });
|
|
49954
|
+
const storeService = await (0, ux_store_1.getService)({ logger, entityName: "system" });
|
|
49919
49955
|
return new DefaultImplementation(storeService, logger);
|
|
49920
49956
|
}
|
|
49921
49957
|
async getAll() {
|
|
@@ -49977,9 +50013,9 @@ var require_system = __commonJS({
|
|
|
49977
50013
|
var url_1 = require("url");
|
|
49978
50014
|
var __1 = require_dist5();
|
|
49979
50015
|
async function listSAPSystems() {
|
|
49980
|
-
if (ux_common_utils_1.isAppStudio()) {
|
|
50016
|
+
if ((0, ux_common_utils_1.isAppStudio)()) {
|
|
49981
50017
|
const systems = {};
|
|
49982
|
-
const destinations = await connection_1.listDestinations();
|
|
50018
|
+
const destinations = await (0, connection_1.listDestinations)();
|
|
49983
50019
|
Object.values(destinations).sort((a, b) => a.Name.localeCompare(b.Name, void 0, { numeric: true, caseFirst: "lower" })).forEach((destination) => {
|
|
49984
50020
|
var _a2, _b;
|
|
49985
50021
|
systems[destination.Name] = new sapSystem_1.SapSystem(destination.Name, {
|
|
@@ -49993,7 +50029,7 @@ var require_system = __commonJS({
|
|
|
49993
50029
|
});
|
|
49994
50030
|
return systems;
|
|
49995
50031
|
} else {
|
|
49996
|
-
const store = await systemStore_1.getSystemStore();
|
|
50032
|
+
const store = await (0, systemStore_1.getSystemStore)();
|
|
49997
50033
|
return postGetAll({ systems: await store.getAll(), store });
|
|
49998
50034
|
}
|
|
49999
50035
|
}
|
|
@@ -50025,7 +50061,7 @@ var require_system = __commonJS({
|
|
|
50025
50061
|
update: { userDisplayName: sys.userDisplayName }
|
|
50026
50062
|
}));
|
|
50027
50063
|
}
|
|
50028
|
-
await ux_common_utils_1.allSettled(updates);
|
|
50064
|
+
await (0, ux_common_utils_1.allSettled)(updates);
|
|
50029
50065
|
resolve();
|
|
50030
50066
|
}, 0));
|
|
50031
50067
|
}
|
|
@@ -50052,7 +50088,7 @@ var require_system = __commonJS({
|
|
|
50052
50088
|
const update = {};
|
|
50053
50089
|
!!user && (update.userDisplayName = user);
|
|
50054
50090
|
!!refreshToken && (update.refreshToken = refreshToken);
|
|
50055
|
-
return (await systemStore_1.getSystemStore()).partialUpdate({
|
|
50091
|
+
return (await (0, systemStore_1.getSystemStore)()).partialUpdate({
|
|
50056
50092
|
url: system.url,
|
|
50057
50093
|
client: system.client,
|
|
50058
50094
|
update
|
|
@@ -50064,16 +50100,16 @@ var require_system = __commonJS({
|
|
|
50064
50100
|
return cb;
|
|
50065
50101
|
}
|
|
50066
50102
|
async function isSystemNameInUse(name) {
|
|
50067
|
-
const systems = await (await systemStore_1.getSystemStore()).getAll();
|
|
50103
|
+
const systems = await (await (0, systemStore_1.getSystemStore)()).getAll();
|
|
50068
50104
|
const sys = name.trim();
|
|
50069
|
-
return Object.values(systems).findIndex((system) => system.name === sys || system.bareName === sapSystem_1.stripOldSCPSuffix(sys)) !== -1;
|
|
50105
|
+
return Object.values(systems).findIndex((system) => system.name === sys || system.bareName === (0, sapSystem_1.stripOldSCPSuffix)(sys)) !== -1;
|
|
50070
50106
|
}
|
|
50071
50107
|
exports2.isSystemNameInUse = isSystemNameInUse;
|
|
50072
50108
|
async function getSapSystem2(url, client) {
|
|
50073
|
-
if (ux_common_utils_1.isAppStudio()) {
|
|
50109
|
+
if ((0, ux_common_utils_1.isAppStudio)()) {
|
|
50074
50110
|
throw Error("Not supported in AppStudio.");
|
|
50075
50111
|
} else {
|
|
50076
|
-
return (await systemStore_1.getSystemStore()).get(url, client);
|
|
50112
|
+
return (await (0, systemStore_1.getSystemStore)()).get(url, client);
|
|
50077
50113
|
}
|
|
50078
50114
|
}
|
|
50079
50115
|
exports2.getSapSystem = getSapSystem2;
|
|
@@ -50109,12 +50145,12 @@ var require_system = __commonJS({
|
|
|
50109
50145
|
}
|
|
50110
50146
|
exports2.newSapSystemForDestinaton = newSapSystemForDestinaton;
|
|
50111
50147
|
async function saveSapSystem(system) {
|
|
50112
|
-
const store = await systemStore_1.getSystemStore();
|
|
50148
|
+
const store = await (0, systemStore_1.getSystemStore)();
|
|
50113
50149
|
await store.save(system);
|
|
50114
50150
|
}
|
|
50115
50151
|
exports2.saveSapSystem = saveSapSystem;
|
|
50116
50152
|
async function deleteSapSystem(system) {
|
|
50117
|
-
const store = await systemStore_1.getSystemStore();
|
|
50153
|
+
const store = await (0, systemStore_1.getSystemStore)();
|
|
50118
50154
|
return store.delete(system);
|
|
50119
50155
|
}
|
|
50120
50156
|
exports2.deleteSapSystem = deleteSapSystem;
|
|
@@ -50128,9 +50164,13 @@ var require_dist5 = __commonJS({
|
|
|
50128
50164
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
50129
50165
|
if (k2 === void 0)
|
|
50130
50166
|
k2 = k;
|
|
50131
|
-
Object.
|
|
50132
|
-
|
|
50133
|
-
|
|
50167
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
50168
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
50169
|
+
desc = { enumerable: true, get: function() {
|
|
50170
|
+
return m[k];
|
|
50171
|
+
} };
|
|
50172
|
+
}
|
|
50173
|
+
Object.defineProperty(o, k2, desc);
|
|
50134
50174
|
} : function(o, m, k, k2) {
|
|
50135
50175
|
if (k2 === void 0)
|
|
50136
50176
|
k2 = k;
|
|
@@ -50581,9 +50621,13 @@ var require_controls = __commonJS({
|
|
|
50581
50621
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
50582
50622
|
if (k2 === void 0)
|
|
50583
50623
|
k2 = k;
|
|
50584
|
-
Object.
|
|
50585
|
-
|
|
50586
|
-
|
|
50624
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
50625
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
50626
|
+
desc = { enumerable: true, get: function() {
|
|
50627
|
+
return m[k];
|
|
50628
|
+
} };
|
|
50629
|
+
}
|
|
50630
|
+
Object.defineProperty(o, k2, desc);
|
|
50587
50631
|
} : function(o, m, k, k2) {
|
|
50588
50632
|
if (k2 === void 0)
|
|
50589
50633
|
k2 = k;
|
|
@@ -50603,21 +50647,374 @@ var require_controls = __commonJS({
|
|
|
50603
50647
|
}
|
|
50604
50648
|
});
|
|
50605
50649
|
|
|
50650
|
+
// ../../node_modules/@sap/ux-specification-types/dist/common.js
|
|
50651
|
+
var require_common7 = __commonJS({
|
|
50652
|
+
"../../node_modules/@sap/ux-specification-types/dist/common.js"(exports2, module2) {
|
|
50653
|
+
var P = Object.defineProperty;
|
|
50654
|
+
var Ye = Object.getOwnPropertyDescriptor;
|
|
50655
|
+
var Ne = Object.getOwnPropertyNames;
|
|
50656
|
+
var y = Object.getOwnPropertySymbols;
|
|
50657
|
+
var O = Object.prototype.hasOwnProperty;
|
|
50658
|
+
var ze = Object.prototype.propertyIsEnumerable;
|
|
50659
|
+
var V = (c, n, t) => n in c ? P(c, n, { enumerable: true, configurable: true, writable: true, value: t }) : c[n] = t;
|
|
50660
|
+
var d = (c, n) => {
|
|
50661
|
+
for (var t in n || (n = {}))
|
|
50662
|
+
O.call(n, t) && V(c, t, n[t]);
|
|
50663
|
+
if (y)
|
|
50664
|
+
for (var t of y(n))
|
|
50665
|
+
ze.call(n, t) && V(c, t, n[t]);
|
|
50666
|
+
return c;
|
|
50667
|
+
};
|
|
50668
|
+
var qe = (c) => P(c, "__esModule", { value: true });
|
|
50669
|
+
var A = (c, n) => {
|
|
50670
|
+
for (var t in n)
|
|
50671
|
+
P(c, t, { get: n[t], enumerable: true });
|
|
50672
|
+
};
|
|
50673
|
+
var Je = (c, n, t, o) => {
|
|
50674
|
+
if (n && typeof n == "object" || typeof n == "function")
|
|
50675
|
+
for (let p of Ne(n))
|
|
50676
|
+
!O.call(c, p) && (t || p !== "default") && P(c, p, { get: () => n[p], enumerable: !(o = Ye(n, p)) || o.enumerable });
|
|
50677
|
+
return c;
|
|
50678
|
+
};
|
|
50679
|
+
var $e = ((c) => (n, t) => c && c.get(n) || (t = Je(qe({}), n, 1), c && c.set(n, t), t))(typeof WeakMap != "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
50680
|
+
var Ht = {};
|
|
50681
|
+
A(Ht, { ALPViewType: () => I, ActionTitlePrefix: () => tt, ArtifactType: () => w, BindingPropertyRegexAsString: () => ot, ControlType: () => M, CustomExtensionType: () => oe, DATESETTINGSPATH: () => mt, DataSourceType: () => $, DefinitionName: () => W, DirName: () => k, DraftDiscardEnabledSettings: () => N, ExportArtifacts: () => v, FIORI_FCL_ROOT_ID: () => ut, FIORI_FCL_ROOT_VIEW_NAME: () => xt, FRAGMENTNAMEPART: () => bt, FacetBase: () => G, FacetTitlePrefix: () => et, Features: () => ae, FileName: () => B, FioriElementsVersion: () => L, FlexChangeLayer: () => h, FlexibleColumnLayoutAggregations: () => J, FlexibleColumnLayoutType: () => F, GENERICAPPSETTINGS: () => St, LogSeverity: () => ee, LogSeverityLabel: () => At, MANIFESTPATH: () => nt, METADATAPATH: () => at, MacrosPropertyType: () => Y, ManifestSection: () => Z, OdataVersion: () => j, PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP: () => De, PageType: () => Ze, PageTypeV2: () => T, PageTypeV4: () => C, PropertyName: () => X, QUICKVARPATH: () => lt, QUICKVARPATHX: () => gt2, SAPUI5_FRAGMENT_CLASS: () => dt, SAPUI5_VIEW_CLASS: () => Pt, SchemaKeyName: () => K, SchemaTag: () => Q, SchemaType: () => R, SectionType: () => U, StatePreservationMode: () => q, TableColumnVerticalAlignment: () => z, TemplateType: () => te, UIVOCABULARY: () => st, UIVOCABULARYALPHADOT: () => ct, UIVOCABULARYDOT: () => pt, VOCWITHCOLONS: () => rt, VOCWITHSLASH: () => it, ViewTemplateType: () => H, ViewTypes: () => D, Visualization: () => _45, v2: () => f, v4: () => E });
|
|
50682
|
+
var T = ((i) => (i.ObjectPage = "ObjectPage", i.ListReport = "ListReport", i.OverviewPage = "OverviewPage", i.CustomPage = "CustomPage", i.AnalyticalListPage = "AnalyticalListPage", i))(T || {});
|
|
50683
|
+
var C = ((i) => (i.ObjectPage = "ObjectPage", i.ListReport = "ListReport", i.CustomPage = "CustomPage", i.FPMCustomPage = "FPMCustomPage", i.AnalyticalListPage = "AnalyticalListPage", i))(C || {});
|
|
50684
|
+
var Ze = d(d({}, T), C);
|
|
50685
|
+
var De = /* @__PURE__ */ new Map([["ListReport", "sap.suite.ui.generic.template.ListReport.view.ListReport"], ["AnalyticalListPage", "sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"], ["ObjectPage", "sap.suite.ui.generic.template.ObjectPage.view.Details"]]);
|
|
50686
|
+
var L = ((t) => (t.v2 = "v2", t.v4 = "v4", t))(L || {});
|
|
50687
|
+
var j = ((t) => (t.v2 = "v2", t.v4 = "v4", t))(j || {});
|
|
50688
|
+
var F = ((m) => (m.OneColumn = "OneColumn", m.TwoColumnsBeginExpanded = "TwoColumnsBeginExpanded", m.TwoColumnsMidExpanded = "TwoColumnsMidExpanded", m.MidColumnFullScreen = "MidColumnFullScreen", m.ThreeColumnsMidExpanded = "ThreeColumnsMidExpanded", m.ThreeColumnsEndExpanded = "ThreeColumnsEndExpanded", m.ThreeColumnsMidExpandedEndHidden = "ThreeColumnsMidExpandedEndHidden", m.ThreeColumnsBeginExpandedEndHidden = "ThreeColumnsBeginExpandedEndHidden", m.EndColumnFullScreen = "EndColumnFullScreen", m))(F || {});
|
|
50689
|
+
var h = ((t) => (t.Vendor = "VENDOR", t.Customer = "CUSTOMER_BASE", t))(h || {});
|
|
50690
|
+
var R = ((b) => (b.Application = "Application", b.ObjectPage = "ObjectPage", b.ListReport = "ListReport", b.OverviewPage = "OverviewPage", b.AnalyticalListPage = "AnalyticalListPage", b.FreestylePage = "FreestylePage", b.FPMCustomPage = "FPMCustomPage", b.BuildingBlocks = "BuildingBlocks", b))(R || {});
|
|
50691
|
+
var v = ((t) => (t.flex = "flex", t.manifest = "manifest", t))(v || {});
|
|
50692
|
+
var I = ((t) => (t.Primary = "primary", t.Secondary = "secondary", t))(I || {});
|
|
50693
|
+
var U = ((o) => (o.Section = "Section", o.SubSection = "SubSection", o.HeaderSection = "HeaderSection", o))(U || {});
|
|
50694
|
+
var w = ((i) => (i.Manifest = "Manifest", i.FlexChange = "FlexChange", i.Annotation = "Annotation", i.Fragment = "Fragment", i.View = "View", i))(w || {});
|
|
50695
|
+
var M = ((g) => (g.Table = "sap.m.Table", g.TableColumn = "sap.m.Column", g.SmartTable = "sap.ui.comp.smarttable.SmartTable", g.SmartFilterBar = "sap.ui.comp.smartfilterbar.SmartFilterBar", g.SmartChart = "sap.ui.comp.smartchart.SmartChart", g.Group = "sap.ui.comp.smartform.Group", g.GroupElement = "sap.ui.comp.smartform.GroupElement", g.Button = "sap.m.Button", g.ToolbarButton = "sap.m.OverflowToolbarButton", g.Avatar = "sap.f.Avatar", g.ObjectPageDynamicHeaderTitle = "sap.uxap.ObjectPageDynamicHeaderTitle", g.ObjectPageGridProperties = "sap.ui.layout.GridData", g.ObjectPageHeader = "sap.uxap.ObjectPageHeader", g.ObjectPageLayout = "sap.uxap.ObjectPageLayout", g.HeaderAction = "sap.uxap.ObjectPageHeaderActionButton", g.DynamicPage = "sap.f.DynamicPage", g.Form = "sap.ui.layout.form", g.Chart = "sap.suite.ui.microchart", g.Section = "sap.uxap.ObjectPageSection", g.SubSection = "sap.uxap.ObjectPageSubSection", g))(M || {});
|
|
50696
|
+
var _45 = ((t) => (t.LineItem = "LineItem", t.Chart = "Chart", t))(_45 || {});
|
|
50697
|
+
var k = ((r) => (r.Sapux = "src", r.Schemas = ".schemas", r.Pages = "pages", r.Webapp = "webapp", r.Temp = ".tmp", r.Changes = "changes", r.LocalService = "localService", r.Controller = "controller", r.View = "view", r.Fragment = "fragment", r.Ext = "ext", r.VSCode = ".vscode", r))(k || {});
|
|
50698
|
+
var B = ((n) => (n.App = "app.json", n))(B || {});
|
|
50699
|
+
var et = "Facet ID: ";
|
|
50700
|
+
var tt = "Action ID: ";
|
|
50701
|
+
var G = ((S) => (S.LineItem = "LineItem", S.CollectionFacet = "CollectionFacet", S.Chart = "Chart", S.Form = "Form", S.Identification = "Identification", S.DataPoint = "DataPoint", S.Address = "Address", S.Contact = "Contact", S.PresentationVariant = "PresentationVariant", S.Unknown = "", S))(G || {});
|
|
50702
|
+
var ot = "^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$";
|
|
50703
|
+
var H = ((i) => (i.ResponsiveTableColumnsExtension = "ResponsiveTableColumnsExtension", i.AnalyticalTableColumnsExtension = "AnalyticalTableColumnsExtension", i.TreeTableColumnsExtension = "TreeTableColumnsExtension", i.GridTableColumnsExtension = "GridTableColumnsExtension", i.ResponsiveTableCellsExtension = "ResponsiveTableCellsExtension", i))(H || {});
|
|
50704
|
+
var W = ((e) => (e.Action = "Action", e.Actions = "Actions", e.ActionsLR = "Actions<LineItems>", e.ALPChart = "ALPChart", e.ALPChartView = "ALPChartView", e.ALPTable = "ALPTable", e.ALPTableView = "ALPTableView", e.AnalyticalListPageFilterBar = "AnalyticalListPageFilterBar", e.AnnotationPathAsObject = "AnnotationPathAsObject", e.ChartToolBarAction = "ChartToolBarAction", e.CommonHeaderFacetSettings = "CommonHeaderFacetSettings", e.CompactFilters = "CompactFilters", e.CustomFooterActionOP = "CustomFooterActionOP", e.CustomHeaderAction = "CustomHeaderAction", e.CustomHeaderActionOP = "CustomHeaderActionOP", e.CustomFormActionOP = "CustomFormActionOP", e.CustomTableAction = "CustomTableAction", e.CustomTableActionOP = "CustomTableActionOP", e.CustomColumn = "TableCustomColumn", e.CustomColumnOP = "TableCustomColumnOP", e.CustomColumns = "TableCustomColumns", e.CustomSections = "CustomSections", e.FieldPath = "FieldPath", e.Field = "Field", e.Fields = "Fields", e.Fields4Dialog = "Fields4Dialog", e.FilterBar = "FilterBar", e.FilterBarVisualFilters = "FilterBarVisualFilters", e.Footer = "Footer", e.FooterAction = "FooterAction", e.FooterActionV4 = "FooterActionV4", e.FooterActions = "FooterActions", e.FooterActionsLR = "FooterActions<LineItems>", e.Form = "Form", e.FormAction = "FormAction", e.GenericActions = "GenericActions", e.GenericColumnsOP = "GenericColumnsOP", e.GenericFooter = "GenericFooter", e.GenericSections = "GenericSections", e.Header = "Header", e.HeaderActions = "HeaderActions", e.ObjectPageHeaderAction = "ObjectPageHeaderAction", e.ObjectPageHeaderActions = "ObjectPageHeaderActions", e.HeaderSections = "HeaderSections", e.LineItems = "LineItems", e.LineItemsOfView = "LineItemsOfView", e.ListReportFilterBar = "ListReportFilterBar", e.LRTableView = "LRTableView", e.LRChartView = "LRChartView", e.MultiEditV2 = "MultiEdit", e.MultiTableModeV4 = "MultiTableModeV4", e.ObjectPageChart = "ObjectPageChart", e.ObjectPageCustomSectionFragment = "ObjectPageCustomSectionFragment", e.ObjectPageForm = "ObjectPageForm", e.ObjectPageFooter = "ObjectPageFooter", e.ObjectPageFooterAction = "ObjectPageFooterAction", e.ObjectPageFooterActions = "ObjectPageFooterActions", e.ObjectPageHeader = "ObjectPageHeader", e.ObjectPageHeaderSectionForm = "ObjectPageHeaderSectionForm", e.ObjectPageHeaderSectionChart = "ObjectPageHeaderSectionChart", e.ObjectPageHeaderSectionDataPoint = "ObjectPageHeaderSectionDataPoint", e.ObjectPageHeaderSectionContact = "ObjectPageHeaderSectionContact", e.ObjectPageHeaderSectionAddress = "ObjectPageHeaderSectionAddress", e.ObjectPageLayout = "ObjectPageLayout", e.ObjectPagePresentationVariant = "ObjectPagePresentationVariant", e.ObjectPageSectionAddress = "ObjectPageSectionAddress", e.ObjectPageSectionChart = "ObjectPageSectionChart", e.ObjectPageSectionContact = "ObjectPageSectionContact", e.ObjectPageSectionDataPoint = "ObjectPageSectionDataPoint", e.ObjectPageSectionForm = "ObjectPageSectionForm", e.ObjectPageSectionPresentationVariant = "ObjectPageSectionPresentationVariant", e.ObjectPageSectionTableV4 = "ObjectPageSectionTableV4", e.ObjectPageSubSections = "ObjectPageSubSections", e.ObjectPageTable = "ObjectPageTable", e.ObjectPageTableColumn = "ObjectPageTableColumn", e.ObjectPageToolBar = "ObjectPageToolBar", e.ObjectPageToolBarAction = "ObjectPageToolBarAction", e.ObjectPageToolBarActions = "ObjectPageToolBarActions", e.Position = "Position", e.PositionOP = "PositionOP", e.QuickVariant = "QuickVariant", e.QuickVariantSelectionOP = "QuickVariantSelectionOP", e.QuickVariantSelectionV4OP = "QuickVariantSelectionV4OP", e.RelatedFacetKeys = "RelatedFacetKeys", e.Sections = "Sections", e.SectionActions = "SectionActions", e.SelectionFields = "SelectionFields", e.Table = "Table", e.TableSPV = "TableSPV", e.TableColumn = "TableColumn", e.TableViewExtension = "TableViewExtension", e.ToolBarAction = "ToolBarAction", e.ToolBarLR = "ToolBar<LineItems>", e.ToolBar = "ToolBar", e.ViewTableColumn = "ViewTableColumn", e.ViewCustomColumn = "ViewTableCustomColumn", e.ViewCustomAction = "ViewTableCustomAction", e.ViewChartToolBar = "ViewChartToolBar", e.ViewToolBarAction = "ViewToolBarAction", e.ViewPosition = "ViewPosition", e.ViewCustomActionPosition = "ViewCustomActionPosition", e.VisualFilters = "VisualFilters", e.VisualFilter = "VisualFilter", e.CustomActionPosition = "CustomActionPosition", e.CustomActionPositionOP = "CustomActionPositionOP", e.CustomHeaderActionPosition = "CustomHeaderActionPosition", e.CustomHeaderActionPositionOP = "CustomHeaderActionPositionOP", e.CustomFooterActionPositionOP = "CustomFooterActionPositionOP", e))(W || {});
|
|
50705
|
+
var X = ((r) => (r.actions = "actions", r.annotationPath = "annotationPath", r.chart = "chart", r.columns = "columns", r.defaultPath = "defaultPath", r.defaultTemplateAnnotationPath = "defaultTemplateAnnotationPath", r.footer = "footer", r.header = "header", r.sections = "sections", r.table = "table", r.views = "views", r.visualFilters = "visualFilters", r))(X || {});
|
|
50706
|
+
var Q = ((r) => (r.annotationPath = "annotationPath", r.annotationType = "annotationType", r.artifactType = "artifactType", r.controlType = "controlType", r.dataType = "dataType", r.fullyQualifiedName = "fullyQualifiedName", r.hidden = "hidden", r.isViewNode = "isViewNode", r.key = "key", r.keys = "keys", r.target = "target", r.propertyIndex = "propertyIndex", r))(Q || {});
|
|
50707
|
+
var K = ((i) => (i.id = "ID", i.value = "Value", i.action = "Action", i.target = "Target", i.key = "Key", i))(K || {});
|
|
50708
|
+
var at = "webapp/localService/metadata.xml";
|
|
50709
|
+
var nt = "webapp/manifest.json";
|
|
50710
|
+
var it = "/@com.sap.vocabularies";
|
|
50711
|
+
var rt = "::@com.sap.vocabularies";
|
|
50712
|
+
var st = "com.sap.vocabularies.UI.v1";
|
|
50713
|
+
var pt = "com.sap.vocabularies.UI.v1.";
|
|
50714
|
+
var ct = "@com.sap.vocabularies.UI.v1.";
|
|
50715
|
+
var lt = "/quickVariantSelection";
|
|
50716
|
+
var gt2 = "/quickVariantSelectionX";
|
|
50717
|
+
var mt = "/filterSettings/dateSettings";
|
|
50718
|
+
var bt = ".fragment.";
|
|
50719
|
+
var Y = ((p) => (p.Control = "Control", p.Property = "Property", p.Aggregation = "Aggregation", p.Event = "Event", p))(Y || {});
|
|
50720
|
+
var N = ((n) => (n.restricted = "restricted", n))(N || {});
|
|
50721
|
+
var z = ((o) => (o.Top = "Top", o.Middle = "Middle", o.Bottom = "Bottom", o))(z || {});
|
|
50722
|
+
var q = ((t) => (t.persistence = "persistence", t.discovery = "discovery", t))(q || {});
|
|
50723
|
+
var J = ((o) => (o.BeginColumnPages = "beginColumnPages", o.MidColumnPages = "midColumnPages", o.EndColumnPages = "endColumnPages", o))(J || {});
|
|
50724
|
+
var $ = ((t) => (t.OData = "OData", t.ODataAnnotation = "ODataAnnotation", t))($ || {});
|
|
50725
|
+
var Z = ((i) => (i.ui = "sap.ui", i.app = "sap.app", i.generic = "sap.ui.generic.app", i.ovp = "sap.ovp", i.ui5 = "sap.ui5", i))(Z || {});
|
|
50726
|
+
var St = `${"sap.ui.generic.app"}/settings`;
|
|
50727
|
+
var xt = "sap.fe.templates.RootContainer.view.Fcl";
|
|
50728
|
+
var ut = "appRootView";
|
|
50729
|
+
var D = ((o) => (o.XML = "XML", o.HTML = "HTML", o.JSON = "JSON", o))(D || {});
|
|
50730
|
+
var Pt = "sap.ui.core.mvc.View";
|
|
50731
|
+
var dt = "sap.ui.core.Fragment";
|
|
50732
|
+
var ee = ((o) => (o.Error = "error", o.Warning = "warning", o.Info = "info", o))(ee || {});
|
|
50733
|
+
var At = { ["error"]: "Error", ["warning"]: "Warning", ["info"]: "Information" };
|
|
50734
|
+
var te = ((u) => (u.ListReportObjectPageV2 = "ListReportObjectPageV2", u.ListReportObjectPageV4 = "ListReportObjectPageV4", u.OverviewPageV2 = "OverviewPageV2", u.AnalyticalListPageV2 = "AnalyticalListPageV2", u.AnalyticalListPageV4 = "AnalyticalListPageV4", u.FreestylePageV4 = "FreestylePageV4", u))(te || {});
|
|
50735
|
+
var oe = ((x) => (x.CustomPage = "CustomPage", x.CustomColumn = "CustomColumn", x.CustomSection = "CustomSection", x.ObjectPage = "ObjectPage", x.CustomAction = "CustomAction", x.CustomView = "CustomView", x.ControllerExtension = "ControllerExtension", x))(oe || {});
|
|
50736
|
+
var ae = ((n) => (n.BuildingBlocks = "BuildingBlocks", n))(ae || {});
|
|
50737
|
+
var f = {};
|
|
50738
|
+
A(f, { CardSettingsType: () => re, CardTemplateType: () => ie, ChartCardType: () => ne, ChartType: () => fe, ContainerLayoutType: () => Oe, CreateMode: () => Ve, DateRangeType: () => me, DefaultContentView: () => Ae, DefaultDateRangeValueType: () => be, DefaultFilterMode: () => Te, ExtensionFragmentTypes: () => ye, FE_TEMPLATE_V2: () => Ct, FE_TEMPLATE_V2_ALP: () => yt, FE_TEMPLATE_V2_LIST_REPORT: () => Et, FE_TEMPLATE_V2_OBJECT_PAGE: () => ft, IgnoredFieldsType: () => de, LinkListFlavorType: () => ge, ListFlavorType: () => pe, ListTypeType: () => ce, LoadDataOnAppLaunchSettings: () => Ce, MeasureAggregateValues: () => se, SAPUI5_CONTROLLER_EXTENSION: () => Ot, SAPUI5_VIEW_EXTENSION: () => Vt, SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE: () => Ft, SAPUI5_VIEW_EXTENSION_LIST_REPORT: () => jt, SAPUI5_VIEW_EXTENSION_OBJECT_PAGE: () => Lt, SectionPosition: () => Ee, SortOrderType: () => le, Strategy: () => Pe, TableColumnExtensionTypeV2: () => ue, TableTypeV2: () => xe, cardTemplateTypeMap: () => Tt, customColumnViewTypes: () => Se });
|
|
50739
|
+
var ne = ((o) => (o.cardBubble = "cardBubble", o.cardchartsline = "cardchartsline", o.cardchartsdonut = "cardchartsdonut", o))(ne || {});
|
|
50740
|
+
var ie = ((m) => (m.analytical = "sap.ovp.cards.charts.analytical", m.analyticalv4 = "sap.ovp.cards.v4.charts.analytical", m.list = "sap.ovp.cards.list", m.listv4 = "sap.ovp.cards.v4.list", m.linklist = "sap.ovp.cards.linklist", m.linklistv4 = "sap.ovp.cards.v4.linklist", m.table = "sap.ovp.cards.table", m.tablev4 = "sap.ovp.cards.v4.table", m.stack = "sap.ovp.cards.stack", m))(ie || {});
|
|
50741
|
+
var Tt = { "sap.ovp.cards.charts.analytical": "AnalyticalCard", "sap.ovp.cards.v4.charts.analytical": "AnalyticalCard", "sap.ovp.cards.list": "ListCard", "sap.ovp.cards.v4.list": "ListCard", "sap.ovp.cards.linklist": "LinklistCard", "sap.ovp.cards.v4.linklist": "LinklistCard", "sap.ovp.cards.table": "TableCard", "sap.ovp.cards.v4.table": "TableCard", "sap.ovp.cards.stack": "StackCard" };
|
|
50742
|
+
var re = ((b) => (b.analyticalCardSettings = "analyticalCardSettings", b.analyticalCardSettingsv4 = "analyticalCardSettingsv4", b.listCardSettings = "listCardSettings", b.listCardSettingsv4 = "listCardSettingsv4", b.stackCardSettings = "stackCardSettings", b.linkListCardSettings = "linkListCardSettings", b.tableCardSettings = "tableCardSettings", b.tableCardSettingsv4 = "tableCardSettingsv4", b))(re || {});
|
|
50743
|
+
var se = ((i) => (i.average = "average", i.max = "max", i.min = "min", i.sum = "sum", i.count = "$count", i))(se || {});
|
|
50744
|
+
var pe = ((o) => (o.standard = "standard", o.bar = "bar", o.carousel = "carousel", o))(pe || {});
|
|
50745
|
+
var ce = ((t) => (t.extended = "extended", t.condensed = "condensed", t))(ce || {});
|
|
50746
|
+
var le = ((t) => (t.ascending = "ascending", t.descending = "descending", t))(le || {});
|
|
50747
|
+
var ge = ((t) => (t.standard = "standard", t.carousel = "carousel", t))(ge || {});
|
|
50748
|
+
var me = ((a) => (a.DATERANGE = "DATERANGE", a.DATE = "DATE", a.FROM = "FROM", a.TO = "TO", a.DAYS = "DAYS", a.LASTDAYS = "LASTDAYS", a.LASTWEEKS = "LASTWEEKS", a.WEEK = "WEEK", a.LASTMONTHS = "LASTMONTHS", a.MONTH = "MONTH", a.QUARTER = "QUARTER", a.LASTQUARTERS = "LASTQUARTERS", a.LASTYEARS = "LASTYEARS", a.LASTYEAR = "LASTYEAR", a.YEAR = "YEAR", a.NEXTDAYS = "NEXTDAYS", a.NEXTWEEKS = "NEXTWEEKS", a.NEXTMONTHS = "NEXTMONTHS", a.NEXTQUARTERS = "NEXTQUARTERS", a.NEXTYEARS = "NEXTYEARS", a.NEXT = "NEXT", a.SPECIFICMONTH = "SPECIFICMONTH", a.YESTERDAY = "YESTERDAY", a.YEARTODATE = "YEARTODATE", a.TODAY = "TODAY", a.TOMORROW = "TOMORROW", a.THISWEEK = "THISWEEK", a.LASTWEEK = "LASTWEEK", a.LAST2WEEKS = "LAST2WEEKS", a.LAST3WEEKS = "LAST3WEEKS", a.LAST4WEEKS = "LAST4WEEKS", a.LAST5WEEKS = "LAST5WEEKS", a.NEXTWEEK = "NEXTWEEK", a.NEXT2WEEKS = "NEXT2WEEKS", a.NEXT3WEEKS = "NEXT3WEEKS", a.NEXT4WEEKS = "NEXT4WEEKS", a.NEXT5WEEKS = "NEXT5WEEKS", a.THISMONTH = "THISMONTH", a.LASTMONTH = "LASTMONTH", a.NEXTMONTH = "NEXTMONTH", a.THISQUARTER = "THISQUARTER", a.LASTQUARTER = "LASTQUARTER", a.NEXTQUARTER = "NEXTQUARTER", a.QUARTER1 = "QUARTER1", a.QUARTER2 = "QUARTER2", a.QUARTER3 = "QUARTER3", a.QUARTER4 = "QUARTER4", a.TODAYFROMTO = "TODAYFROMTO", a))(me || {});
|
|
50749
|
+
var be = ((l) => (l.YESTERDAY = "YESTERDAY", l.TODAY = "TODAY", l.THISWEEK = "THISWEEK", l.LASTWEEK = "LASTWEEK", l.THISMONTH = "THISMONTH", l.TOMORROW = "TOMORROW", l.LASTMONTH = "LASTMONTH", l.THISQUARTER = "THISQUARTER", l.LASTQUARTER = "LASTQUARTER", l.THISYEAR = "THISYEAR", l.LASTYEAR = "LASTYEAR", l.LAST2WEEKS = "LAST2WEEKS", l.LAST3WEEKS = "LAST3WEEKS", l.LAST4WEEKS = "LAST4WEEKS", l.LAST5WEEKS = "LAST5WEEKS", l.YEARTODATE = "YEARTODATE", l.QUARTER1 = "QUARTER1", l.QUARTER2 = "QUARTER2", l.QUARTER3 = "QUARTER3", l.QUARTER4 = "QUARTER4", l.DATETOYEAR = "DATETOYEAR", l))(be || {});
|
|
50750
|
+
var Se = ((n) => (n.XML = "XML", n))(Se || {});
|
|
50751
|
+
var xe = ((p) => (p.ResponsiveTable = "ResponsiveTable", p.GridTable = "GridTable", p.AnalyticalTable = "AnalyticalTable", p.TreeTable = "TreeTable", p))(xe || {});
|
|
50752
|
+
var ue = ((p) => (p.ResponsiveTableColumnsExtension = "ResponsiveTableColumnsExtension", p.AnalyticalTableColumnsExtension = "AnalyticalTableColumnsExtension", p.TreeTableColumnsExtension = "TreeTableColumnsExtension", p.GridTableColumnsExtension = "GridTableColumnsExtension", p))(ue || {});
|
|
50753
|
+
var Pe = ((n) => (n.extension = "extension", n))(Pe || {});
|
|
50754
|
+
var de = ((n) => (n.GENERICPROPERTY = "GENERICPROPERTY", n))(de || {});
|
|
50755
|
+
var Ae = ((o) => (o.charttable = "charttable", o.chart = "chart", o.table = "table", o))(Ae || {});
|
|
50756
|
+
var Te = ((t) => (t.visual = "visual", t.compact = "compact", t))(Te || {});
|
|
50757
|
+
var Ce = ((o) => (o.always = "always", o.never = "never", o.ifAnyFilterExist = "ifAnyFilterExist", o))(Ce || {});
|
|
50758
|
+
var fe = ((s) => (s.bar = "bar", s.column = "column", s.line = "line", s.combination = "combination", s.pie = "pie", s.donut = "donut", s.scatter = "scatter", s.bubble = "bubble", s.heatmap = "heatmap", s.bullet = "bullet", s.verticalBullet = "vertical_bullet", s.stackedBar = "stacked_bar", s.stackedColumn = "stacked_column", s.stackedCombination = "stacked_combination", s.horizontalStackedCombination = "horizontal_stacked_combination", s.dualBar = "dual_bar", s.dualColumn = "dual_column", s.dualLine = "dual_line", s.dualStackedBar = "dual_stacked_bar", s.dualStackedColumn = "dual_stacked_column", s.dualCombination = "dual_combination", s.dualStackedCombination = "dual_stacked_combination", s.dualHorizontalCombination = "dual_horizontal_combination", s.dualHorizontalStackedCombination = "dual_horizontal_stacked_combination", s.hundredStackedBar = "100_stacked_bar", s.hundredStackedColumn = "100_stacked_column", s.hundredDualStackedBar = "100_dual_stacked_bar", s.hundredDualStackedColumn = "100_dual_stacked_column", s.waterfall = "waterfall", s.horizontalWaterfall = "horizontal_waterfall", s))(fe || {});
|
|
50759
|
+
var Ee = ((o) => (o.AfterFacet = "AfterFacet", o.BeforeFacet = "BeforeFacet", o.ReplaceFacet = "ReplaceFacet", o))(Ee || {});
|
|
50760
|
+
var ye = ((n) => (n.XML = "XML", n))(ye || {});
|
|
50761
|
+
var Ve = ((n) => (n.inline = "inline", n))(Ve || {});
|
|
50762
|
+
var Ct = "sap.suite.ui.generic.template";
|
|
50763
|
+
var ft = "sap.suite.ui.generic.template.ObjectPage";
|
|
50764
|
+
var Et = "sap.suite.ui.generic.template.ListReport";
|
|
50765
|
+
var yt = "sap.suite.ui.generic.template.AnalyticalListPage";
|
|
50766
|
+
var Vt = "sap.ui.viewExtensions";
|
|
50767
|
+
var Ot = "sap.ui.controllerExtensions";
|
|
50768
|
+
var Lt = "sap.suite.ui.generic.template.ObjectPage.view.Details";
|
|
50769
|
+
var jt = "sap.suite.ui.generic.template.ListReport.view.ListReport";
|
|
50770
|
+
var Ft = "sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage";
|
|
50771
|
+
var Oe = ((t) => (t.fixed = "fixed", t.resizable = "resizable", t))(Oe || {});
|
|
50772
|
+
var E = {};
|
|
50773
|
+
A(E, { ActionPlacement: () => Le, Availability: () => We, CustomSectionViewTypesV4: () => Be, DefaultPathType: () => ve, DesigntimeValues: () => Me, FE_TEMPLATE_V4: () => ht, FE_TEMPLATE_V4_ALP: () => Ut, FE_TEMPLATE_V4_CUSTOM_PAGE: () => Rt, FE_TEMPLATE_V4_LIST_REPORT: () => It, FE_TEMPLATE_V4_OBJECT_PAGE: () => vt, FIORI_FCL_ROUTER_CLASS: () => Mt, HorizontalAlign: () => Xe, InitialLayoutType: () => Ue, InitialLoadType: () => Re, LayoutType: () => Ie, Placement: () => He, SAPUI5_CONTROLLER_EXTENSION: () => kt, SAPUI5_DEPENDENCY_LIB_SAP_F: () => _t, SAPUI5_FRAGMENT_TYPE_V4: () => wt, SAPUI5_VIEW_EXTENSION_LIST_REPORT: () => Gt, SAPUI5_VIEW_EXTENSION_OBJECT_PAGE: () => Bt, SectionLayoutType: () => _e, SectionPosition: () => ke, SectionPositionV4: () => Ge, SelectType: () => we, SelectionMode: () => je, TableCreationModeType: () => he, TableTypeV4: () => Fe, VariantManagementTypeListReport: () => Ke, VariantManagementTypeObjectPage: () => Qe });
|
|
50774
|
+
var Le = ((t) => (t.After = "After", t.Before = "Before", t))(Le || {});
|
|
50775
|
+
var je = ((p) => (p.Multi = "Multi", p.None = "None", p.Single = "Single", p.Auto = "Auto", p))(je || {});
|
|
50776
|
+
var Fe = ((o) => (o.ResponsiveTable = "ResponsiveTable", o.GridTable = "GridTable", o.AnalyticalTable = "AnalyticalTable", o))(Fe || {});
|
|
50777
|
+
var he = ((o) => (o.NewPage = "NewPage", o.Inline = "Inline", o.CreationRow = "CreationRow", o))(he || {});
|
|
50778
|
+
var Re = ((o) => (o.Disabled = "Disabled", o.Enabled = "Enabled", o.Auto = "Auto", o))(Re || {});
|
|
50779
|
+
var ve = ((o) => (o.Primary = "primary", o.Secondary = "secondary", o.Both = "both", o))(ve || {});
|
|
50780
|
+
var Ie = ((t) => (t.Compact = "Compact", t.CompactVisual = "CompactVisual", t))(Ie || {});
|
|
50781
|
+
var Ue = ((t) => (t.Compact = "Compact", t.Visual = "Visual", t))(Ue || {});
|
|
50782
|
+
var we = ((t) => (t.single = "single", t.multi = "multi", t))(we || {});
|
|
50783
|
+
var Me = ((c) => (c["not-adaptable-visibility"] = "not-adaptable-visibility", c))(Me || {});
|
|
50784
|
+
var _e = ((t) => (t.Tabs = "Tabs", t.Page = "Page", t))(_e || {});
|
|
50785
|
+
var ke = ((t) => (t.After = "After", t.Before = "Before", t))(ke || {});
|
|
50786
|
+
var Be = ((n) => (n.XML = "XML", n))(Be || {});
|
|
50787
|
+
var ht = "sap.fe.templates";
|
|
50788
|
+
var Rt = "sap.fe.core.fpm";
|
|
50789
|
+
var vt = "sap.fe.templates.ObjectPage";
|
|
50790
|
+
var It = "sap.fe.templates.ListReport";
|
|
50791
|
+
var Ut = "sap.fe.templates.AnalyticalListPage";
|
|
50792
|
+
var wt = "XMLFragment";
|
|
50793
|
+
var Ge = ((t) => (t.AfterFacet = "AfterFacet", t.BeforeFacet = "BeforeFacet", t))(Ge || {});
|
|
50794
|
+
var Mt = "sap.f.routing.Router";
|
|
50795
|
+
var _t = "sap.f";
|
|
50796
|
+
var kt = "sap.ui.controllerExtensions";
|
|
50797
|
+
var Bt = "sap.fe.templates.ObjectPage.ObjectPageController";
|
|
50798
|
+
var Gt = "sap.fe.templates.ListReport.ListReportController";
|
|
50799
|
+
var He = ((t) => (t.After = "After", t.Before = "Before", t))(He || {});
|
|
50800
|
+
var We = ((o) => (o.Default = "Default", o.Adaptation = "Adaptation", o.Hidden = "Hidden", o))(We || {});
|
|
50801
|
+
var Xe = ((o) => (o.Begin = "Begin", o.Center = "Center", o.End = "End", o))(Xe || {});
|
|
50802
|
+
var Qe = ((t) => (t.None = "None", t.Control = "Control", t))(Qe || {});
|
|
50803
|
+
var Ke = ((o) => (o.None = "None", o.Control = "Control", o.Page = "Page", o))(Ke || {});
|
|
50804
|
+
module2.exports = $e(Ht);
|
|
50805
|
+
}
|
|
50806
|
+
});
|
|
50807
|
+
|
|
50808
|
+
// ../../node_modules/@sap/ux-specification-types/dist/apiTypes.js
|
|
50809
|
+
var require_apiTypes = __commonJS({
|
|
50810
|
+
"../../node_modules/@sap/ux-specification-types/dist/apiTypes.js"(exports2) {
|
|
50811
|
+
"use strict";
|
|
50812
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
50813
|
+
exports2.Features = exports2.CustomExtensionType = exports2.TemplateType = exports2.LogSeverityLabel = exports2.LogSeverity = void 0;
|
|
50814
|
+
var LogSeverity2;
|
|
50815
|
+
(function(LogSeverity3) {
|
|
50816
|
+
LogSeverity3["Error"] = "error";
|
|
50817
|
+
LogSeverity3["Warning"] = "warning";
|
|
50818
|
+
LogSeverity3["Info"] = "info";
|
|
50819
|
+
})(LogSeverity2 = exports2.LogSeverity || (exports2.LogSeverity = {}));
|
|
50820
|
+
exports2.LogSeverityLabel = {
|
|
50821
|
+
["error"]: "Error",
|
|
50822
|
+
["warning"]: "Warning",
|
|
50823
|
+
["info"]: "Information"
|
|
50824
|
+
};
|
|
50825
|
+
var TemplateType2;
|
|
50826
|
+
(function(TemplateType3) {
|
|
50827
|
+
TemplateType3["ListReportObjectPageV2"] = "ListReportObjectPageV2";
|
|
50828
|
+
TemplateType3["ListReportObjectPageV4"] = "ListReportObjectPageV4";
|
|
50829
|
+
TemplateType3["OverviewPageV2"] = "OverviewPageV2";
|
|
50830
|
+
TemplateType3["AnalyticalListPageV2"] = "AnalyticalListPageV2";
|
|
50831
|
+
TemplateType3["AnalyticalListPageV4"] = "AnalyticalListPageV4";
|
|
50832
|
+
TemplateType3["FreestylePageV4"] = "FreestylePageV4";
|
|
50833
|
+
})(TemplateType2 = exports2.TemplateType || (exports2.TemplateType = {}));
|
|
50834
|
+
var CustomExtensionType2;
|
|
50835
|
+
(function(CustomExtensionType3) {
|
|
50836
|
+
CustomExtensionType3["CustomPage"] = "CustomPage";
|
|
50837
|
+
CustomExtensionType3["CustomColumn"] = "CustomColumn";
|
|
50838
|
+
CustomExtensionType3["CustomSection"] = "CustomSection";
|
|
50839
|
+
CustomExtensionType3["ObjectPage"] = "ObjectPage";
|
|
50840
|
+
CustomExtensionType3["CustomAction"] = "CustomAction";
|
|
50841
|
+
CustomExtensionType3["CustomView"] = "CustomView";
|
|
50842
|
+
CustomExtensionType3["ControllerExtension"] = "ControllerExtension";
|
|
50843
|
+
})(CustomExtensionType2 = exports2.CustomExtensionType || (exports2.CustomExtensionType = {}));
|
|
50844
|
+
var Features2;
|
|
50845
|
+
(function(Features3) {
|
|
50846
|
+
Features3["BuildingBlocks"] = "BuildingBlocks";
|
|
50847
|
+
})(Features2 = exports2.Features || (exports2.Features = {}));
|
|
50848
|
+
}
|
|
50849
|
+
});
|
|
50850
|
+
|
|
50851
|
+
// ../../node_modules/@sap/ux-specification-types/dist/v2.js
|
|
50852
|
+
var require_v2 = __commonJS({
|
|
50853
|
+
"../../node_modules/@sap/ux-specification-types/dist/v2.js"(exports2, module2) {
|
|
50854
|
+
var p = Object.defineProperty;
|
|
50855
|
+
var h = Object.getOwnPropertyDescriptor;
|
|
50856
|
+
var F = Object.getOwnPropertyNames;
|
|
50857
|
+
var j = Object.prototype.hasOwnProperty;
|
|
50858
|
+
var W = (s) => p(s, "__esModule", { value: true });
|
|
50859
|
+
var w = (s, n) => {
|
|
50860
|
+
for (var a in n)
|
|
50861
|
+
p(s, a, { get: n[a], enumerable: true });
|
|
50862
|
+
};
|
|
50863
|
+
var M = (s, n, a, i) => {
|
|
50864
|
+
if (n && typeof n == "object" || typeof n == "function")
|
|
50865
|
+
for (let r of F(n))
|
|
50866
|
+
!j.call(s, r) && (a || r !== "default") && p(s, r, { get: () => n[r], enumerable: !(i = h(n, r)) || i.enumerable });
|
|
50867
|
+
return s;
|
|
50868
|
+
};
|
|
50869
|
+
var B = ((s) => (n, a) => s && s.get(n) || (a = M(W({}), n, 1), s && s.set(n, a), a))(typeof WeakMap != "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
50870
|
+
var Z = {};
|
|
50871
|
+
w(Z, { CardSettingsType: () => d, CardTemplateType: () => m, ChartCardType: () => b, ChartType: () => V, ContainerLayoutType: () => k, CreateMode: () => N, DateRangeType: () => u, DefaultContentView: () => y, DefaultDateRangeValueType: () => P, DefaultFilterMode: () => v, ExtensionFragmentTypes: () => _45, FE_TEMPLATE_V2: () => X, FE_TEMPLATE_V2_ALP: () => H, FE_TEMPLATE_V2_LIST_REPORT: () => G, FE_TEMPLATE_V2_OBJECT_PAGE: () => K, IgnoredFieldsType: () => R, LinkListFlavorType: () => A, ListFlavorType: () => T, ListTypeType: () => x, LoadDataOnAppLaunchSettings: () => U, MeasureAggregateValues: () => g, SAPUI5_CONTROLLER_EXTENSION: () => z, SAPUI5_VIEW_EXTENSION: () => Y, SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE: () => $, SAPUI5_VIEW_EXTENSION_LIST_REPORT: () => J, SAPUI5_VIEW_EXTENSION_OBJECT_PAGE: () => q, SectionPosition: () => I, SortOrderType: () => E, Strategy: () => L, TableColumnExtensionTypeV2: () => O, TableTypeV2: () => C, cardTemplateTypeMap: () => Q, customColumnViewTypes: () => f });
|
|
50872
|
+
var b = ((i) => (i.cardBubble = "cardBubble", i.cardchartsline = "cardchartsline", i.cardchartsdonut = "cardchartsdonut", i))(b || {});
|
|
50873
|
+
var m = ((l) => (l.analytical = "sap.ovp.cards.charts.analytical", l.analyticalv4 = "sap.ovp.cards.v4.charts.analytical", l.list = "sap.ovp.cards.list", l.listv4 = "sap.ovp.cards.v4.list", l.linklist = "sap.ovp.cards.linklist", l.linklistv4 = "sap.ovp.cards.v4.linklist", l.table = "sap.ovp.cards.table", l.tablev4 = "sap.ovp.cards.v4.table", l.stack = "sap.ovp.cards.stack", l))(m || {});
|
|
50874
|
+
var Q = { "sap.ovp.cards.charts.analytical": "AnalyticalCard", "sap.ovp.cards.v4.charts.analytical": "AnalyticalCard", "sap.ovp.cards.list": "ListCard", "sap.ovp.cards.v4.list": "ListCard", "sap.ovp.cards.linklist": "LinklistCard", "sap.ovp.cards.v4.linklist": "LinklistCard", "sap.ovp.cards.table": "TableCard", "sap.ovp.cards.v4.table": "TableCard", "sap.ovp.cards.stack": "StackCard" };
|
|
50875
|
+
var d = ((c) => (c.analyticalCardSettings = "analyticalCardSettings", c.analyticalCardSettingsv4 = "analyticalCardSettingsv4", c.listCardSettings = "listCardSettings", c.listCardSettingsv4 = "listCardSettingsv4", c.stackCardSettings = "stackCardSettings", c.linkListCardSettings = "linkListCardSettings", c.tableCardSettings = "tableCardSettings", c.tableCardSettingsv4 = "tableCardSettingsv4", c))(d || {});
|
|
50876
|
+
var g = ((S) => (S.average = "average", S.max = "max", S.min = "min", S.sum = "sum", S.count = "$count", S))(g || {});
|
|
50877
|
+
var T = ((i) => (i.standard = "standard", i.bar = "bar", i.carousel = "carousel", i))(T || {});
|
|
50878
|
+
var x = ((a) => (a.extended = "extended", a.condensed = "condensed", a))(x || {});
|
|
50879
|
+
var E = ((a) => (a.ascending = "ascending", a.descending = "descending", a))(E || {});
|
|
50880
|
+
var A = ((a) => (a.standard = "standard", a.carousel = "carousel", a))(A || {});
|
|
50881
|
+
var u = ((e) => (e.DATERANGE = "DATERANGE", e.DATE = "DATE", e.FROM = "FROM", e.TO = "TO", e.DAYS = "DAYS", e.LASTDAYS = "LASTDAYS", e.LASTWEEKS = "LASTWEEKS", e.WEEK = "WEEK", e.LASTMONTHS = "LASTMONTHS", e.MONTH = "MONTH", e.QUARTER = "QUARTER", e.LASTQUARTERS = "LASTQUARTERS", e.LASTYEARS = "LASTYEARS", e.LASTYEAR = "LASTYEAR", e.YEAR = "YEAR", e.NEXTDAYS = "NEXTDAYS", e.NEXTWEEKS = "NEXTWEEKS", e.NEXTMONTHS = "NEXTMONTHS", e.NEXTQUARTERS = "NEXTQUARTERS", e.NEXTYEARS = "NEXTYEARS", e.NEXT = "NEXT", e.SPECIFICMONTH = "SPECIFICMONTH", e.YESTERDAY = "YESTERDAY", e.YEARTODATE = "YEARTODATE", e.TODAY = "TODAY", e.TOMORROW = "TOMORROW", e.THISWEEK = "THISWEEK", e.LASTWEEK = "LASTWEEK", e.LAST2WEEKS = "LAST2WEEKS", e.LAST3WEEKS = "LAST3WEEKS", e.LAST4WEEKS = "LAST4WEEKS", e.LAST5WEEKS = "LAST5WEEKS", e.NEXTWEEK = "NEXTWEEK", e.NEXT2WEEKS = "NEXT2WEEKS", e.NEXT3WEEKS = "NEXT3WEEKS", e.NEXT4WEEKS = "NEXT4WEEKS", e.NEXT5WEEKS = "NEXT5WEEKS", e.THISMONTH = "THISMONTH", e.LASTMONTH = "LASTMONTH", e.NEXTMONTH = "NEXTMONTH", e.THISQUARTER = "THISQUARTER", e.LASTQUARTER = "LASTQUARTER", e.NEXTQUARTER = "NEXTQUARTER", e.QUARTER1 = "QUARTER1", e.QUARTER2 = "QUARTER2", e.QUARTER3 = "QUARTER3", e.QUARTER4 = "QUARTER4", e.TODAYFROMTO = "TODAYFROMTO", e))(u || {});
|
|
50882
|
+
var P = ((o) => (o.YESTERDAY = "YESTERDAY", o.TODAY = "TODAY", o.THISWEEK = "THISWEEK", o.LASTWEEK = "LASTWEEK", o.THISMONTH = "THISMONTH", o.TOMORROW = "TOMORROW", o.LASTMONTH = "LASTMONTH", o.THISQUARTER = "THISQUARTER", o.LASTQUARTER = "LASTQUARTER", o.THISYEAR = "THISYEAR", o.LASTYEAR = "LASTYEAR", o.LAST2WEEKS = "LAST2WEEKS", o.LAST3WEEKS = "LAST3WEEKS", o.LAST4WEEKS = "LAST4WEEKS", o.LAST5WEEKS = "LAST5WEEKS", o.YEARTODATE = "YEARTODATE", o.QUARTER1 = "QUARTER1", o.QUARTER2 = "QUARTER2", o.QUARTER3 = "QUARTER3", o.QUARTER4 = "QUARTER4", o.DATETOYEAR = "DATETOYEAR", o))(P || {});
|
|
50883
|
+
var f = ((n) => (n.XML = "XML", n))(f || {});
|
|
50884
|
+
var C = ((r) => (r.ResponsiveTable = "ResponsiveTable", r.GridTable = "GridTable", r.AnalyticalTable = "AnalyticalTable", r.TreeTable = "TreeTable", r))(C || {});
|
|
50885
|
+
var O = ((r) => (r.ResponsiveTableColumnsExtension = "ResponsiveTableColumnsExtension", r.AnalyticalTableColumnsExtension = "AnalyticalTableColumnsExtension", r.TreeTableColumnsExtension = "TreeTableColumnsExtension", r.GridTableColumnsExtension = "GridTableColumnsExtension", r))(O || {});
|
|
50886
|
+
var L = ((n) => (n.extension = "extension", n))(L || {});
|
|
50887
|
+
var R = ((n) => (n.GENERICPROPERTY = "GENERICPROPERTY", n))(R || {});
|
|
50888
|
+
var y = ((i) => (i.charttable = "charttable", i.chart = "chart", i.table = "table", i))(y || {});
|
|
50889
|
+
var v = ((a) => (a.visual = "visual", a.compact = "compact", a))(v || {});
|
|
50890
|
+
var U = ((i) => (i.always = "always", i.never = "never", i.ifAnyFilterExist = "ifAnyFilterExist", i))(U || {});
|
|
50891
|
+
var V = ((t) => (t.bar = "bar", t.column = "column", t.line = "line", t.combination = "combination", t.pie = "pie", t.donut = "donut", t.scatter = "scatter", t.bubble = "bubble", t.heatmap = "heatmap", t.bullet = "bullet", t.verticalBullet = "vertical_bullet", t.stackedBar = "stacked_bar", t.stackedColumn = "stacked_column", t.stackedCombination = "stacked_combination", t.horizontalStackedCombination = "horizontal_stacked_combination", t.dualBar = "dual_bar", t.dualColumn = "dual_column", t.dualLine = "dual_line", t.dualStackedBar = "dual_stacked_bar", t.dualStackedColumn = "dual_stacked_column", t.dualCombination = "dual_combination", t.dualStackedCombination = "dual_stacked_combination", t.dualHorizontalCombination = "dual_horizontal_combination", t.dualHorizontalStackedCombination = "dual_horizontal_stacked_combination", t.hundredStackedBar = "100_stacked_bar", t.hundredStackedColumn = "100_stacked_column", t.hundredDualStackedBar = "100_dual_stacked_bar", t.hundredDualStackedColumn = "100_dual_stacked_column", t.waterfall = "waterfall", t.horizontalWaterfall = "horizontal_waterfall", t))(V || {});
|
|
50892
|
+
var I = ((i) => (i.AfterFacet = "AfterFacet", i.BeforeFacet = "BeforeFacet", i.ReplaceFacet = "ReplaceFacet", i))(I || {});
|
|
50893
|
+
var _45 = ((n) => (n.XML = "XML", n))(_45 || {});
|
|
50894
|
+
var N = ((n) => (n.inline = "inline", n))(N || {});
|
|
50895
|
+
var X = "sap.suite.ui.generic.template";
|
|
50896
|
+
var K = "sap.suite.ui.generic.template.ObjectPage";
|
|
50897
|
+
var G = "sap.suite.ui.generic.template.ListReport";
|
|
50898
|
+
var H = "sap.suite.ui.generic.template.AnalyticalListPage";
|
|
50899
|
+
var Y = "sap.ui.viewExtensions";
|
|
50900
|
+
var z = "sap.ui.controllerExtensions";
|
|
50901
|
+
var q = "sap.suite.ui.generic.template.ObjectPage.view.Details";
|
|
50902
|
+
var J = "sap.suite.ui.generic.template.ListReport.view.ListReport";
|
|
50903
|
+
var $ = "sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage";
|
|
50904
|
+
var k = ((a) => (a.fixed = "fixed", a.resizable = "resizable", a))(k || {});
|
|
50905
|
+
module2.exports = B(Z);
|
|
50906
|
+
}
|
|
50907
|
+
});
|
|
50908
|
+
|
|
50909
|
+
// ../../node_modules/@sap/ux-specification-types/dist/v4.js
|
|
50910
|
+
var require_v4 = __commonJS({
|
|
50911
|
+
"../../node_modules/@sap/ux-specification-types/dist/v4.js"(exports2, module2) {
|
|
50912
|
+
var a = Object.defineProperty;
|
|
50913
|
+
var U = Object.getOwnPropertyDescriptor;
|
|
50914
|
+
var E = Object.getOwnPropertyNames;
|
|
50915
|
+
var w = Object.prototype.hasOwnProperty;
|
|
50916
|
+
var O = (i) => a(i, "__esModule", { value: true });
|
|
50917
|
+
var h = (i, o) => {
|
|
50918
|
+
for (var e in o)
|
|
50919
|
+
a(i, e, { get: o[e], enumerable: true });
|
|
50920
|
+
};
|
|
50921
|
+
var R = (i, o, e, t) => {
|
|
50922
|
+
if (o && typeof o == "object" || typeof o == "function")
|
|
50923
|
+
for (let n of E(o))
|
|
50924
|
+
!w.call(i, n) && (e || n !== "default") && a(i, n, { get: () => o[n], enumerable: !(t = U(o, n)) || t.enumerable });
|
|
50925
|
+
return i;
|
|
50926
|
+
};
|
|
50927
|
+
var j = ((i) => (o, e) => i && i.get(o) || (e = R(O({}), o, 1), i && i.set(o, e), e))(typeof WeakMap != "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
50928
|
+
var D = {};
|
|
50929
|
+
h(D, { ActionPlacement: () => r, Availability: () => d, CustomSectionViewTypesV4: () => C, DefaultPathType: () => g, DesigntimeValues: () => f, FE_TEMPLATE_V4: () => F, FE_TEMPLATE_V4_ALP: () => v, FE_TEMPLATE_V4_CUSTOM_PAGE: () => _45, FE_TEMPLATE_V4_LIST_REPORT: () => B, FE_TEMPLATE_V4_OBJECT_PAGE: () => L, FIORI_FCL_ROUTER_CLASS: () => M, HorizontalAlign: () => A, InitialLayoutType: () => x, InitialLoadType: () => l, LayoutType: () => m, Placement: () => T, SAPUI5_CONTROLLER_EXTENSION: () => k, SAPUI5_DEPENDENCY_LIB_SAP_F: () => I, SAPUI5_FRAGMENT_TYPE_V4: () => N, SAPUI5_VIEW_EXTENSION_LIST_REPORT: () => H, SAPUI5_VIEW_EXTENSION_OBJECT_PAGE: () => G, SectionLayoutType: () => b, SectionPosition: () => S, SectionPositionV4: () => P, SelectType: () => u, SelectionMode: () => s, TableCreationModeType: () => c, TableTypeV4: () => p, VariantManagementTypeListReport: () => y, VariantManagementTypeObjectPage: () => V });
|
|
50930
|
+
var r = ((e) => (e.After = "After", e.Before = "Before", e))(r || {});
|
|
50931
|
+
var s = ((n) => (n.Multi = "Multi", n.None = "None", n.Single = "Single", n.Auto = "Auto", n))(s || {});
|
|
50932
|
+
var p = ((t) => (t.ResponsiveTable = "ResponsiveTable", t.GridTable = "GridTable", t.AnalyticalTable = "AnalyticalTable", t))(p || {});
|
|
50933
|
+
var c = ((t) => (t.NewPage = "NewPage", t.Inline = "Inline", t.CreationRow = "CreationRow", t))(c || {});
|
|
50934
|
+
var l = ((t) => (t.Disabled = "Disabled", t.Enabled = "Enabled", t.Auto = "Auto", t))(l || {});
|
|
50935
|
+
var g = ((t) => (t.Primary = "primary", t.Secondary = "secondary", t.Both = "both", t))(g || {});
|
|
50936
|
+
var m = ((e) => (e.Compact = "Compact", e.CompactVisual = "CompactVisual", e))(m || {});
|
|
50937
|
+
var x = ((e) => (e.Compact = "Compact", e.Visual = "Visual", e))(x || {});
|
|
50938
|
+
var u = ((e) => (e.single = "single", e.multi = "multi", e))(u || {});
|
|
50939
|
+
var f = ((i) => (i["not-adaptable-visibility"] = "not-adaptable-visibility", i))(f || {});
|
|
50940
|
+
var b = ((e) => (e.Tabs = "Tabs", e.Page = "Page", e))(b || {});
|
|
50941
|
+
var S = ((e) => (e.After = "After", e.Before = "Before", e))(S || {});
|
|
50942
|
+
var C = ((o) => (o.XML = "XML", o))(C || {});
|
|
50943
|
+
var F = "sap.fe.templates";
|
|
50944
|
+
var _45 = "sap.fe.core.fpm";
|
|
50945
|
+
var L = "sap.fe.templates.ObjectPage";
|
|
50946
|
+
var B = "sap.fe.templates.ListReport";
|
|
50947
|
+
var v = "sap.fe.templates.AnalyticalListPage";
|
|
50948
|
+
var N = "XMLFragment";
|
|
50949
|
+
var P = ((e) => (e.AfterFacet = "AfterFacet", e.BeforeFacet = "BeforeFacet", e))(P || {});
|
|
50950
|
+
var M = "sap.f.routing.Router";
|
|
50951
|
+
var I = "sap.f";
|
|
50952
|
+
var k = "sap.ui.controllerExtensions";
|
|
50953
|
+
var G = "sap.fe.templates.ObjectPage.ObjectPageController";
|
|
50954
|
+
var H = "sap.fe.templates.ListReport.ListReportController";
|
|
50955
|
+
var T = ((e) => (e.After = "After", e.Before = "Before", e))(T || {});
|
|
50956
|
+
var d = ((t) => (t.Default = "Default", t.Adaptation = "Adaptation", t.Hidden = "Hidden", t))(d || {});
|
|
50957
|
+
var A = ((t) => (t.Begin = "Begin", t.Center = "Center", t.End = "End", t))(A || {});
|
|
50958
|
+
var V = ((e) => (e.None = "None", e.Control = "Control", e))(V || {});
|
|
50959
|
+
var y = ((t) => (t.None = "None", t.Control = "Control", t.Page = "Page", t))(y || {});
|
|
50960
|
+
module2.exports = j(D);
|
|
50961
|
+
}
|
|
50962
|
+
});
|
|
50963
|
+
|
|
50964
|
+
// ../../node_modules/@sap/ux-specification-types/dist/index.js
|
|
50965
|
+
var require_dist6 = __commonJS({
|
|
50966
|
+
"../../node_modules/@sap/ux-specification-types/dist/index.js"(exports2) {
|
|
50967
|
+
"use strict";
|
|
50968
|
+
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
50969
|
+
if (k2 === void 0)
|
|
50970
|
+
k2 = k;
|
|
50971
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
50972
|
+
return m[k];
|
|
50973
|
+
} });
|
|
50974
|
+
} : function(o, m, k, k2) {
|
|
50975
|
+
if (k2 === void 0)
|
|
50976
|
+
k2 = k;
|
|
50977
|
+
o[k2] = m[k];
|
|
50978
|
+
});
|
|
50979
|
+
var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) {
|
|
50980
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
50981
|
+
} : function(o, v) {
|
|
50982
|
+
o["default"] = v;
|
|
50983
|
+
});
|
|
50984
|
+
var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) {
|
|
50985
|
+
for (var p in m)
|
|
50986
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p))
|
|
50987
|
+
__createBinding(exports3, m, p);
|
|
50988
|
+
};
|
|
50989
|
+
var __importStar = exports2 && exports2.__importStar || function(mod) {
|
|
50990
|
+
if (mod && mod.__esModule)
|
|
50991
|
+
return mod;
|
|
50992
|
+
var result2 = {};
|
|
50993
|
+
if (mod != null) {
|
|
50994
|
+
for (var k in mod)
|
|
50995
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
50996
|
+
__createBinding(result2, mod, k);
|
|
50997
|
+
}
|
|
50998
|
+
__setModuleDefault(result2, mod);
|
|
50999
|
+
return result2;
|
|
51000
|
+
};
|
|
51001
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
51002
|
+
exports2.v4 = exports2.v2 = void 0;
|
|
51003
|
+
__exportStar(require_common7(), exports2);
|
|
51004
|
+
__exportStar(require_apiTypes(), exports2);
|
|
51005
|
+
exports2.v2 = __importStar(require_v2());
|
|
51006
|
+
exports2.v4 = __importStar(require_v4());
|
|
51007
|
+
}
|
|
51008
|
+
});
|
|
51009
|
+
|
|
50606
51010
|
// ../lib/sapux-spec/dist/pages/page.js
|
|
50607
51011
|
var require_page = __commonJS({
|
|
50608
51012
|
"../lib/sapux-spec/dist/pages/page.js"(exports2) {
|
|
50609
51013
|
"use strict";
|
|
50610
51014
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
50611
51015
|
exports2.PageType = void 0;
|
|
50612
|
-
var
|
|
50613
|
-
|
|
50614
|
-
PageType3["ObjectPage"] = "ObjectPage";
|
|
50615
|
-
PageType3["ListReport"] = "ListReport";
|
|
50616
|
-
PageType3["OverviewPage"] = "OverviewPage";
|
|
50617
|
-
PageType3["CustomPage"] = "CustomPage";
|
|
50618
|
-
PageType3["FPMCustomPage"] = "FPMCustomPage";
|
|
50619
|
-
PageType3["AnalyticalListPage"] = "AnalyticalListPage";
|
|
50620
|
-
})(PageType2 = exports2.PageType || (exports2.PageType = {}));
|
|
51016
|
+
var ux_specification_types_1 = require_dist6();
|
|
51017
|
+
exports2.PageType = { ...ux_specification_types_1.PageTypeV2, ...ux_specification_types_1.PageTypeV4 };
|
|
50621
51018
|
}
|
|
50622
51019
|
});
|
|
50623
51020
|
|
|
@@ -50628,9 +51025,13 @@ var require_pages = __commonJS({
|
|
|
50628
51025
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
50629
51026
|
if (k2 === void 0)
|
|
50630
51027
|
k2 = k;
|
|
50631
|
-
Object.
|
|
50632
|
-
|
|
50633
|
-
|
|
51028
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
51029
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
51030
|
+
desc = { enumerable: true, get: function() {
|
|
51031
|
+
return m[k];
|
|
51032
|
+
} };
|
|
51033
|
+
}
|
|
51034
|
+
Object.defineProperty(o, k2, desc);
|
|
50634
51035
|
} : function(o, m, k, k2) {
|
|
50635
51036
|
if (k2 === void 0)
|
|
50636
51037
|
k2 = k;
|
|
@@ -50722,9 +51123,13 @@ var require_manifest = __commonJS({
|
|
|
50722
51123
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
50723
51124
|
if (k2 === void 0)
|
|
50724
51125
|
k2 = k;
|
|
50725
|
-
Object.
|
|
50726
|
-
|
|
50727
|
-
|
|
51126
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
51127
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
51128
|
+
desc = { enumerable: true, get: function() {
|
|
51129
|
+
return m[k];
|
|
51130
|
+
} };
|
|
51131
|
+
}
|
|
51132
|
+
Object.defineProperty(o, k2, desc);
|
|
50728
51133
|
} : function(o, m, k, k2) {
|
|
50729
51134
|
if (k2 === void 0)
|
|
50730
51135
|
k2 = k;
|
|
@@ -50763,9 +51168,13 @@ var require_webapp = __commonJS({
|
|
|
50763
51168
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
50764
51169
|
if (k2 === void 0)
|
|
50765
51170
|
k2 = k;
|
|
50766
|
-
Object.
|
|
50767
|
-
|
|
50768
|
-
|
|
51171
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
51172
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
51173
|
+
desc = { enumerable: true, get: function() {
|
|
51174
|
+
return m[k];
|
|
51175
|
+
} };
|
|
51176
|
+
}
|
|
51177
|
+
Object.defineProperty(o, k2, desc);
|
|
50769
51178
|
} : function(o, m, k, k2) {
|
|
50770
51179
|
if (k2 === void 0)
|
|
50771
51180
|
k2 = k;
|
|
@@ -50839,7 +51248,7 @@ var require_constants3 = __commonJS({
|
|
|
50839
51248
|
FioriToolsSettings2["migrationSettingsFile"] = "migrationSettings.json";
|
|
50840
51249
|
})(FioriToolsSettings = exports2.FioriToolsSettings || (exports2.FioriToolsSettings = {}));
|
|
50841
51250
|
var getFioriToolsDirectory = () => {
|
|
50842
|
-
return path_1.join(os_1.homedir(), FioriToolsSettings.dir);
|
|
51251
|
+
return (0, path_1.join)((0, os_1.homedir)(), FioriToolsSettings.dir);
|
|
50843
51252
|
};
|
|
50844
51253
|
exports2.getFioriToolsDirectory = getFioriToolsDirectory;
|
|
50845
51254
|
var SchemeName;
|
|
@@ -50876,7 +51285,7 @@ var require_project = __commonJS({
|
|
|
50876
51285
|
})(ProjectType = exports2.ProjectType || (exports2.ProjectType = {}));
|
|
50877
51286
|
var DetailedProjectType;
|
|
50878
51287
|
(function(DetailedProjectType2) {
|
|
50879
|
-
DetailedProjectType2["
|
|
51288
|
+
DetailedProjectType2["Edmx"] = "EDMX Backend";
|
|
50880
51289
|
DetailedProjectType2["CAPNode"] = "CAP Node.js";
|
|
50881
51290
|
DetailedProjectType2["CAPJava"] = "CAP Java";
|
|
50882
51291
|
})(DetailedProjectType = exports2.DetailedProjectType || (exports2.DetailedProjectType = {}));
|
|
@@ -50884,15 +51293,19 @@ var require_project = __commonJS({
|
|
|
50884
51293
|
});
|
|
50885
51294
|
|
|
50886
51295
|
// ../lib/sapux-spec/dist/index.js
|
|
50887
|
-
var
|
|
51296
|
+
var require_dist7 = __commonJS({
|
|
50888
51297
|
"../lib/sapux-spec/dist/index.js"(exports2) {
|
|
50889
51298
|
"use strict";
|
|
50890
51299
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
50891
51300
|
if (k2 === void 0)
|
|
50892
51301
|
k2 = k;
|
|
50893
|
-
Object.
|
|
50894
|
-
|
|
50895
|
-
|
|
51302
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
51303
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
51304
|
+
desc = { enumerable: true, get: function() {
|
|
51305
|
+
return m[k];
|
|
51306
|
+
} };
|
|
51307
|
+
}
|
|
51308
|
+
Object.defineProperty(o, k2, desc);
|
|
50896
51309
|
} : function(o, m, k, k2) {
|
|
50897
51310
|
if (k2 === void 0)
|
|
50898
51311
|
k2 = k;
|
|
@@ -50977,6 +51390,7 @@ var require_EventName = __commonJS({
|
|
|
50977
51390
|
EventName3["GD_SIDE_BY_SIDE"] = "GD_SIDE_BY_SIDE";
|
|
50978
51391
|
EventName3["GD_WIZARD"] = "GD_WIZARD";
|
|
50979
51392
|
EventName3["GD_DESCMODE"] = "GD_DESCMODE";
|
|
51393
|
+
EventName3["GD_PROJECTVIEW"] = "GD_PROJECTVIEW";
|
|
50980
51394
|
EventName3["PAGEMAP"] = "PAGEMAP";
|
|
50981
51395
|
EventName3["APP_ACTIONS"] = "ACTIONS";
|
|
50982
51396
|
EventName3["PAGE_EDITOR"] = "PAGE_EDITOR";
|
|
@@ -62659,7 +63073,7 @@ var require_package5 = __commonJS({
|
|
|
62659
63073
|
"../lib/telemetry/dist/package.json"(exports2, module2) {
|
|
62660
63074
|
module2.exports = {
|
|
62661
63075
|
name: "@sap/ux-telemetry",
|
|
62662
|
-
version: "1.
|
|
63076
|
+
version: "1.9.1",
|
|
62663
63077
|
description: "SAP Fiori tools telemetry library",
|
|
62664
63078
|
main: "dist/src/index.js",
|
|
62665
63079
|
author: "SAP SE",
|
|
@@ -62684,20 +63098,20 @@ var require_package5 = __commonJS({
|
|
|
62684
63098
|
},
|
|
62685
63099
|
dependencies: {
|
|
62686
63100
|
"@sap-ux/store": "0.3.8",
|
|
62687
|
-
"@sap/ux-cds": "1.
|
|
62688
|
-
"@sap/ux-common-utils": "1.
|
|
62689
|
-
"@sap/ux-feature-toggle": "1.
|
|
62690
|
-
"@sap/ux-project-access": "1.
|
|
63101
|
+
"@sap/ux-cds": "1.9.1",
|
|
63102
|
+
"@sap/ux-common-utils": "1.9.1",
|
|
63103
|
+
"@sap/ux-feature-toggle": "1.9.1",
|
|
63104
|
+
"@sap/ux-project-access": "1.9.1",
|
|
62691
63105
|
applicationinsights: "1.4.1",
|
|
62692
63106
|
axios: "0.26.0",
|
|
62693
63107
|
"performance-now": "2.1.0",
|
|
62694
63108
|
yaml: "2.0.0-10"
|
|
62695
63109
|
},
|
|
62696
63110
|
devDependencies: {
|
|
62697
|
-
memfs: "3.4.
|
|
63111
|
+
memfs: "3.4.13",
|
|
62698
63112
|
"ts-jest": "28.0.8",
|
|
62699
63113
|
"ts-node": "8.5.2",
|
|
62700
|
-
typescript: "4.
|
|
63114
|
+
typescript: "4.9.4",
|
|
62701
63115
|
unionfs: "4.4.0"
|
|
62702
63116
|
},
|
|
62703
63117
|
files: [
|
|
@@ -62756,9 +63170,13 @@ var require_reporting = __commonJS({
|
|
|
62756
63170
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
62757
63171
|
if (k2 === void 0)
|
|
62758
63172
|
k2 = k;
|
|
62759
|
-
Object.
|
|
62760
|
-
|
|
62761
|
-
|
|
63173
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
63174
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
63175
|
+
desc = { enumerable: true, get: function() {
|
|
63176
|
+
return m[k];
|
|
63177
|
+
} };
|
|
63178
|
+
}
|
|
63179
|
+
Object.defineProperty(o, k2, desc);
|
|
62762
63180
|
} : function(o, m, k, k2) {
|
|
62763
63181
|
if (k2 === void 0)
|
|
62764
63182
|
k2 = k;
|
|
@@ -62825,7 +63243,7 @@ var require_reporting = __commonJS({
|
|
|
62825
63243
|
var _a2;
|
|
62826
63244
|
if (((_a2 = process.env.SAP_UX_FIORI_TOOLS_DISABLE_TELEMETRY) == null ? void 0 : _a2.trim()) !== "true") {
|
|
62827
63245
|
reportingTelemetryClient = new appInsights.TelemetryClient(telemetryPackageJSON.azureInstrumentationKey);
|
|
62828
|
-
telemetryClientConfig_1.configAzureTelemetryClient(reportingTelemetryClient);
|
|
63246
|
+
(0, telemetryClientConfig_1.configAzureTelemetryClient)(reportingTelemetryClient);
|
|
62829
63247
|
}
|
|
62830
63248
|
var reportRuntimeError = (error3) => {
|
|
62831
63249
|
const properties = { message: error3.message };
|
|
@@ -62878,16 +63296,16 @@ var require_system3 = __commonJS({
|
|
|
62878
63296
|
var reporting_1 = require_reporting();
|
|
62879
63297
|
var TelemetrySystem = class {
|
|
62880
63298
|
static init() {
|
|
62881
|
-
cloudDebugger_1.debug(`start System.init`);
|
|
62882
|
-
TelemetrySystem.modules = system_1.processMatchingPaths(TelemetrySystem.modules);
|
|
63299
|
+
(0, cloudDebugger_1.debug)(`start System.init`);
|
|
63300
|
+
TelemetrySystem.modules = (0, system_1.processMatchingPaths)(TelemetrySystem.modules);
|
|
62883
63301
|
let pathBase = TelemetrySystem.getMatchingModulePath(module2);
|
|
62884
|
-
cloudDebugger_1.debug(`base path: ${pathBase}`);
|
|
63302
|
+
(0, cloudDebugger_1.debug)(`base path: ${pathBase}`);
|
|
62885
63303
|
if (!pathBase) {
|
|
62886
|
-
TelemetrySystem.fallbackModules = system_1.processMatchingPaths(TelemetrySystem.fallbackModules);
|
|
63304
|
+
TelemetrySystem.fallbackModules = (0, system_1.processMatchingPaths)(TelemetrySystem.fallbackModules);
|
|
62887
63305
|
pathBase = TelemetrySystem.getMatchingModulePath(module2, true);
|
|
62888
63306
|
}
|
|
62889
63307
|
const manifestPath = TelemetrySystem.getManifestPath(pathBase);
|
|
62890
|
-
cloudDebugger_1.debug(`package.json path: ${manifestPath}`);
|
|
63308
|
+
(0, cloudDebugger_1.debug)(`package.json path: ${manifestPath}`);
|
|
62891
63309
|
TelemetrySystem.manifest = TelemetrySystem.getManifestJSON(manifestPath);
|
|
62892
63310
|
}
|
|
62893
63311
|
static getManifestJSON(path3) {
|
|
@@ -62900,7 +63318,7 @@ var require_system3 = __commonJS({
|
|
|
62900
63318
|
}
|
|
62901
63319
|
static getManifestPath(pathBase) {
|
|
62902
63320
|
let manifestPath = pathBase;
|
|
62903
|
-
if (ux_common_utils_1.isAppStudio() && manifestPath && manifestPath.indexOf("generators") < 0 && manifestPath.indexOf("deployment-generator") < 0 && manifestPath.indexOf("/ux-ui5-tooling") < 0) {
|
|
63321
|
+
if ((0, ux_common_utils_1.isAppStudio)() && manifestPath && manifestPath.indexOf("generators") < 0 && manifestPath.indexOf("deployment-generator") < 0 && manifestPath.indexOf("/ux-ui5-tooling") < 0) {
|
|
62904
63322
|
manifestPath = manifestPath.concat("/extension");
|
|
62905
63323
|
}
|
|
62906
63324
|
if (manifestPath && manifestPath.indexOf("language-server") > -1) {
|
|
@@ -62976,7 +63394,7 @@ var require_system3 = __commonJS({
|
|
|
62976
63394
|
TelemetrySystem.init();
|
|
62977
63395
|
}
|
|
62978
63396
|
} catch (err) {
|
|
62979
|
-
reporting_1.reportRuntimeError(err);
|
|
63397
|
+
(0, reporting_1.reportRuntimeError)(err);
|
|
62980
63398
|
}
|
|
62981
63399
|
}
|
|
62982
63400
|
});
|
|
@@ -63054,9 +63472,13 @@ var require_appInsightClient = __commonJS({
|
|
|
63054
63472
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
63055
63473
|
if (k2 === void 0)
|
|
63056
63474
|
k2 = k;
|
|
63057
|
-
Object.
|
|
63058
|
-
|
|
63059
|
-
|
|
63475
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
63476
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
63477
|
+
desc = { enumerable: true, get: function() {
|
|
63478
|
+
return m[k];
|
|
63479
|
+
} };
|
|
63480
|
+
}
|
|
63481
|
+
Object.defineProperty(o, k2, desc);
|
|
63060
63482
|
} : function(o, m, k, k2) {
|
|
63061
63483
|
if (k2 === void 0)
|
|
63062
63484
|
k2 = k;
|
|
@@ -63139,7 +63561,7 @@ var require_appInsightClient = __commonJS({
|
|
|
63139
63561
|
}
|
|
63140
63562
|
const client = new appInsights.TelemetryClient(this.applicationKey);
|
|
63141
63563
|
client.config.samplingPercentage = sampleRateNumer;
|
|
63142
|
-
telemetryClientConfig_1.configAzureTelemetryClient(client);
|
|
63564
|
+
(0, telemetryClientConfig_1.configAzureTelemetryClient)(client);
|
|
63143
63565
|
return client;
|
|
63144
63566
|
}
|
|
63145
63567
|
};
|
|
@@ -63175,10 +63597,10 @@ var require_toolsSuiteTelemetryClient = __commonJS({
|
|
|
63175
63597
|
super(applicationKey, extensionName, extensionVersion);
|
|
63176
63598
|
}
|
|
63177
63599
|
async report(eventName, properties, measurements, sampleRate, telemetryHelperProperties, ignoreSettings) {
|
|
63178
|
-
const fioriProjectCommonProperties = await toolsSuiteTelemetry_1.processToolsSuiteTelemetry(telemetryHelperProperties);
|
|
63600
|
+
const fioriProjectCommonProperties = await (0, toolsSuiteTelemetry_1.processToolsSuiteTelemetry)(telemetryHelperProperties);
|
|
63179
63601
|
const commonProperties = {
|
|
63180
63602
|
v: this.extensionVersion,
|
|
63181
|
-
datetime: date_1.localDatetimeToUTC()
|
|
63603
|
+
datetime: (0, date_1.localDatetimeToUTC)()
|
|
63182
63604
|
};
|
|
63183
63605
|
const finalProperties = {
|
|
63184
63606
|
...properties,
|
|
@@ -63188,10 +63610,10 @@ var require_toolsSuiteTelemetryClient = __commonJS({
|
|
|
63188
63610
|
await super.report(eventName, finalProperties, measurements, sampleRate, telemetryHelperProperties, ignoreSettings);
|
|
63189
63611
|
}
|
|
63190
63612
|
async reportEvent(event, sampleRate, telemetryHelperProperties, ignoreSettings) {
|
|
63191
|
-
const fioriProjectCommonProperties = await toolsSuiteTelemetry_1.processToolsSuiteTelemetry(telemetryHelperProperties);
|
|
63613
|
+
const fioriProjectCommonProperties = await (0, toolsSuiteTelemetry_1.processToolsSuiteTelemetry)(telemetryHelperProperties);
|
|
63192
63614
|
const telemetryEventCommonProperties = {
|
|
63193
63615
|
v: this.extensionVersion,
|
|
63194
|
-
datetime: date_1.localDatetimeToUTC()
|
|
63616
|
+
datetime: (0, date_1.localDatetimeToUTC)()
|
|
63195
63617
|
};
|
|
63196
63618
|
const finalProperties = {
|
|
63197
63619
|
...event.properties,
|
|
@@ -63329,350 +63751,6 @@ var require_findit2 = __commonJS({
|
|
|
63329
63751
|
}
|
|
63330
63752
|
});
|
|
63331
63753
|
|
|
63332
|
-
// ../../node_modules/@sap/ux-specification-types/dist/common.js
|
|
63333
|
-
var require_common7 = __commonJS({
|
|
63334
|
-
"../../node_modules/@sap/ux-specification-types/dist/common.js"(exports2, module2) {
|
|
63335
|
-
var P = Object.defineProperty;
|
|
63336
|
-
var Ge = Object.getOwnPropertyDescriptor;
|
|
63337
|
-
var He = Object.getOwnPropertyNames;
|
|
63338
|
-
var We = Object.prototype.hasOwnProperty;
|
|
63339
|
-
var Xe = (S) => P(S, "__esModule", { value: true });
|
|
63340
|
-
var d = (S, i) => {
|
|
63341
|
-
for (var o in i)
|
|
63342
|
-
P(S, o, { get: i[o], enumerable: true });
|
|
63343
|
-
};
|
|
63344
|
-
var Qe = (S, i, o, t) => {
|
|
63345
|
-
if (i && typeof i == "object" || typeof i == "function")
|
|
63346
|
-
for (let s of He(i))
|
|
63347
|
-
!We.call(S, s) && (o || s !== "default") && P(S, s, { get: () => i[s], enumerable: !(t = Ge(i, s)) || t.enumerable });
|
|
63348
|
-
return S;
|
|
63349
|
-
};
|
|
63350
|
-
var Ke = ((S) => (i, o) => S && S.get(i) || (o = Qe(Xe({}), i, 1), S && S.set(i, o), o))(typeof WeakMap != "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
63351
|
-
var Ut = {};
|
|
63352
|
-
d(Ut, { ALPViewType: () => h, ActionTitlePrefix: () => ze, ArtifactType: () => F, BindingPropertyRegexAsString: () => qe, ControlType: () => v, CustomExtensionType: () => D, DATESETTINGSPATH: () => it, DataSourceType: () => N, DefinitionName: () => k, DirName: () => U, DraftDiscardEnabledSettings: () => X, ExportArtifacts: () => j, FIORI_FCL_ROOT_ID: () => ct, FIORI_FCL_ROOT_VIEW_NAME: () => pt, FRAGMENTNAMEPART: () => rt, FacetBase: () => M, FacetTitlePrefix: () => Ne, Features: () => Z, FileName: () => w, FioriElementsVersion: () => E, FlexChangeLayer: () => O, FlexibleColumnLayoutAggregations: () => Y, FlexibleColumnLayoutType: () => V, GENERICAPPSETTINGS: () => st, LogSeverity: () => J, LogSeverityLabel: () => mt, MANIFESTPATH: () => $e, METADATAPATH: () => Je, MacrosPropertyType: () => W, ManifestSection: () => z, OdataVersion: () => y, PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP: () => Ye, PageType: () => C, PageTypeV4: () => f, PropertyName: () => B, QUICKVARPATH: () => at, QUICKVARPATHX: () => nt, SAPUI5_FRAGMENT_CLASS: () => gt2, SAPUI5_VIEW_CLASS: () => lt, SchemaKeyName: () => H, SchemaTag: () => G, SchemaType: () => L, SectionType: () => R, StatePreservationMode: () => K, TableColumnVerticalAlignment: () => Q, TemplateType: () => $, UIVOCABULARY: () => et, UIVOCABULARYALPHADOT: () => ot, UIVOCABULARYDOT: () => tt, VOCWITHCOLONS: () => Ze, VOCWITHSLASH: () => De, ViewTemplateType: () => _45, ViewTypes: () => q, Visualization: () => I, v2: () => A, v4: () => T });
|
|
63353
|
-
var C = ((n) => (n.ObjectPage = "ObjectPage", n.ListReport = "ListReport", n.OverviewPage = "OverviewPage", n.CustomPage = "CustomPage", n.AnalyticalListPage = "AnalyticalListPage", n))(C || {});
|
|
63354
|
-
var f = ((n) => (n.ObjectPage = "ObjectPage", n.ListReport = "ListReport", n.CustomPage = "CustomPage", n.FPMCustomPage = "FPMCustomPage", n.AnalyticalListPage = "AnalyticalListPage", n))(f || {});
|
|
63355
|
-
var Ye = /* @__PURE__ */ new Map([["ListReport", "sap.suite.ui.generic.template.ListReport.view.ListReport"], ["AnalyticalListPage", "sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"], ["ObjectPage", "sap.suite.ui.generic.template.ObjectPage.view.Details"]]);
|
|
63356
|
-
var E = ((o) => (o.v2 = "v2", o.v4 = "v4", o))(E || {});
|
|
63357
|
-
var y = ((o) => (o.v2 = "v2", o.v4 = "v4", o))(y || {});
|
|
63358
|
-
var V = ((m) => (m.OneColumn = "OneColumn", m.TwoColumnsBeginExpanded = "TwoColumnsBeginExpanded", m.TwoColumnsMidExpanded = "TwoColumnsMidExpanded", m.MidColumnFullScreen = "MidColumnFullScreen", m.ThreeColumnsMidExpanded = "ThreeColumnsMidExpanded", m.ThreeColumnsEndExpanded = "ThreeColumnsEndExpanded", m.ThreeColumnsMidExpandedEndHidden = "ThreeColumnsMidExpandedEndHidden", m.ThreeColumnsBeginExpandedEndHidden = "ThreeColumnsBeginExpandedEndHidden", m.EndColumnFullScreen = "EndColumnFullScreen", m))(V || {});
|
|
63359
|
-
var O = ((o) => (o.Vendor = "VENDOR", o.Customer = "CUSTOMER_BASE", o))(O || {});
|
|
63360
|
-
var L = ((b) => (b.Application = "Application", b.ObjectPage = "ObjectPage", b.ListReport = "ListReport", b.OverviewPage = "OverviewPage", b.AnalyticalListPage = "AnalyticalListPage", b.FreestylePage = "FreestylePage", b.FPMCustomPage = "FPMCustomPage", b.BuildingBlocks = "BuildingBlocks", b))(L || {});
|
|
63361
|
-
var j = ((o) => (o.flex = "flex", o.manifest = "manifest", o))(j || {});
|
|
63362
|
-
var h = ((o) => (o.Primary = "primary", o.Secondary = "secondary", o))(h || {});
|
|
63363
|
-
var R = ((t) => (t.Section = "Section", t.SubSection = "SubSection", t.HeaderSection = "HeaderSection", t))(R || {});
|
|
63364
|
-
var F = ((n) => (n.Manifest = "Manifest", n.FlexChange = "FlexChange", n.Annotation = "Annotation", n.Fragment = "Fragment", n.View = "View", n))(F || {});
|
|
63365
|
-
var v = ((g) => (g.Table = "sap.m.Table", g.TableColumn = "sap.m.Column", g.SmartTable = "sap.ui.comp.smarttable.SmartTable", g.SmartFilterBar = "sap.ui.comp.smartfilterbar.SmartFilterBar", g.SmartChart = "sap.ui.comp.smartchart.SmartChart", g.Group = "sap.ui.comp.smartform.Group", g.GroupElement = "sap.ui.comp.smartform.GroupElement", g.Button = "sap.m.Button", g.ToolbarButton = "sap.m.OverflowToolbarButton", g.Avatar = "sap.f.Avatar", g.ObjectPageDynamicHeaderTitle = "sap.uxap.ObjectPageDynamicHeaderTitle", g.ObjectPageGridProperties = "sap.ui.layout.GridData", g.ObjectPageHeader = "sap.uxap.ObjectPageHeader", g.ObjectPageLayout = "sap.uxap.ObjectPageLayout", g.HeaderAction = "sap.uxap.ObjectPageHeaderActionButton", g.DynamicPage = "sap.f.DynamicPage", g.Form = "sap.ui.layout.form", g.Chart = "sap.suite.ui.microchart", g.Section = "sap.uxap.ObjectPageSection", g.SubSection = "sap.uxap.ObjectPageSubSection", g))(v || {});
|
|
63366
|
-
var I = ((o) => (o.LineItem = "LineItem", o.Chart = "Chart", o))(I || {});
|
|
63367
|
-
var U = ((p) => (p.Sapux = "src", p.Schemas = ".schemas", p.Pages = "pages", p.Webapp = "webapp", p.Temp = ".tmp", p.Changes = "changes", p.LocalService = "localService", p.Controller = "controller", p.View = "view", p.Fragment = "fragment", p.Ext = "ext", p.VSCode = ".vscode", p))(U || {});
|
|
63368
|
-
var w = ((i) => (i.App = "app.json", i))(w || {});
|
|
63369
|
-
var Ne = "Facet ID: ";
|
|
63370
|
-
var ze = "Action ID: ";
|
|
63371
|
-
var M = ((c) => (c.LineItem = "LineItem", c.CollectionFacet = "CollectionFacet", c.Chart = "Chart", c.Form = "Form", c.Identification = "Identification", c.DataPoint = "DataPoint", c.Address = "Address", c.Contact = "Contact", c.PresentationVariant = "PresentationVariant", c.Unknown = "", c))(M || {});
|
|
63372
|
-
var qe = "^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$";
|
|
63373
|
-
var _45 = ((n) => (n.ResponsiveTableColumnsExtension = "ResponsiveTableColumnsExtension", n.AnalyticalTableColumnsExtension = "AnalyticalTableColumnsExtension", n.TreeTableColumnsExtension = "TreeTableColumnsExtension", n.GridTableColumnsExtension = "GridTableColumnsExtension", n.ResponsiveTableCellsExtension = "ResponsiveTableCellsExtension", n))(_45 || {});
|
|
63374
|
-
var k = ((e) => (e.Action = "Action", e.Actions = "Actions", e.ActionsLR = "Actions<LineItems>", e.ALPChart = "ALPChart", e.ALPChartView = "ALPChartView", e.ALPTable = "ALPTable", e.ALPTableView = "ALPTableView", e.AnalyticalListPageFilterBar = "AnalyticalListPageFilterBar", e.AnnotationPathAsObject = "AnnotationPathAsObject", e.ChartToolBarAction = "ChartToolBarAction", e.CommonHeaderFacetSettings = "CommonHeaderFacetSettings", e.CustomFooterActionOP = "CustomFooterActionOP", e.CustomHeaderActionOP = "CustomHeaderActionOP", e.CustomFormActionOP = "CustomFormActionOP", e.CustomTableAction = "CustomTableAction", e.CustomTableActionOP = "CustomTableActionOP", e.CustomColumn = "TableCustomColumn", e.CustomColumnOP = "TableCustomColumnOP", e.CustomColumns = "TableCustomColumns", e.CustomSections = "CustomSections", e.FieldPath = "FieldPath", e.Field = "Field", e.Fields = "Fields", e.Fields4Dialog = "Fields4Dialog", e.FilterBar = "FilterBar", e.Footer = "Footer", e.FooterAction = "FooterAction", e.FooterActionV4 = "FooterActionV4", e.FooterActions = "FooterActions", e.FooterActionsLR = "FooterActions<LineItems>", e.Form = "Form", e.FormAction = "FormAction", e.GenericActions = "GenericActions", e.GenericColumnsOP = "GenericColumnsOP", e.GenericFooter = "GenericFooter", e.GenericSections = "GenericSections", e.HeaderActions = "HeaderActions", e.HeaderActionV4 = "HeaderActionV4", e.HeaderSections = "HeaderSections", e.LineItems = "LineItems", e.LineItemsOfView = "LineItemsOfView", e.ListReportFilterBar = "ListReportFilterBar", e.LRTableView = "LRTableView", e.LRChartView = "LRChartView", e.MultiEditV2 = "MultiEdit", e.MultiTableModeV4 = "MultiTableModeV4", e.ObjectPageChart = "ObjectPageChart", e.ObjectPageCustomSectionFragment = "ObjectPageCustomSectionFragment", e.ObjectPageForm = "ObjectPageForm", e.ObjectPageFooter = "ObjectPageFooter", e.ObjectPageFooterAction = "ObjectPageFooterAction", e.ObjectPageFooterActions = "ObjectPageFooterActions", e.ObjectPageHeader = "ObjectPageHeader", e.ObjectPageHeaderSectionForm = "ObjectPageHeaderSectionForm", e.ObjectPageHeaderSectionChart = "ObjectPageHeaderSectionChart", e.ObjectPageHeaderSectionDataPoint = "ObjectPageHeaderSectionDataPoint", e.ObjectPageHeaderSectionContact = "ObjectPageHeaderSectionContact", e.ObjectPageHeaderSectionAddress = "ObjectPageHeaderSectionAddress", e.ObjectPageLayout = "ObjectPageLayout", e.ObjectPagePresentationVariant = "ObjectPagePresentationVariant", e.ObjectPageSectionAddress = "ObjectPageSectionAddress", e.ObjectPageSectionChart = "ObjectPageSectionChart", e.ObjectPageSectionContact = "ObjectPageSectionContact", e.ObjectPageSectionDataPoint = "ObjectPageSectionDataPoint", e.ObjectPageSectionForm = "ObjectPageSectionForm", e.ObjectPageSectionPresentationVariant = "ObjectPageSectionPresentationVariant", e.ObjectPageSectionTableV4 = "ObjectPageSectionTableV4", e.ObjectPageSubSections = "ObjectPageSubSections", e.ObjectPageTable = "ObjectPageTable", e.ObjectPageTableColumn = "ObjectPageTableColumn", e.ObjectPageToolBar = "ObjectPageToolBar", e.ObjectPageToolBarAction = "ObjectPageToolBarAction", e.ObjectPageToolBarActions = "ObjectPageToolBarActions", e.Position = "Position", e.PositionOP = "PositionOP", e.QuickVariant = "QuickVariant", e.QuickVariantSelectionOP = "QuickVariantSelectionOP", e.QuickVariantSelectionV4OP = "QuickVariantSelectionV4OP", e.RelatedFacetKeys = "RelatedFacetKeys", e.Sections = "Sections", e.SectionActions = "SectionActions", e.SelectionFields = "SelectionFields", e.Table = "Table", e.TableSPV = "TableSPV", e.TableColumn = "TableColumn", e.TableViewExtension = "TableViewExtension", e.ToolBarAction = "ToolBarAction", e.ToolBarLR = "ToolBar<LineItems>", e.ToolBar = "ToolBar", e.ViewTableColumn = "ViewTableColumn", e.ViewCustomColumn = "ViewTableCustomColumn", e.ViewCustomAction = "ViewTableCustomAction", e.ViewChartToolBar = "ViewChartToolBar", e.ViewToolBarAction = "ViewToolBarAction", e.ViewPosition = "ViewPosition", e.ViewCustomActionPosition = "ViewCustomActionPosition", e.CustomActionPosition = "CustomActionPosition", e.CustomActionPositionOP = "CustomActionPositionOP", e.CustomHeaderActionPositionOP = "CustomHeaderActionPositionOP", e.CustomFooterActionPositionOP = "CustomFooterActionPositionOP", e))(k || {});
|
|
63375
|
-
var B = ((c) => (c.actions = "actions", c.annotationPath = "annotationPath", c.chart = "chart", c.defaultPath = "defaultPath", c.defaultTemplateAnnotationPath = "defaultTemplateAnnotationPath", c.sections = "sections", c.table = "table", c.views = "views", c.header = "header", c.footer = "footer", c))(B || {});
|
|
63376
|
-
var G = ((p) => (p.annotationPath = "annotationPath", p.annotationType = "annotationType", p.artifactType = "artifactType", p.controlType = "controlType", p.dataType = "dataType", p.fullyQualifiedName = "fullyQualifiedName", p.hidden = "hidden", p.isViewNode = "isViewNode", p.key = "key", p.keys = "keys", p.target = "target", p.propertyIndex = "propertyIndex", p))(G || {});
|
|
63377
|
-
var H = ((n) => (n.id = "ID", n.value = "Value", n.action = "Action", n.target = "Target", n.key = "Key", n))(H || {});
|
|
63378
|
-
var Je = "webapp/localService/metadata.xml";
|
|
63379
|
-
var $e = "webapp/manifest.json";
|
|
63380
|
-
var De = "/@com.sap.vocabularies";
|
|
63381
|
-
var Ze = "::@com.sap.vocabularies";
|
|
63382
|
-
var et = "com.sap.vocabularies.UI.v1";
|
|
63383
|
-
var tt = "com.sap.vocabularies.UI.v1.";
|
|
63384
|
-
var ot = "@com.sap.vocabularies.UI.v1.";
|
|
63385
|
-
var at = "/quickVariantSelection";
|
|
63386
|
-
var nt = "/quickVariantSelectionX";
|
|
63387
|
-
var it = "/filterSettings/dateSettings";
|
|
63388
|
-
var rt = ".fragment.";
|
|
63389
|
-
var W = ((s) => (s.Control = "Control", s.Property = "Property", s.Aggregation = "Aggregation", s.Event = "Event", s))(W || {});
|
|
63390
|
-
var X = ((i) => (i.restricted = "restricted", i))(X || {});
|
|
63391
|
-
var Q = ((t) => (t.Top = "Top", t.Middle = "Middle", t.Bottom = "Bottom", t))(Q || {});
|
|
63392
|
-
var K = ((o) => (o.persistence = "persistence", o.discovery = "discovery", o))(K || {});
|
|
63393
|
-
var Y = ((t) => (t.BeginColumnPages = "beginColumnPages", t.MidColumnPages = "midColumnPages", t.EndColumnPages = "endColumnPages", t))(Y || {});
|
|
63394
|
-
var N = ((o) => (o.OData = "OData", o.ODataAnnotation = "ODataAnnotation", o))(N || {});
|
|
63395
|
-
var z = ((n) => (n.ui = "sap.ui", n.app = "sap.app", n.generic = "sap.ui.generic.app", n.ovp = "sap.ovp", n.ui5 = "sap.ui5", n))(z || {});
|
|
63396
|
-
var st = `${"sap.ui.generic.app"}/settings`;
|
|
63397
|
-
var pt = "sap.fe.templates.RootContainer.view.Fcl";
|
|
63398
|
-
var ct = "appRootView";
|
|
63399
|
-
var q = ((t) => (t.XML = "XML", t.HTML = "HTML", t.JSON = "JSON", t))(q || {});
|
|
63400
|
-
var lt = "sap.ui.core.mvc.View";
|
|
63401
|
-
var gt2 = "sap.ui.core.Fragment";
|
|
63402
|
-
var J = ((t) => (t.Error = "error", t.Warning = "warning", t.Info = "info", t))(J || {});
|
|
63403
|
-
var mt = { ["error"]: "Error", ["warning"]: "Warning", ["info"]: "Information" };
|
|
63404
|
-
var $ = ((u) => (u.ListReportObjectPageV2 = "ListReportObjectPageV2", u.ListReportObjectPageV4 = "ListReportObjectPageV4", u.OverviewPageV2 = "OverviewPageV2", u.AnalyticalListPageV2 = "AnalyticalListPageV2", u.AnalyticalListPageV4 = "AnalyticalListPageV4", u.FreestylePageV4 = "FreestylePageV4", u))($ || {});
|
|
63405
|
-
var D = ((x) => (x.CustomPage = "CustomPage", x.CustomColumn = "CustomColumn", x.CustomSection = "CustomSection", x.ObjectPage = "ObjectPage", x.CustomAction = "CustomAction", x.CustomView = "CustomView", x.ControllerExtension = "ControllerExtension", x))(D || {});
|
|
63406
|
-
var Z = ((i) => (i.BuildingBlocks = "BuildingBlocks", i))(Z || {});
|
|
63407
|
-
var A = {};
|
|
63408
|
-
d(A, { CardSettingsType: () => oe, CardTemplateType: () => te, ChartCardType: () => ee, ChartType: () => de, ContainerLayoutType: () => fe, CreateMode: () => Ce, DateRangeType: () => pe, DefaultContentView: () => xe, DefaultDateRangeValueType: () => ce, DefaultFilterMode: () => ue, ExtensionFragmentTypes: () => Te, FE_TEMPLATE_V2: () => St, FE_TEMPLATE_V2_ALP: () => Pt, FE_TEMPLATE_V2_LIST_REPORT: () => ut, FE_TEMPLATE_V2_OBJECT_PAGE: () => xt, IgnoredFieldsType: () => Se, LinkListFlavorType: () => se, ListFlavorType: () => ne, ListTypeType: () => ie, LoadDataOnAppLaunchSettings: () => Pe, MeasureAggregateValues: () => ae, SAPUI5_CONTROLLER_EXTENSION: () => At, SAPUI5_VIEW_EXTENSION: () => dt, SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE: () => ft, SAPUI5_VIEW_EXTENSION_LIST_REPORT: () => Ct, SAPUI5_VIEW_EXTENSION_OBJECT_PAGE: () => Tt, SectionPosition: () => Ae, SortOrderType: () => re, Strategy: () => be, TableColumnExtensionTypeV2: () => me, TableTypeV2: () => ge, cardTemplateTypeMap: () => bt, customColumnViewTypes: () => le });
|
|
63409
|
-
var ee = ((t) => (t.cardBubble = "cardBubble", t.cardchartsline = "cardchartsline", t.cardchartsdonut = "cardchartsdonut", t))(ee || {});
|
|
63410
|
-
var te = ((m) => (m.analytical = "sap.ovp.cards.charts.analytical", m.analyticalv4 = "sap.ovp.cards.v4.charts.analytical", m.list = "sap.ovp.cards.list", m.listv4 = "sap.ovp.cards.v4.list", m.linklist = "sap.ovp.cards.linklist", m.linklistv4 = "sap.ovp.cards.v4.linklist", m.table = "sap.ovp.cards.table", m.tablev4 = "sap.ovp.cards.v4.table", m.stack = "sap.ovp.cards.stack", m))(te || {});
|
|
63411
|
-
var bt = { "sap.ovp.cards.charts.analytical": "AnalyticalCard", "sap.ovp.cards.v4.charts.analytical": "AnalyticalCard", "sap.ovp.cards.list": "ListCard", "sap.ovp.cards.v4.list": "ListCard", "sap.ovp.cards.linklist": "LinklistCard", "sap.ovp.cards.v4.linklist": "LinklistCard", "sap.ovp.cards.table": "TableCard", "sap.ovp.cards.v4.table": "TableCard", "sap.ovp.cards.stack": "StackCard" };
|
|
63412
|
-
var oe = ((b) => (b.analyticalCardSettings = "analyticalCardSettings", b.analyticalCardSettingsv4 = "analyticalCardSettingsv4", b.listCardSettings = "listCardSettings", b.listCardSettingsv4 = "listCardSettingsv4", b.stackCardSettings = "stackCardSettings", b.linkListCardSettings = "linkListCardSettings", b.tableCardSettings = "tableCardSettings", b.tableCardSettingsv4 = "tableCardSettingsv4", b))(oe || {});
|
|
63413
|
-
var ae = ((n) => (n.average = "average", n.max = "max", n.min = "min", n.sum = "sum", n.count = "$count", n))(ae || {});
|
|
63414
|
-
var ne = ((t) => (t.standard = "standard", t.bar = "bar", t.carousel = "carousel", t))(ne || {});
|
|
63415
|
-
var ie = ((o) => (o.extended = "extended", o.condensed = "condensed", o))(ie || {});
|
|
63416
|
-
var re = ((o) => (o.ascending = "ascending", o.descending = "descending", o))(re || {});
|
|
63417
|
-
var se = ((o) => (o.standard = "standard", o.carousel = "carousel", o))(se || {});
|
|
63418
|
-
var pe = ((a) => (a.DATERANGE = "DATERANGE", a.DATE = "DATE", a.FROM = "FROM", a.TO = "TO", a.DAYS = "DAYS", a.LASTDAYS = "LASTDAYS", a.LASTWEEKS = "LASTWEEKS", a.WEEK = "WEEK", a.LASTMONTHS = "LASTMONTHS", a.MONTH = "MONTH", a.QUARTER = "QUARTER", a.LASTQUARTERS = "LASTQUARTERS", a.LASTYEARS = "LASTYEARS", a.LASTYEAR = "LASTYEAR", a.YEAR = "YEAR", a.NEXTDAYS = "NEXTDAYS", a.NEXTWEEKS = "NEXTWEEKS", a.NEXTMONTHS = "NEXTMONTHS", a.NEXTQUARTERS = "NEXTQUARTERS", a.NEXTYEARS = "NEXTYEARS", a.NEXT = "NEXT", a.SPECIFICMONTH = "SPECIFICMONTH", a.YESTERDAY = "YESTERDAY", a.YEARTODATE = "YEARTODATE", a.TODAY = "TODAY", a.TOMORROW = "TOMORROW", a.THISWEEK = "THISWEEK", a.LASTWEEK = "LASTWEEK", a.LAST2WEEKS = "LAST2WEEKS", a.LAST3WEEKS = "LAST3WEEKS", a.LAST4WEEKS = "LAST4WEEKS", a.LAST5WEEKS = "LAST5WEEKS", a.NEXTWEEK = "NEXTWEEK", a.NEXT2WEEKS = "NEXT2WEEKS", a.NEXT3WEEKS = "NEXT3WEEKS", a.NEXT4WEEKS = "NEXT4WEEKS", a.NEXT5WEEKS = "NEXT5WEEKS", a.THISMONTH = "THISMONTH", a.LASTMONTH = "LASTMONTH", a.NEXTMONTH = "NEXTMONTH", a.THISQUARTER = "THISQUARTER", a.LASTQUARTER = "LASTQUARTER", a.NEXTQUARTER = "NEXTQUARTER", a.QUARTER1 = "QUARTER1", a.QUARTER2 = "QUARTER2", a.QUARTER3 = "QUARTER3", a.QUARTER4 = "QUARTER4", a.TODAYFROMTO = "TODAYFROMTO", a))(pe || {});
|
|
63419
|
-
var ce = ((l) => (l.YESTERDAY = "YESTERDAY", l.TODAY = "TODAY", l.THISWEEK = "THISWEEK", l.LASTWEEK = "LASTWEEK", l.THISMONTH = "THISMONTH", l.TOMORROW = "TOMORROW", l.LASTMONTH = "LASTMONTH", l.THISQUARTER = "THISQUARTER", l.LASTQUARTER = "LASTQUARTER", l.THISYEAR = "THISYEAR", l.LASTYEAR = "LASTYEAR", l.LAST2WEEKS = "LAST2WEEKS", l.LAST3WEEKS = "LAST3WEEKS", l.LAST4WEEKS = "LAST4WEEKS", l.LAST5WEEKS = "LAST5WEEKS", l.YEARTODATE = "YEARTODATE", l.QUARTER1 = "QUARTER1", l.QUARTER2 = "QUARTER2", l.QUARTER3 = "QUARTER3", l.QUARTER4 = "QUARTER4", l.DATETOYEAR = "DATETOYEAR", l))(ce || {});
|
|
63420
|
-
var le = ((i) => (i.XML = "XML", i))(le || {});
|
|
63421
|
-
var ge = ((s) => (s.ResponsiveTable = "ResponsiveTable", s.GridTable = "GridTable", s.AnalyticalTable = "AnalyticalTable", s.TreeTable = "TreeTable", s))(ge || {});
|
|
63422
|
-
var me = ((s) => (s.ResponsiveTableColumnsExtension = "ResponsiveTableColumnsExtension", s.AnalyticalTableColumnsExtension = "AnalyticalTableColumnsExtension", s.TreeTableColumnsExtension = "TreeTableColumnsExtension", s.GridTableColumnsExtension = "GridTableColumnsExtension", s))(me || {});
|
|
63423
|
-
var be = ((i) => (i.extension = "extension", i))(be || {});
|
|
63424
|
-
var Se = ((i) => (i.GENERICPROPERTY = "GENERICPROPERTY", i))(Se || {});
|
|
63425
|
-
var xe = ((t) => (t.charttable = "charttable", t.chart = "chart", t.table = "table", t))(xe || {});
|
|
63426
|
-
var ue = ((o) => (o.visual = "visual", o.compact = "compact", o))(ue || {});
|
|
63427
|
-
var Pe = ((t) => (t.always = "always", t.never = "never", t.ifAnyFilterExist = "ifAnyFilterExist", t))(Pe || {});
|
|
63428
|
-
var de = ((r) => (r.bar = "bar", r.column = "column", r.line = "line", r.combination = "combination", r.pie = "pie", r.donut = "donut", r.scatter = "scatter", r.bubble = "bubble", r.heatmap = "heatmap", r.bullet = "bullet", r.verticalBullet = "vertical_bullet", r.stackedBar = "stacked_bar", r.stackedColumn = "stacked_column", r.stackedCombination = "stacked_combination", r.horizontalStackedCombination = "horizontal_stacked_combination", r.dualBar = "dual_bar", r.dualColumn = "dual_column", r.dualLine = "dual_line", r.dualStackedBar = "dual_stacked_bar", r.dualStackedColumn = "dual_stacked_column", r.dualCombination = "dual_combination", r.dualStackedCombination = "dual_stacked_combination", r.dualHorizontalCombination = "dual_horizontal_combination", r.dualHorizontalStackedCombination = "dual_horizontal_stacked_combination", r.hundredStackedBar = "100_stacked_bar", r.hundredStackedColumn = "100_stacked_column", r.hundredDualStackedBar = "100_dual_stacked_bar", r.hundredDualStackedColumn = "100_dual_stacked_column", r.waterfall = "waterfall", r.horizontalWaterfall = "horizontal_waterfall", r))(de || {});
|
|
63429
|
-
var Ae = ((t) => (t.AfterFacet = "AfterFacet", t.BeforeFacet = "BeforeFacet", t.ReplaceFacet = "ReplaceFacet", t))(Ae || {});
|
|
63430
|
-
var Te = ((i) => (i.XML = "XML", i))(Te || {});
|
|
63431
|
-
var Ce = ((i) => (i.inline = "inline", i))(Ce || {});
|
|
63432
|
-
var St = "sap.suite.ui.generic.template";
|
|
63433
|
-
var xt = "sap.suite.ui.generic.template.ObjectPage";
|
|
63434
|
-
var ut = "sap.suite.ui.generic.template.ListReport";
|
|
63435
|
-
var Pt = "sap.suite.ui.generic.template.AnalyticalListPage";
|
|
63436
|
-
var dt = "sap.ui.viewExtensions";
|
|
63437
|
-
var At = "sap.ui.controllerExtensions";
|
|
63438
|
-
var Tt = "sap.suite.ui.generic.template.ObjectPage.view.Details";
|
|
63439
|
-
var Ct = "sap.suite.ui.generic.template.ListReport.view.ListReport";
|
|
63440
|
-
var ft = "sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage";
|
|
63441
|
-
var fe = ((o) => (o.fixed = "fixed", o.resizable = "resizable", o))(fe || {});
|
|
63442
|
-
var T = {};
|
|
63443
|
-
d(T, { ActionPlacement: () => Ee, Availability: () => Me, CustomSectionViewTypesV4: () => Ie, DefaultPathType: () => je, DesigntimeValues: () => Re, FE_TEMPLATE_V4: () => Et, FE_TEMPLATE_V4_ALP: () => Lt, FE_TEMPLATE_V4_CUSTOM_PAGE: () => yt, FE_TEMPLATE_V4_LIST_REPORT: () => Ot, FE_TEMPLATE_V4_OBJECT_PAGE: () => Vt, FIORI_FCL_ROUTER_CLASS: () => ht, HorizontalAlign: () => _e, InitialLoadType: () => Le, Placement: () => we, SAPUI5_CONTROLLER_EXTENSION: () => Ft, SAPUI5_DEPENDENCY_LIB_SAP_F: () => Rt, SAPUI5_FRAGMENT_TYPE_V4: () => jt, SAPUI5_VIEW_EXTENSION_LIST_REPORT: () => It, SAPUI5_VIEW_EXTENSION_OBJECT_PAGE: () => vt, SectionLayoutType: () => Fe, SectionPosition: () => ve, SectionPositionV4: () => Ue, SelectType: () => he, SelectionMode: () => ye, TableCreationModeType: () => Oe, TableTypeV4: () => Ve, VariantManagementTypeListReport: () => Be, VariantManagementTypeObjectPage: () => ke });
|
|
63444
|
-
var Ee = ((o) => (o.After = "After", o.Before = "Before", o))(Ee || {});
|
|
63445
|
-
var ye = ((s) => (s.Multi = "Multi", s.None = "None", s.Single = "Single", s.Auto = "Auto", s))(ye || {});
|
|
63446
|
-
var Ve = ((t) => (t.ResponsiveTable = "ResponsiveTable", t.GridTable = "GridTable", t.AnalyticalTable = "AnalyticalTable", t))(Ve || {});
|
|
63447
|
-
var Oe = ((t) => (t.NewPage = "NewPage", t.Inline = "Inline", t.CreationRow = "CreationRow", t))(Oe || {});
|
|
63448
|
-
var Le = ((t) => (t.Disabled = "Disabled", t.Enabled = "Enabled", t.Auto = "Auto", t))(Le || {});
|
|
63449
|
-
var je = ((t) => (t.Primary = "primary", t.Secondary = "secondary", t.Both = "both", t))(je || {});
|
|
63450
|
-
var he = ((o) => (o.single = "single", o.multi = "multi", o))(he || {});
|
|
63451
|
-
var Re = ((S) => (S["not-adaptable-visibility"] = "not-adaptable-visibility", S))(Re || {});
|
|
63452
|
-
var Fe = ((o) => (o.Tabs = "Tabs", o.Page = "Page", o))(Fe || {});
|
|
63453
|
-
var ve = ((o) => (o.After = "After", o.Before = "Before", o))(ve || {});
|
|
63454
|
-
var Ie = ((i) => (i.XML = "XML", i))(Ie || {});
|
|
63455
|
-
var Et = "sap.fe.templates";
|
|
63456
|
-
var yt = "sap.fe.core.fpm";
|
|
63457
|
-
var Vt = "sap.fe.templates.ObjectPage";
|
|
63458
|
-
var Ot = "sap.fe.templates.ListReport";
|
|
63459
|
-
var Lt = "sap.fe.templates.AnalyticalListPage";
|
|
63460
|
-
var jt = "XMLFragment";
|
|
63461
|
-
var Ue = ((o) => (o.AfterFacet = "AfterFacet", o.BeforeFacet = "BeforeFacet", o))(Ue || {});
|
|
63462
|
-
var ht = "sap.f.routing.Router";
|
|
63463
|
-
var Rt = "sap.f";
|
|
63464
|
-
var Ft = "sap.ui.controllerExtensions";
|
|
63465
|
-
var vt = "sap.fe.templates.ObjectPage.ObjectPageController";
|
|
63466
|
-
var It = "sap.fe.templates.ListReport.ListReportController";
|
|
63467
|
-
var we = ((o) => (o.After = "After", o.Before = "Before", o))(we || {});
|
|
63468
|
-
var Me = ((t) => (t.Default = "Default", t.Adaptation = "Adaptation", t.Hidden = "Hidden", t))(Me || {});
|
|
63469
|
-
var _e = ((t) => (t.Begin = "Begin", t.Center = "Center", t.End = "End", t))(_e || {});
|
|
63470
|
-
var ke = ((o) => (o.None = "None", o.Control = "Control", o))(ke || {});
|
|
63471
|
-
var Be = ((t) => (t.None = "None", t.Control = "Control", t.Page = "Page", t))(Be || {});
|
|
63472
|
-
module2.exports = Ke(Ut);
|
|
63473
|
-
}
|
|
63474
|
-
});
|
|
63475
|
-
|
|
63476
|
-
// ../../node_modules/@sap/ux-specification-types/dist/apiTypes.js
|
|
63477
|
-
var require_apiTypes = __commonJS({
|
|
63478
|
-
"../../node_modules/@sap/ux-specification-types/dist/apiTypes.js"(exports2) {
|
|
63479
|
-
"use strict";
|
|
63480
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
63481
|
-
exports2.Features = exports2.CustomExtensionType = exports2.TemplateType = exports2.LogSeverityLabel = exports2.LogSeverity = void 0;
|
|
63482
|
-
var LogSeverity2;
|
|
63483
|
-
(function(LogSeverity3) {
|
|
63484
|
-
LogSeverity3["Error"] = "error";
|
|
63485
|
-
LogSeverity3["Warning"] = "warning";
|
|
63486
|
-
LogSeverity3["Info"] = "info";
|
|
63487
|
-
})(LogSeverity2 = exports2.LogSeverity || (exports2.LogSeverity = {}));
|
|
63488
|
-
exports2.LogSeverityLabel = {
|
|
63489
|
-
["error"]: "Error",
|
|
63490
|
-
["warning"]: "Warning",
|
|
63491
|
-
["info"]: "Information"
|
|
63492
|
-
};
|
|
63493
|
-
var TemplateType2;
|
|
63494
|
-
(function(TemplateType3) {
|
|
63495
|
-
TemplateType3["ListReportObjectPageV2"] = "ListReportObjectPageV2";
|
|
63496
|
-
TemplateType3["ListReportObjectPageV4"] = "ListReportObjectPageV4";
|
|
63497
|
-
TemplateType3["OverviewPageV2"] = "OverviewPageV2";
|
|
63498
|
-
TemplateType3["AnalyticalListPageV2"] = "AnalyticalListPageV2";
|
|
63499
|
-
TemplateType3["AnalyticalListPageV4"] = "AnalyticalListPageV4";
|
|
63500
|
-
TemplateType3["FreestylePageV4"] = "FreestylePageV4";
|
|
63501
|
-
})(TemplateType2 = exports2.TemplateType || (exports2.TemplateType = {}));
|
|
63502
|
-
var CustomExtensionType2;
|
|
63503
|
-
(function(CustomExtensionType3) {
|
|
63504
|
-
CustomExtensionType3["CustomPage"] = "CustomPage";
|
|
63505
|
-
CustomExtensionType3["CustomColumn"] = "CustomColumn";
|
|
63506
|
-
CustomExtensionType3["CustomSection"] = "CustomSection";
|
|
63507
|
-
CustomExtensionType3["ObjectPage"] = "ObjectPage";
|
|
63508
|
-
CustomExtensionType3["CustomAction"] = "CustomAction";
|
|
63509
|
-
CustomExtensionType3["CustomView"] = "CustomView";
|
|
63510
|
-
CustomExtensionType3["ControllerExtension"] = "ControllerExtension";
|
|
63511
|
-
})(CustomExtensionType2 = exports2.CustomExtensionType || (exports2.CustomExtensionType = {}));
|
|
63512
|
-
var Features2;
|
|
63513
|
-
(function(Features3) {
|
|
63514
|
-
Features3["BuildingBlocks"] = "BuildingBlocks";
|
|
63515
|
-
})(Features2 = exports2.Features || (exports2.Features = {}));
|
|
63516
|
-
}
|
|
63517
|
-
});
|
|
63518
|
-
|
|
63519
|
-
// ../../node_modules/@sap/ux-specification-types/dist/v2.js
|
|
63520
|
-
var require_v2 = __commonJS({
|
|
63521
|
-
"../../node_modules/@sap/ux-specification-types/dist/v2.js"(exports2, module2) {
|
|
63522
|
-
var S = Object.defineProperty;
|
|
63523
|
-
var N = Object.getOwnPropertyDescriptor;
|
|
63524
|
-
var F = Object.getOwnPropertyNames;
|
|
63525
|
-
var j = Object.prototype.hasOwnProperty;
|
|
63526
|
-
var W = (s) => S(s, "__esModule", { value: true });
|
|
63527
|
-
var w = (s, n) => {
|
|
63528
|
-
for (var a in n)
|
|
63529
|
-
S(s, a, { get: n[a], enumerable: true });
|
|
63530
|
-
};
|
|
63531
|
-
var M = (s, n, a, i) => {
|
|
63532
|
-
if (n && typeof n == "object" || typeof n == "function")
|
|
63533
|
-
for (let r of F(n))
|
|
63534
|
-
!j.call(s, r) && (a || r !== "default") && S(s, r, { get: () => n[r], enumerable: !(i = N(n, r)) || i.enumerable });
|
|
63535
|
-
return s;
|
|
63536
|
-
};
|
|
63537
|
-
var K = ((s) => (n, a) => s && s.get(n) || (a = M(W({}), n, 1), s && s.set(n, a), a))(typeof WeakMap != "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
63538
|
-
var $ = {};
|
|
63539
|
-
w($, { CardSettingsType: () => m, CardTemplateType: () => d, ChartCardType: () => b, ChartType: () => h, ContainerLayoutType: () => k, CreateMode: () => _45, DateRangeType: () => u, DefaultContentView: () => y, DefaultDateRangeValueType: () => P, DefaultFilterMode: () => v, ExtensionFragmentTypes: () => I, FE_TEMPLATE_V2: () => Q, FE_TEMPLATE_V2_ALP: () => H, FE_TEMPLATE_V2_LIST_REPORT: () => G, FE_TEMPLATE_V2_OBJECT_PAGE: () => X, IgnoredFieldsType: () => R, LinkListFlavorType: () => A, ListFlavorType: () => T, ListTypeType: () => x, LoadDataOnAppLaunchSettings: () => U, MeasureAggregateValues: () => g, SAPUI5_CONTROLLER_EXTENSION: () => z, SAPUI5_VIEW_EXTENSION: () => Y, SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE: () => D, SAPUI5_VIEW_EXTENSION_LIST_REPORT: () => J, SAPUI5_VIEW_EXTENSION_OBJECT_PAGE: () => q, SectionPosition: () => V, SortOrderType: () => E, Strategy: () => L, TableColumnExtensionTypeV2: () => O, TableTypeV2: () => C, cardTemplateTypeMap: () => B, customColumnViewTypes: () => f });
|
|
63540
|
-
var b = ((i) => (i.cardBubble = "cardBubble", i.cardchartsline = "cardchartsline", i.cardchartsdonut = "cardchartsdonut", i))(b || {});
|
|
63541
|
-
var d = ((l) => (l.analytical = "sap.ovp.cards.charts.analytical", l.analyticalv4 = "sap.ovp.cards.v4.charts.analytical", l.list = "sap.ovp.cards.list", l.listv4 = "sap.ovp.cards.v4.list", l.linklist = "sap.ovp.cards.linklist", l.linklistv4 = "sap.ovp.cards.v4.linklist", l.table = "sap.ovp.cards.table", l.tablev4 = "sap.ovp.cards.v4.table", l.stack = "sap.ovp.cards.stack", l))(d || {});
|
|
63542
|
-
var B = { "sap.ovp.cards.charts.analytical": "AnalyticalCard", "sap.ovp.cards.v4.charts.analytical": "AnalyticalCard", "sap.ovp.cards.list": "ListCard", "sap.ovp.cards.v4.list": "ListCard", "sap.ovp.cards.linklist": "LinklistCard", "sap.ovp.cards.v4.linklist": "LinklistCard", "sap.ovp.cards.table": "TableCard", "sap.ovp.cards.v4.table": "TableCard", "sap.ovp.cards.stack": "StackCard" };
|
|
63543
|
-
var m = ((c) => (c.analyticalCardSettings = "analyticalCardSettings", c.analyticalCardSettingsv4 = "analyticalCardSettingsv4", c.listCardSettings = "listCardSettings", c.listCardSettingsv4 = "listCardSettingsv4", c.stackCardSettings = "stackCardSettings", c.linkListCardSettings = "linkListCardSettings", c.tableCardSettings = "tableCardSettings", c.tableCardSettingsv4 = "tableCardSettingsv4", c))(m || {});
|
|
63544
|
-
var g = ((p) => (p.average = "average", p.max = "max", p.min = "min", p.sum = "sum", p.count = "$count", p))(g || {});
|
|
63545
|
-
var T = ((i) => (i.standard = "standard", i.bar = "bar", i.carousel = "carousel", i))(T || {});
|
|
63546
|
-
var x = ((a) => (a.extended = "extended", a.condensed = "condensed", a))(x || {});
|
|
63547
|
-
var E = ((a) => (a.ascending = "ascending", a.descending = "descending", a))(E || {});
|
|
63548
|
-
var A = ((a) => (a.standard = "standard", a.carousel = "carousel", a))(A || {});
|
|
63549
|
-
var u = ((e) => (e.DATERANGE = "DATERANGE", e.DATE = "DATE", e.FROM = "FROM", e.TO = "TO", e.DAYS = "DAYS", e.LASTDAYS = "LASTDAYS", e.LASTWEEKS = "LASTWEEKS", e.WEEK = "WEEK", e.LASTMONTHS = "LASTMONTHS", e.MONTH = "MONTH", e.QUARTER = "QUARTER", e.LASTQUARTERS = "LASTQUARTERS", e.LASTYEARS = "LASTYEARS", e.LASTYEAR = "LASTYEAR", e.YEAR = "YEAR", e.NEXTDAYS = "NEXTDAYS", e.NEXTWEEKS = "NEXTWEEKS", e.NEXTMONTHS = "NEXTMONTHS", e.NEXTQUARTERS = "NEXTQUARTERS", e.NEXTYEARS = "NEXTYEARS", e.NEXT = "NEXT", e.SPECIFICMONTH = "SPECIFICMONTH", e.YESTERDAY = "YESTERDAY", e.YEARTODATE = "YEARTODATE", e.TODAY = "TODAY", e.TOMORROW = "TOMORROW", e.THISWEEK = "THISWEEK", e.LASTWEEK = "LASTWEEK", e.LAST2WEEKS = "LAST2WEEKS", e.LAST3WEEKS = "LAST3WEEKS", e.LAST4WEEKS = "LAST4WEEKS", e.LAST5WEEKS = "LAST5WEEKS", e.NEXTWEEK = "NEXTWEEK", e.NEXT2WEEKS = "NEXT2WEEKS", e.NEXT3WEEKS = "NEXT3WEEKS", e.NEXT4WEEKS = "NEXT4WEEKS", e.NEXT5WEEKS = "NEXT5WEEKS", e.THISMONTH = "THISMONTH", e.LASTMONTH = "LASTMONTH", e.NEXTMONTH = "NEXTMONTH", e.THISQUARTER = "THISQUARTER", e.LASTQUARTER = "LASTQUARTER", e.NEXTQUARTER = "NEXTQUARTER", e.QUARTER1 = "QUARTER1", e.QUARTER2 = "QUARTER2", e.QUARTER3 = "QUARTER3", e.QUARTER4 = "QUARTER4", e.TODAYFROMTO = "TODAYFROMTO", e))(u || {});
|
|
63550
|
-
var P = ((o) => (o.YESTERDAY = "YESTERDAY", o.TODAY = "TODAY", o.THISWEEK = "THISWEEK", o.LASTWEEK = "LASTWEEK", o.THISMONTH = "THISMONTH", o.TOMORROW = "TOMORROW", o.LASTMONTH = "LASTMONTH", o.THISQUARTER = "THISQUARTER", o.LASTQUARTER = "LASTQUARTER", o.THISYEAR = "THISYEAR", o.LASTYEAR = "LASTYEAR", o.LAST2WEEKS = "LAST2WEEKS", o.LAST3WEEKS = "LAST3WEEKS", o.LAST4WEEKS = "LAST4WEEKS", o.LAST5WEEKS = "LAST5WEEKS", o.YEARTODATE = "YEARTODATE", o.QUARTER1 = "QUARTER1", o.QUARTER2 = "QUARTER2", o.QUARTER3 = "QUARTER3", o.QUARTER4 = "QUARTER4", o.DATETOYEAR = "DATETOYEAR", o))(P || {});
|
|
63551
|
-
var f = ((n) => (n.XML = "XML", n))(f || {});
|
|
63552
|
-
var C = ((r) => (r.ResponsiveTable = "ResponsiveTable", r.GridTable = "GridTable", r.AnalyticalTable = "AnalyticalTable", r.TreeTable = "TreeTable", r))(C || {});
|
|
63553
|
-
var O = ((r) => (r.ResponsiveTableColumnsExtension = "ResponsiveTableColumnsExtension", r.AnalyticalTableColumnsExtension = "AnalyticalTableColumnsExtension", r.TreeTableColumnsExtension = "TreeTableColumnsExtension", r.GridTableColumnsExtension = "GridTableColumnsExtension", r))(O || {});
|
|
63554
|
-
var L = ((n) => (n.extension = "extension", n))(L || {});
|
|
63555
|
-
var R = ((n) => (n.GENERICPROPERTY = "GENERICPROPERTY", n))(R || {});
|
|
63556
|
-
var y = ((i) => (i.charttable = "charttable", i.chart = "chart", i.table = "table", i))(y || {});
|
|
63557
|
-
var v = ((a) => (a.visual = "visual", a.compact = "compact", a))(v || {});
|
|
63558
|
-
var U = ((i) => (i.always = "always", i.never = "never", i.ifAnyFilterExist = "ifAnyFilterExist", i))(U || {});
|
|
63559
|
-
var h = ((t) => (t.bar = "bar", t.column = "column", t.line = "line", t.combination = "combination", t.pie = "pie", t.donut = "donut", t.scatter = "scatter", t.bubble = "bubble", t.heatmap = "heatmap", t.bullet = "bullet", t.verticalBullet = "vertical_bullet", t.stackedBar = "stacked_bar", t.stackedColumn = "stacked_column", t.stackedCombination = "stacked_combination", t.horizontalStackedCombination = "horizontal_stacked_combination", t.dualBar = "dual_bar", t.dualColumn = "dual_column", t.dualLine = "dual_line", t.dualStackedBar = "dual_stacked_bar", t.dualStackedColumn = "dual_stacked_column", t.dualCombination = "dual_combination", t.dualStackedCombination = "dual_stacked_combination", t.dualHorizontalCombination = "dual_horizontal_combination", t.dualHorizontalStackedCombination = "dual_horizontal_stacked_combination", t.hundredStackedBar = "100_stacked_bar", t.hundredStackedColumn = "100_stacked_column", t.hundredDualStackedBar = "100_dual_stacked_bar", t.hundredDualStackedColumn = "100_dual_stacked_column", t.waterfall = "waterfall", t.horizontalWaterfall = "horizontal_waterfall", t))(h || {});
|
|
63560
|
-
var V = ((i) => (i.AfterFacet = "AfterFacet", i.BeforeFacet = "BeforeFacet", i.ReplaceFacet = "ReplaceFacet", i))(V || {});
|
|
63561
|
-
var I = ((n) => (n.XML = "XML", n))(I || {});
|
|
63562
|
-
var _45 = ((n) => (n.inline = "inline", n))(_45 || {});
|
|
63563
|
-
var Q = "sap.suite.ui.generic.template";
|
|
63564
|
-
var X = "sap.suite.ui.generic.template.ObjectPage";
|
|
63565
|
-
var G = "sap.suite.ui.generic.template.ListReport";
|
|
63566
|
-
var H = "sap.suite.ui.generic.template.AnalyticalListPage";
|
|
63567
|
-
var Y = "sap.ui.viewExtensions";
|
|
63568
|
-
var z = "sap.ui.controllerExtensions";
|
|
63569
|
-
var q = "sap.suite.ui.generic.template.ObjectPage.view.Details";
|
|
63570
|
-
var J = "sap.suite.ui.generic.template.ListReport.view.ListReport";
|
|
63571
|
-
var D = "sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage";
|
|
63572
|
-
var k = ((a) => (a.fixed = "fixed", a.resizable = "resizable", a))(k || {});
|
|
63573
|
-
module2.exports = K($);
|
|
63574
|
-
}
|
|
63575
|
-
});
|
|
63576
|
-
|
|
63577
|
-
// ../../node_modules/@sap/ux-specification-types/dist/v4.js
|
|
63578
|
-
var require_v4 = __commonJS({
|
|
63579
|
-
"../../node_modules/@sap/ux-specification-types/dist/v4.js"(exports2, module2) {
|
|
63580
|
-
var a = Object.defineProperty;
|
|
63581
|
-
var V = Object.getOwnPropertyDescriptor;
|
|
63582
|
-
var y = Object.getOwnPropertyNames;
|
|
63583
|
-
var U = Object.prototype.hasOwnProperty;
|
|
63584
|
-
var E = (n) => a(n, "__esModule", { value: true });
|
|
63585
|
-
var w = (n, o) => {
|
|
63586
|
-
for (var t in o)
|
|
63587
|
-
a(n, t, { get: o[t], enumerable: true });
|
|
63588
|
-
};
|
|
63589
|
-
var O = (n, o, t, e) => {
|
|
63590
|
-
if (o && typeof o == "object" || typeof o == "function")
|
|
63591
|
-
for (let i of y(o))
|
|
63592
|
-
!U.call(n, i) && (t || i !== "default") && a(n, i, { get: () => o[i], enumerable: !(e = V(o, i)) || e.enumerable });
|
|
63593
|
-
return n;
|
|
63594
|
-
};
|
|
63595
|
-
var R = ((n) => (o, t) => n && n.get(o) || (t = O(E({}), o, 1), n && n.set(o, t), t))(typeof WeakMap != "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
63596
|
-
var G = {};
|
|
63597
|
-
w(G, { ActionPlacement: () => r, Availability: () => C, CustomSectionViewTypesV4: () => b, DefaultPathType: () => g, DesigntimeValues: () => x, FE_TEMPLATE_V4: () => h, FE_TEMPLATE_V4_ALP: () => B, FE_TEMPLATE_V4_CUSTOM_PAGE: () => j, FE_TEMPLATE_V4_LIST_REPORT: () => L, FE_TEMPLATE_V4_OBJECT_PAGE: () => _45, FIORI_FCL_ROUTER_CLASS: () => N, HorizontalAlign: () => T, InitialLoadType: () => l, Placement: () => P, SAPUI5_CONTROLLER_EXTENSION: () => M, SAPUI5_DEPENDENCY_LIB_SAP_F: () => I, SAPUI5_FRAGMENT_TYPE_V4: () => F, SAPUI5_VIEW_EXTENSION_LIST_REPORT: () => k, SAPUI5_VIEW_EXTENSION_OBJECT_PAGE: () => v, SectionLayoutType: () => f, SectionPosition: () => u, SectionPositionV4: () => S, SelectType: () => m, SelectionMode: () => s, TableCreationModeType: () => c, TableTypeV4: () => p, VariantManagementTypeListReport: () => d, VariantManagementTypeObjectPage: () => A });
|
|
63598
|
-
var r = ((t) => (t.After = "After", t.Before = "Before", t))(r || {});
|
|
63599
|
-
var s = ((i) => (i.Multi = "Multi", i.None = "None", i.Single = "Single", i.Auto = "Auto", i))(s || {});
|
|
63600
|
-
var p = ((e) => (e.ResponsiveTable = "ResponsiveTable", e.GridTable = "GridTable", e.AnalyticalTable = "AnalyticalTable", e))(p || {});
|
|
63601
|
-
var c = ((e) => (e.NewPage = "NewPage", e.Inline = "Inline", e.CreationRow = "CreationRow", e))(c || {});
|
|
63602
|
-
var l = ((e) => (e.Disabled = "Disabled", e.Enabled = "Enabled", e.Auto = "Auto", e))(l || {});
|
|
63603
|
-
var g = ((e) => (e.Primary = "primary", e.Secondary = "secondary", e.Both = "both", e))(g || {});
|
|
63604
|
-
var m = ((t) => (t.single = "single", t.multi = "multi", t))(m || {});
|
|
63605
|
-
var x = ((n) => (n["not-adaptable-visibility"] = "not-adaptable-visibility", n))(x || {});
|
|
63606
|
-
var f = ((t) => (t.Tabs = "Tabs", t.Page = "Page", t))(f || {});
|
|
63607
|
-
var u = ((t) => (t.After = "After", t.Before = "Before", t))(u || {});
|
|
63608
|
-
var b = ((o) => (o.XML = "XML", o))(b || {});
|
|
63609
|
-
var h = "sap.fe.templates";
|
|
63610
|
-
var j = "sap.fe.core.fpm";
|
|
63611
|
-
var _45 = "sap.fe.templates.ObjectPage";
|
|
63612
|
-
var L = "sap.fe.templates.ListReport";
|
|
63613
|
-
var B = "sap.fe.templates.AnalyticalListPage";
|
|
63614
|
-
var F = "XMLFragment";
|
|
63615
|
-
var S = ((t) => (t.AfterFacet = "AfterFacet", t.BeforeFacet = "BeforeFacet", t))(S || {});
|
|
63616
|
-
var N = "sap.f.routing.Router";
|
|
63617
|
-
var I = "sap.f";
|
|
63618
|
-
var M = "sap.ui.controllerExtensions";
|
|
63619
|
-
var v = "sap.fe.templates.ObjectPage.ObjectPageController";
|
|
63620
|
-
var k = "sap.fe.templates.ListReport.ListReportController";
|
|
63621
|
-
var P = ((t) => (t.After = "After", t.Before = "Before", t))(P || {});
|
|
63622
|
-
var C = ((e) => (e.Default = "Default", e.Adaptation = "Adaptation", e.Hidden = "Hidden", e))(C || {});
|
|
63623
|
-
var T = ((e) => (e.Begin = "Begin", e.Center = "Center", e.End = "End", e))(T || {});
|
|
63624
|
-
var A = ((t) => (t.None = "None", t.Control = "Control", t))(A || {});
|
|
63625
|
-
var d = ((e) => (e.None = "None", e.Control = "Control", e.Page = "Page", e))(d || {});
|
|
63626
|
-
module2.exports = R(G);
|
|
63627
|
-
}
|
|
63628
|
-
});
|
|
63629
|
-
|
|
63630
|
-
// ../../node_modules/@sap/ux-specification-types/dist/index.js
|
|
63631
|
-
var require_dist7 = __commonJS({
|
|
63632
|
-
"../../node_modules/@sap/ux-specification-types/dist/index.js"(exports2) {
|
|
63633
|
-
"use strict";
|
|
63634
|
-
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
63635
|
-
if (k2 === void 0)
|
|
63636
|
-
k2 = k;
|
|
63637
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
|
63638
|
-
return m[k];
|
|
63639
|
-
} });
|
|
63640
|
-
} : function(o, m, k, k2) {
|
|
63641
|
-
if (k2 === void 0)
|
|
63642
|
-
k2 = k;
|
|
63643
|
-
o[k2] = m[k];
|
|
63644
|
-
});
|
|
63645
|
-
var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) {
|
|
63646
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
63647
|
-
} : function(o, v) {
|
|
63648
|
-
o["default"] = v;
|
|
63649
|
-
});
|
|
63650
|
-
var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) {
|
|
63651
|
-
for (var p in m)
|
|
63652
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p))
|
|
63653
|
-
__createBinding(exports3, m, p);
|
|
63654
|
-
};
|
|
63655
|
-
var __importStar = exports2 && exports2.__importStar || function(mod) {
|
|
63656
|
-
if (mod && mod.__esModule)
|
|
63657
|
-
return mod;
|
|
63658
|
-
var result2 = {};
|
|
63659
|
-
if (mod != null) {
|
|
63660
|
-
for (var k in mod)
|
|
63661
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
63662
|
-
__createBinding(result2, mod, k);
|
|
63663
|
-
}
|
|
63664
|
-
__setModuleDefault(result2, mod);
|
|
63665
|
-
return result2;
|
|
63666
|
-
};
|
|
63667
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
63668
|
-
exports2.v4 = exports2.v2 = void 0;
|
|
63669
|
-
__exportStar(require_common7(), exports2);
|
|
63670
|
-
__exportStar(require_apiTypes(), exports2);
|
|
63671
|
-
exports2.v2 = __importStar(require_v2());
|
|
63672
|
-
exports2.v4 = __importStar(require_v4());
|
|
63673
|
-
}
|
|
63674
|
-
});
|
|
63675
|
-
|
|
63676
63754
|
// ../../node_modules/p-try/index.js
|
|
63677
63755
|
var require_p_try = __commonJS({
|
|
63678
63756
|
"../../node_modules/p-try/index.js"(exports2, module2) {
|
|
@@ -64401,9 +64479,13 @@ var require_file2 = __commonJS({
|
|
|
64401
64479
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
64402
64480
|
if (k2 === void 0)
|
|
64403
64481
|
k2 = k;
|
|
64404
|
-
Object.
|
|
64405
|
-
|
|
64406
|
-
|
|
64482
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
64483
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
64484
|
+
desc = { enumerable: true, get: function() {
|
|
64485
|
+
return m[k];
|
|
64486
|
+
} };
|
|
64487
|
+
}
|
|
64488
|
+
Object.defineProperty(o, k2, desc);
|
|
64407
64489
|
} : function(o, m, k, k2) {
|
|
64408
64490
|
if (k2 === void 0)
|
|
64409
64491
|
k2 = k;
|
|
@@ -64431,7 +64513,7 @@ var require_file2 = __commonJS({
|
|
|
64431
64513
|
var fs3 = __importStar(require("fs"));
|
|
64432
64514
|
var path_1 = require("path");
|
|
64433
64515
|
var vscode_uri_1 = (init_esm(), __toCommonJS(esm_exports));
|
|
64434
|
-
var project_spec_1 =
|
|
64516
|
+
var project_spec_1 = require_dist7();
|
|
64435
64517
|
async function readFile3(path3) {
|
|
64436
64518
|
return new Promise((resolve, reject) => {
|
|
64437
64519
|
fs3.readFile(path3, { encoding: "utf8" }, (err, data2) => {
|
|
@@ -64528,7 +64610,7 @@ var require_file2 = __commonJS({
|
|
|
64528
64610
|
if (await fileExists2(path3)) {
|
|
64529
64611
|
const files = await readDirectory(path3);
|
|
64530
64612
|
for (const name of files) {
|
|
64531
|
-
const fullPath = path_1.join(path3, name);
|
|
64613
|
+
const fullPath = (0, path_1.join)(path3, name);
|
|
64532
64614
|
if (await isDirectory(fullPath)) {
|
|
64533
64615
|
await deleteDirectory(fullPath);
|
|
64534
64616
|
} else {
|
|
@@ -66429,10 +66511,10 @@ var require_capProject = __commonJS({
|
|
|
66429
66511
|
var packageJsonFileName = "package.json";
|
|
66430
66512
|
async function parsePackageJson(projectRoot) {
|
|
66431
66513
|
let packageJson;
|
|
66432
|
-
const packageJsonPath = path_1.join(projectRoot, packageJsonFileName);
|
|
66433
|
-
if (await file_1.fileExists(packageJsonPath)) {
|
|
66514
|
+
const packageJsonPath = (0, path_1.join)(projectRoot, packageJsonFileName);
|
|
66515
|
+
if (await (0, file_1.fileExists)(packageJsonPath)) {
|
|
66434
66516
|
try {
|
|
66435
|
-
packageJson = JSON.parse(await file_1.readFile(packageJsonPath));
|
|
66517
|
+
packageJson = JSON.parse(await (0, file_1.readFile)(packageJsonPath));
|
|
66436
66518
|
} catch (error3) {
|
|
66437
66519
|
}
|
|
66438
66520
|
}
|
|
@@ -66451,10 +66533,10 @@ var require_capProject = __commonJS({
|
|
|
66451
66533
|
}
|
|
66452
66534
|
exports2.isCapNodeJsProject = isCapNodeJsProject;
|
|
66453
66535
|
async function isCapJavaProject(projectRoot) {
|
|
66454
|
-
return file_1.fileExists(path_1.join(projectRoot, exports2.CAP_SERVICES_FOLDER, "src", "main", "resources", "application.yaml"));
|
|
66536
|
+
return (0, file_1.fileExists)((0, path_1.join)(projectRoot, exports2.CAP_SERVICES_FOLDER, "src", "main", "resources", "application.yaml"));
|
|
66455
66537
|
}
|
|
66456
66538
|
exports2.isCapJavaProject = isCapJavaProject;
|
|
66457
|
-
var toAbsoluteUri = (project, relativeUri) => path_1.join(project.root, relativeUri);
|
|
66539
|
+
var toAbsoluteUri = (project, relativeUri) => (0, path_1.join)(project.root, relativeUri);
|
|
66458
66540
|
exports2.toAbsoluteUri = toAbsoluteUri;
|
|
66459
66541
|
var toReferenceUri = async (project, relativeUriFrom, relativeUriTo) => {
|
|
66460
66542
|
let relativeUri = "";
|
|
@@ -66473,8 +66555,8 @@ var require_capProject = __commonJS({
|
|
|
66473
66555
|
}
|
|
66474
66556
|
}
|
|
66475
66557
|
if (!relativeUri) {
|
|
66476
|
-
const fromDir = path_1.dirname(exports2.toAbsoluteUri(project, relativeUriFrom));
|
|
66477
|
-
relativeUri = path_1.relative(fromDir, exports2.toAbsoluteUri(project, relativeUriTo));
|
|
66558
|
+
const fromDir = (0, path_1.dirname)((0, exports2.toAbsoluteUri)(project, relativeUriFrom));
|
|
66559
|
+
relativeUri = (0, path_1.relative)(fromDir, (0, exports2.toAbsoluteUri)(project, relativeUriTo));
|
|
66478
66560
|
if (!relativeUri.startsWith(".")) {
|
|
66479
66561
|
relativeUri = "./" + relativeUri;
|
|
66480
66562
|
}
|
|
@@ -66501,8 +66583,8 @@ var require_capProject = __commonJS({
|
|
|
66501
66583
|
async function readPackageNameForFolder(baseUri, relativeUri) {
|
|
66502
66584
|
let packageName = "";
|
|
66503
66585
|
try {
|
|
66504
|
-
const path3 = path_1.normalize(baseUri + "/" + relativeUri + "/package.json");
|
|
66505
|
-
const content = await file_1.readFile(path3);
|
|
66586
|
+
const path3 = (0, path_1.normalize)(baseUri + "/" + relativeUri + "/package.json");
|
|
66587
|
+
const content = await (0, file_1.readFile)(path3);
|
|
66506
66588
|
if (content) {
|
|
66507
66589
|
const parsed = JSON.parse(content);
|
|
66508
66590
|
packageName = parsed.name;
|
|
@@ -66522,9 +66604,13 @@ var require_webapp2 = __commonJS({
|
|
|
66522
66604
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
66523
66605
|
if (k2 === void 0)
|
|
66524
66606
|
k2 = k;
|
|
66525
|
-
Object.
|
|
66526
|
-
|
|
66527
|
-
|
|
66607
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
66608
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
66609
|
+
desc = { enumerable: true, get: function() {
|
|
66610
|
+
return m[k];
|
|
66611
|
+
} };
|
|
66612
|
+
}
|
|
66613
|
+
Object.defineProperty(o, k2, desc);
|
|
66528
66614
|
} : function(o, m, k, k2) {
|
|
66529
66615
|
if (k2 === void 0)
|
|
66530
66616
|
k2 = k;
|
|
@@ -66551,13 +66637,13 @@ var require_webapp2 = __commonJS({
|
|
|
66551
66637
|
exports2.getUi5CustomWebappPath = void 0;
|
|
66552
66638
|
var file_1 = require_file2();
|
|
66553
66639
|
var path_1 = require("path");
|
|
66554
|
-
var project_spec_1 =
|
|
66640
|
+
var project_spec_1 = require_dist7();
|
|
66555
66641
|
var yaml = __importStar(require_Yaml());
|
|
66556
66642
|
async function getUi5CustomWebappPath(root) {
|
|
66557
66643
|
var _a2, _b, _c, _d, _e;
|
|
66558
66644
|
let webappPath = project_spec_1.DirName.Webapp;
|
|
66559
66645
|
try {
|
|
66560
|
-
const yamlContent = await file_1.readFile(path_1.join(root, project_spec_1.FileName.Ui5Yaml));
|
|
66646
|
+
const yamlContent = await (0, file_1.readFile)((0, path_1.join)(root, project_spec_1.FileName.Ui5Yaml));
|
|
66561
66647
|
webappPath = (_e = (_d = (_c = (_b = (_a2 = yaml.parse(yamlContent)) == null ? void 0 : _a2.resources) == null ? void 0 : _b.configuration) == null ? void 0 : _c.paths) == null ? void 0 : _d.webapp) != null ? _e : project_spec_1.DirName.Webapp;
|
|
66562
66648
|
} catch {
|
|
66563
66649
|
webappPath = project_spec_1.DirName.Webapp;
|
|
@@ -66579,7 +66665,7 @@ var require_commandRunner = __commonJS({
|
|
|
66579
66665
|
run(cmd, args = []) {
|
|
66580
66666
|
return new Promise((resolve, reject) => {
|
|
66581
66667
|
const stack = [];
|
|
66582
|
-
const spawnedCmd = child_process_1.spawn(cmd, args, {});
|
|
66668
|
+
const spawnedCmd = (0, child_process_1.spawn)(cmd, args, {});
|
|
66583
66669
|
spawnedCmd.stdout.setEncoding("utf8");
|
|
66584
66670
|
let response;
|
|
66585
66671
|
spawnedCmd.stdout.on("data", (data2) => {
|
|
@@ -69179,9 +69265,9 @@ var require_ui5_info = __commonJS({
|
|
|
69179
69265
|
return a.localeCompare(b);
|
|
69180
69266
|
}
|
|
69181
69267
|
if (versions.indexOf(a) > -1 || versions.indexOf(b) > -1) {
|
|
69182
|
-
return semver_compare_1.default(a, b);
|
|
69268
|
+
return (0, semver_compare_1.default)(a, b);
|
|
69183
69269
|
}
|
|
69184
|
-
return semver_compare_1.default(b + ".999", a + ".999");
|
|
69270
|
+
return (0, semver_compare_1.default)(b + ".999", a + ".999");
|
|
69185
69271
|
}
|
|
69186
69272
|
function filterNewerEqual(versions, minVersion) {
|
|
69187
69273
|
return versions.filter((version) => {
|
|
@@ -69190,11 +69276,11 @@ var require_ui5_info = __commonJS({
|
|
|
69190
69276
|
} else if (version.startsWith("snapshot-")) {
|
|
69191
69277
|
version = version.replace("snapshot-", "");
|
|
69192
69278
|
}
|
|
69193
|
-
return semver_compare_1.default(version, minVersion) >= 0;
|
|
69279
|
+
return (0, semver_compare_1.default)(version, minVersion) >= 0;
|
|
69194
69280
|
});
|
|
69195
69281
|
}
|
|
69196
69282
|
async function requestUI5Versions(url, service = `/${url === "https://ui5.sap.com" ? "version.json?sap-ui-config-patches=true&sap-ui-config-showall=true" : "neo-app.json"}`) {
|
|
69197
|
-
const { system } = ux_odata_client_1.newSapSystemForServiceUrl(url);
|
|
69283
|
+
const { system } = (0, ux_odata_client_1.newSapSystemForServiceUrl)(url);
|
|
69198
69284
|
system.config.service = service;
|
|
69199
69285
|
const odataClient = new ux_odata_client_1.ODataClient({
|
|
69200
69286
|
system: system.config,
|
|
@@ -69239,7 +69325,7 @@ var require_ui5_info = __commonJS({
|
|
|
69239
69325
|
}
|
|
69240
69326
|
result2 = versions.map((ver) => {
|
|
69241
69327
|
var _a2;
|
|
69242
|
-
const parsedVersion = (_a2 = semver_1.coerce(ver.version)) == null ? void 0 : _a2.version;
|
|
69328
|
+
const parsedVersion = (_a2 = (0, semver_1.coerce)(ver.version)) == null ? void 0 : _a2.version;
|
|
69243
69329
|
if (parsedVersion !== void 0) {
|
|
69244
69330
|
return {
|
|
69245
69331
|
version: parsedVersion,
|
|
@@ -69281,14 +69367,14 @@ var require_ui5_info = __commonJS({
|
|
|
69281
69367
|
let officialVersions = [];
|
|
69282
69368
|
let snapshotVersions = [];
|
|
69283
69369
|
try {
|
|
69284
|
-
officialVersions = (filterOptions == null ? void 0 : filterOptions.onlyNpmVersion) ? await retrieveNpmUI5Versions(filterOptions.fioriElementsVersion || "v2", filterOptions.ui5SelectedVersion) : await exports2.retrieveUI5VersionsCache("officialVersions", filterOptions == null ? void 0 : filterOptions.useCache);
|
|
69370
|
+
officialVersions = (filterOptions == null ? void 0 : filterOptions.onlyNpmVersion) ? await retrieveNpmUI5Versions(filterOptions.fioriElementsVersion || "v2", filterOptions.ui5SelectedVersion) : await (0, exports2.retrieveUI5VersionsCache)("officialVersions", filterOptions == null ? void 0 : filterOptions.useCache);
|
|
69285
69371
|
} catch (error3) {
|
|
69286
69372
|
logger.warning(`Request to '${"https://ui5.sap.com"}' failed. Error was: '${error3.message}'. Fallback to default UI5 versions`);
|
|
69287
69373
|
officialVersions = DEFAULT_UI5_VERSIONS.slice();
|
|
69288
69374
|
}
|
|
69289
69375
|
if (filterOptions == null ? void 0 : filterOptions.includeSnapshots) {
|
|
69290
69376
|
try {
|
|
69291
|
-
snapshotVersions = await exports2.retrieveUI5VersionsCache("snapshotsVersions", filterOptions == null ? void 0 : filterOptions.useCache);
|
|
69377
|
+
snapshotVersions = await (0, exports2.retrieveUI5VersionsCache)("snapshotsVersions", filterOptions == null ? void 0 : filterOptions.useCache);
|
|
69292
69378
|
} catch (error3) {
|
|
69293
69379
|
logger.error(`Request to '${"https://sapui5preview-sapui5.dispatcher.int.sap.eu2.hana.ondemand.com"}' failed. Error was: '${error3.message}'`);
|
|
69294
69380
|
}
|
|
@@ -69324,7 +69410,7 @@ var require_ui5_info = __commonJS({
|
|
|
69324
69410
|
}
|
|
69325
69411
|
let ui5VersionsOverview = void 0;
|
|
69326
69412
|
if ((filterOptions == null ? void 0 : filterOptions.groupUI5Versions) === true) {
|
|
69327
|
-
ui5VersionsOverview = await exports2.retrieveUI5VersionsCache("overview", filterOptions == null ? void 0 : filterOptions.useCache);
|
|
69413
|
+
ui5VersionsOverview = await (0, exports2.retrieveUI5VersionsCache)("overview", filterOptions == null ? void 0 : filterOptions.useCache);
|
|
69328
69414
|
}
|
|
69329
69415
|
return filteredUI5Versions.map((ui5) => {
|
|
69330
69416
|
const ui5Version = {
|
|
@@ -69338,7 +69424,7 @@ var require_ui5_info = __commonJS({
|
|
|
69338
69424
|
if ((filterOptions == null ? void 0 : filterOptions.groupUI5Versions) === true && ui5VersionsOverview !== void 0) {
|
|
69339
69425
|
ui5Version.version.maintained = ui5VersionsOverview.some((v) => {
|
|
69340
69426
|
if (v !== void 0) {
|
|
69341
|
-
return `${semver_1.major(v.version)}.${semver_1.minor(v.version)}` === `${semver_1.major(ui5)}.${semver_1.minor(ui5)}` && v.support === types_1.inMaintenance;
|
|
69427
|
+
return `${(0, semver_1.major)(v.version)}.${(0, semver_1.minor)(v.version)}` === `${(0, semver_1.major)(ui5)}.${(0, semver_1.minor)(ui5)}` && v.support === types_1.inMaintenance;
|
|
69342
69428
|
}
|
|
69343
69429
|
});
|
|
69344
69430
|
}
|
|
@@ -69357,13 +69443,13 @@ var require_ui5_info = __commonJS({
|
|
|
69357
69443
|
filteredThemes.push(theme);
|
|
69358
69444
|
break;
|
|
69359
69445
|
case "sap_fiori_3_dark":
|
|
69360
|
-
(ui5VersionCheck(filteredUi5Version) || semver_compare_1.default(filteredUi5Version, MIN_UI5_DARK_THEME) >= 0) && filteredThemes.push(theme);
|
|
69446
|
+
(ui5VersionCheck(filteredUi5Version) || (0, semver_compare_1.default)(filteredUi5Version, MIN_UI5_DARK_THEME) >= 0) && filteredThemes.push(theme);
|
|
69361
69447
|
break;
|
|
69362
69448
|
case "sap_horizon":
|
|
69363
69449
|
case "sap_horizon_dark":
|
|
69364
69450
|
case "sap_horizon_hcw":
|
|
69365
69451
|
case "sap_horizon_hcb":
|
|
69366
|
-
(ui5VersionCheck(filteredUi5Version) || semver_compare_1.default(filteredUi5Version, MIN_UI5_VERSION_HORIZON_THEME) >= 0) && filteredThemes.push(theme);
|
|
69452
|
+
(ui5VersionCheck(filteredUi5Version) || (0, semver_compare_1.default)(filteredUi5Version, MIN_UI5_VERSION_HORIZON_THEME) >= 0) && filteredThemes.push(theme);
|
|
69367
69453
|
break;
|
|
69368
69454
|
}
|
|
69369
69455
|
}
|
|
@@ -69372,7 +69458,7 @@ var require_ui5_info = __commonJS({
|
|
|
69372
69458
|
exports2.getUi5Themes = getUi5Themes;
|
|
69373
69459
|
function getDefaultTheme(ui5Version) {
|
|
69374
69460
|
if (ui5Version) {
|
|
69375
|
-
if (semver_1.coerce(ui5Version) && semver_1.lt(ui5Version, MIN_UI5_VERSION_HORIZON_THEME)) {
|
|
69461
|
+
if ((0, semver_1.coerce)(ui5Version) && (0, semver_1.lt)(ui5Version, MIN_UI5_VERSION_HORIZON_THEME)) {
|
|
69376
69462
|
return "sap_fiori_3";
|
|
69377
69463
|
}
|
|
69378
69464
|
}
|
|
@@ -69427,7 +69513,7 @@ var require_ui5_info = __commonJS({
|
|
|
69427
69513
|
if (ui5SelectedVersion && ui5SelectedVersion.length) {
|
|
69428
69514
|
const latestMinIdx = latestVersions.findIndex((v) => v === ui5SelectedVersion);
|
|
69429
69515
|
if (latestMinIdx === -1) {
|
|
69430
|
-
if (semver_compare_1.default(ui5SelectedVersion, latestVersions.slice(-1)[0]) > 0 || ui5SelectedVersion === "Latest" || !semver_1.valid(ui5SelectedVersion)) {
|
|
69516
|
+
if ((0, semver_compare_1.default)(ui5SelectedVersion, latestVersions.slice(-1)[0]) > 0 || ui5SelectedVersion === "Latest" || !(0, semver_1.valid)(ui5SelectedVersion)) {
|
|
69431
69517
|
latestVersions = latestVersions.slice(0);
|
|
69432
69518
|
} else {
|
|
69433
69519
|
latestVersions = latestVersions.slice(-1);
|
|
@@ -69477,8 +69563,8 @@ var require_ui5_info = __commonJS({
|
|
|
69477
69563
|
exports2.getLatestSapui5Version = getLatestSapui5Version;
|
|
69478
69564
|
function getSpecTagVersion(ui5Version) {
|
|
69479
69565
|
if (ui5Version) {
|
|
69480
|
-
if (semver_1.valid(ui5Version)) {
|
|
69481
|
-
return `UI5-${semver_1.major(ui5Version)}.${semver_1.minor(ui5Version)}`;
|
|
69566
|
+
if ((0, semver_1.valid)(ui5Version)) {
|
|
69567
|
+
return `UI5-${(0, semver_1.major)(ui5Version)}.${(0, semver_1.minor)(ui5Version)}`;
|
|
69482
69568
|
} else if (ui5Version.includes("snapshot") && ui5Version.includes(".")) {
|
|
69483
69569
|
const snapshotVersion = ui5Version.split("snapshot-")[1];
|
|
69484
69570
|
return `UI5-${snapshotVersion}`;
|
|
@@ -69578,9 +69664,13 @@ var require_yamlFile = __commonJS({
|
|
|
69578
69664
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
69579
69665
|
if (k2 === void 0)
|
|
69580
69666
|
k2 = k;
|
|
69581
|
-
Object.
|
|
69582
|
-
|
|
69583
|
-
|
|
69667
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
69668
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
69669
|
+
desc = { enumerable: true, get: function() {
|
|
69670
|
+
return m[k];
|
|
69671
|
+
} };
|
|
69672
|
+
}
|
|
69673
|
+
Object.defineProperty(o, k2, desc);
|
|
69584
69674
|
} : function(o, m, k, k2) {
|
|
69585
69675
|
if (k2 === void 0)
|
|
69586
69676
|
k2 = k;
|
|
@@ -69610,9 +69700,9 @@ var require_yamlFile = __commonJS({
|
|
|
69610
69700
|
var file_1 = require_file2();
|
|
69611
69701
|
var i18n_1 = require_i18n3();
|
|
69612
69702
|
async function readUi5YamlConfig(dirPath, filename) {
|
|
69613
|
-
const filePath = path_1.join(dirPath, filename);
|
|
69614
|
-
if (await file_1.fileExists(filePath)) {
|
|
69615
|
-
return file_1.readFile(filePath);
|
|
69703
|
+
const filePath = (0, path_1.join)(dirPath, filename);
|
|
69704
|
+
if (await (0, file_1.fileExists)(filePath)) {
|
|
69705
|
+
return (0, file_1.readFile)(filePath);
|
|
69616
69706
|
} else {
|
|
69617
69707
|
const error3 = new Error(i18n_1.i18n.t("ERROR_UI5_YAML_MISSING"));
|
|
69618
69708
|
error3.name = "Ui5MissingError";
|
|
@@ -69651,7 +69741,7 @@ var require_yamlFile = __commonJS({
|
|
|
69651
69741
|
}
|
|
69652
69742
|
return parsed;
|
|
69653
69743
|
} catch (e) {
|
|
69654
|
-
throw new Error(i18n_1.i18n.t("ERROR_UI5_YAML_PARSING", { filePath: path_1.join(dirPath, filename), parsingError: e.message }));
|
|
69744
|
+
throw new Error(i18n_1.i18n.t("ERROR_UI5_YAML_PARSING", { filePath: (0, path_1.join)(dirPath, filename), parsingError: e.message }));
|
|
69655
69745
|
}
|
|
69656
69746
|
}
|
|
69657
69747
|
exports2.getParsedUi5YamlConfig = getParsedUi5YamlConfig;
|
|
@@ -69665,9 +69755,13 @@ var require_mockServer = __commonJS({
|
|
|
69665
69755
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
69666
69756
|
if (k2 === void 0)
|
|
69667
69757
|
k2 = k;
|
|
69668
|
-
Object.
|
|
69669
|
-
|
|
69670
|
-
|
|
69758
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
69759
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
69760
|
+
desc = { enumerable: true, get: function() {
|
|
69761
|
+
return m[k];
|
|
69762
|
+
} };
|
|
69763
|
+
}
|
|
69764
|
+
Object.defineProperty(o, k2, desc);
|
|
69671
69765
|
} : function(o, m, k, k2) {
|
|
69672
69766
|
if (k2 === void 0)
|
|
69673
69767
|
k2 = k;
|
|
@@ -69693,13 +69787,13 @@ var require_mockServer = __commonJS({
|
|
|
69693
69787
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
69694
69788
|
exports2.findMockServiceByMetadataPath = exports2.matchMockServiceByMetadataPath = exports2.getMockServicesConfiguration = exports2.getMockServerConfig = void 0;
|
|
69695
69789
|
var path_1 = require("path");
|
|
69696
|
-
var project_spec_1 =
|
|
69790
|
+
var project_spec_1 = require_dist7();
|
|
69697
69791
|
var yamlFile_1 = require_yamlFile();
|
|
69698
69792
|
var i18n_1 = require_i18n3();
|
|
69699
69793
|
var file_1 = require_file2();
|
|
69700
69794
|
async function getMockServerConfig(cfgFileDir, cfgFileName = project_spec_1.FileName.Ui5MockYaml) {
|
|
69701
69795
|
var _a2;
|
|
69702
|
-
const ui5Config = await yamlFile_1.getParsedUi5YamlConfig(cfgFileDir, cfgFileName);
|
|
69796
|
+
const ui5Config = await (0, yamlFile_1.getParsedUi5YamlConfig)(cfgFileDir, cfgFileName);
|
|
69703
69797
|
const middlewares = (_a2 = ui5Config.server) == null ? void 0 : _a2.customMiddleware;
|
|
69704
69798
|
if (middlewares) {
|
|
69705
69799
|
let mockMW;
|
|
@@ -69732,22 +69826,23 @@ var require_mockServer = __commonJS({
|
|
|
69732
69826
|
}
|
|
69733
69827
|
exports2.getMockServicesConfiguration = getMockServicesConfiguration;
|
|
69734
69828
|
async function readDynamicMockServerConfig(yamlCfgDirPath, mockFolderPath) {
|
|
69735
|
-
|
|
69736
|
-
const
|
|
69737
|
-
const
|
|
69738
|
-
const
|
|
69829
|
+
var _a2;
|
|
69830
|
+
const configDirPath = (0, path_1.resolve)(yamlCfgDirPath, mockFolderPath);
|
|
69831
|
+
const jsonConfigPath = (0, path_1.join)(configDirPath, "config.json");
|
|
69832
|
+
const moduleConfigPath = (0, path_1.join)(configDirPath, "config.js");
|
|
69833
|
+
const isJSON = await (0, file_1.fileExists)(jsonConfigPath);
|
|
69739
69834
|
let services;
|
|
69740
69835
|
try {
|
|
69741
69836
|
if (isJSON) {
|
|
69742
|
-
services = await file_1.readJSON(jsonConfigPath);
|
|
69837
|
+
services = await (0, file_1.readJSON)(jsonConfigPath);
|
|
69743
69838
|
} else {
|
|
69744
|
-
const dynamicConfig = await Promise.resolve().then(() => __importStar(require(
|
|
69839
|
+
const dynamicConfig = await (_a2 = moduleConfigPath, Promise.resolve().then(() => __importStar(require(_a2))));
|
|
69745
69840
|
services = dynamicConfig == null ? void 0 : dynamicConfig.default;
|
|
69746
69841
|
}
|
|
69747
69842
|
} catch (e) {
|
|
69748
69843
|
throw new Error(i18n_1.i18n.t("ERROR_UI5_YAML_DYNAMIC_CFG_IMPORT", {
|
|
69749
69844
|
filePath: isJSON ? jsonConfigPath : moduleConfigPath,
|
|
69750
|
-
yamlFile: path_1.join(yamlCfgDirPath, project_spec_1.FileName.Ui5MockYaml)
|
|
69845
|
+
yamlFile: (0, path_1.join)(yamlCfgDirPath, project_spec_1.FileName.Ui5MockYaml)
|
|
69751
69846
|
}));
|
|
69752
69847
|
}
|
|
69753
69848
|
return (services == null ? void 0 : services.length) ? services : null;
|
|
@@ -69755,7 +69850,7 @@ var require_mockServer = __commonJS({
|
|
|
69755
69850
|
function matchMockServiceByMetadataPath(mockService, path3) {
|
|
69756
69851
|
const { metadataPath } = mockService;
|
|
69757
69852
|
if (metadataPath) {
|
|
69758
|
-
return path3.endsWith(path_1.normalize(metadataPath));
|
|
69853
|
+
return path3.endsWith((0, path_1.normalize)(metadataPath));
|
|
69759
69854
|
}
|
|
69760
69855
|
return false;
|
|
69761
69856
|
}
|
|
@@ -70245,9 +70340,13 @@ var require_utils9 = __commonJS({
|
|
|
70245
70340
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
70246
70341
|
if (k2 === void 0)
|
|
70247
70342
|
k2 = k;
|
|
70248
|
-
Object.
|
|
70249
|
-
|
|
70250
|
-
|
|
70343
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
70344
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
70345
|
+
desc = { enumerable: true, get: function() {
|
|
70346
|
+
return m[k];
|
|
70347
|
+
} };
|
|
70348
|
+
}
|
|
70349
|
+
Object.defineProperty(o, k2, desc);
|
|
70251
70350
|
} : function(o, m, k, k2) {
|
|
70252
70351
|
if (k2 === void 0)
|
|
70253
70352
|
k2 = k;
|
|
@@ -70278,8 +70377,8 @@ var require_utils9 = __commonJS({
|
|
|
70278
70377
|
var fs_1 = require("fs");
|
|
70279
70378
|
var findit2_1 = __importDefault(require_findit2());
|
|
70280
70379
|
var fast_xml_parser_1 = __importDefault(require_parser2());
|
|
70281
|
-
var project_spec_1 =
|
|
70282
|
-
var ux_specification_types_1 =
|
|
70380
|
+
var project_spec_1 = require_dist7();
|
|
70381
|
+
var ux_specification_types_1 = require_dist6();
|
|
70283
70382
|
var findUp = require_find_up();
|
|
70284
70383
|
var path_1 = require("path");
|
|
70285
70384
|
var i18n_1 = require_i18n3();
|
|
@@ -70297,11 +70396,11 @@ var require_utils9 = __commonJS({
|
|
|
70297
70396
|
if (!pckgJson) {
|
|
70298
70397
|
throw new Error(`Could not find any project root. Parameter 'sapuxRequired' was ${sapuxRequired ? "true" : "false"}`);
|
|
70299
70398
|
}
|
|
70300
|
-
let root = path_1.dirname(pckgJson);
|
|
70399
|
+
let root = (0, path_1.dirname)(pckgJson);
|
|
70301
70400
|
if (sapuxRequired) {
|
|
70302
|
-
const sapux = (await file_1.readJSON(pckgJson)).sapux;
|
|
70401
|
+
const sapux = (await (0, file_1.readJSON)(pckgJson)).sapux;
|
|
70303
70402
|
if (!sapux) {
|
|
70304
|
-
root = await findProjectRoot(path_1.dirname(root), sapuxRequired);
|
|
70403
|
+
root = await findProjectRoot((0, path_1.dirname)(root), sapuxRequired);
|
|
70305
70404
|
}
|
|
70306
70405
|
}
|
|
70307
70406
|
return root;
|
|
@@ -70333,16 +70432,16 @@ var require_utils9 = __commonJS({
|
|
|
70333
70432
|
];
|
|
70334
70433
|
const fileNames = [project_spec_1.FileName.Pom, project_spec_1.FileName.Package];
|
|
70335
70434
|
return new Promise((doResolve, reject) => {
|
|
70336
|
-
const finder = findit2_1.default(root);
|
|
70435
|
+
const finder = (0, findit2_1.default)(root);
|
|
70337
70436
|
finder.on("directory", (dir, stat, stop) => {
|
|
70338
|
-
const base = path_1.basename(dir);
|
|
70437
|
+
const base = (0, path_1.basename)(dir);
|
|
70339
70438
|
if (stopFolders.indexOf(base) !== -1) {
|
|
70340
70439
|
stop();
|
|
70341
70440
|
}
|
|
70342
70441
|
});
|
|
70343
70442
|
finder.on("file", async (file) => {
|
|
70344
|
-
if (fileNames.indexOf(path_1.basename(file)) && await capProject_1.isCapProject(path_1.dirname(file))) {
|
|
70345
|
-
projects.push(path_1.dirname(file));
|
|
70443
|
+
if (fileNames.indexOf((0, path_1.basename)(file)) && await (0, capProject_1.isCapProject)((0, path_1.dirname)(file))) {
|
|
70444
|
+
projects.push((0, path_1.dirname)(file));
|
|
70346
70445
|
}
|
|
70347
70446
|
});
|
|
70348
70447
|
finder.on("end", () => {
|
|
@@ -70356,16 +70455,16 @@ var require_utils9 = __commonJS({
|
|
|
70356
70455
|
exports2.findCapProjects = findCapProjects;
|
|
70357
70456
|
async function findAll(root, filename, results, stopFolders) {
|
|
70358
70457
|
return new Promise((doResolve, reject) => {
|
|
70359
|
-
const finder = findit2_1.default(root);
|
|
70458
|
+
const finder = (0, findit2_1.default)(root);
|
|
70360
70459
|
finder.on("directory", (dir, stat, stop) => {
|
|
70361
|
-
const base = path_1.basename(dir);
|
|
70460
|
+
const base = (0, path_1.basename)(dir);
|
|
70362
70461
|
if (stopFolders.indexOf(base) !== -1) {
|
|
70363
70462
|
stop();
|
|
70364
70463
|
}
|
|
70365
70464
|
});
|
|
70366
70465
|
finder.on("file", (file) => {
|
|
70367
70466
|
if (file.endsWith(filename)) {
|
|
70368
|
-
results.push(path_1.dirname(file));
|
|
70467
|
+
results.push((0, path_1.dirname)(file));
|
|
70369
70468
|
}
|
|
70370
70469
|
});
|
|
70371
70470
|
finder.on("end", () => {
|
|
@@ -70380,9 +70479,9 @@ var require_utils9 = __commonJS({
|
|
|
70380
70479
|
async function findExtensionFiles(root, targetFileName = project_spec_1.FileName.Fragment) {
|
|
70381
70480
|
const extensionFiles = [];
|
|
70382
70481
|
return new Promise((doResolve, reject) => {
|
|
70383
|
-
const finder = findit2_1.default(root);
|
|
70482
|
+
const finder = (0, findit2_1.default)(root);
|
|
70384
70483
|
finder.on("directory", (dir, stat, stop) => {
|
|
70385
|
-
const base = path_1.basename(dir);
|
|
70484
|
+
const base = (0, path_1.basename)(dir);
|
|
70386
70485
|
if (base === ".git" || base === "node_modules" || base === "dist" || base === project_spec_1.DirName.Sapux) {
|
|
70387
70486
|
stop();
|
|
70388
70487
|
}
|
|
@@ -70478,7 +70577,7 @@ var require_utils9 = __commonJS({
|
|
|
70478
70577
|
const sapuxProjects = [];
|
|
70479
70578
|
for (const root of projects) {
|
|
70480
70579
|
try {
|
|
70481
|
-
if ((await file_1.readJSON(path_1.join(root, project_spec_1.FileName.Package))).sapux) {
|
|
70580
|
+
if ((await (0, file_1.readJSON)((0, path_1.join)(root, project_spec_1.FileName.Package))).sapux) {
|
|
70482
70581
|
sapuxProjects.push(root);
|
|
70483
70582
|
}
|
|
70484
70583
|
} catch (error3) {
|
|
@@ -70500,21 +70599,21 @@ var require_utils9 = __commonJS({
|
|
|
70500
70599
|
exports2.findAllProjectRoots = findAllProjectRoots;
|
|
70501
70600
|
async function getAppType(appRoot, projectRoot) {
|
|
70502
70601
|
if (appRoot === projectRoot) {
|
|
70503
|
-
const appPckJson = await file_1.readJSON(path_1.join(appRoot, project_spec_1.FileName.Package));
|
|
70602
|
+
const appPckJson = await (0, file_1.readJSON)((0, path_1.join)(appRoot, project_spec_1.FileName.Package));
|
|
70504
70603
|
if (appPckJson.sapux === true) {
|
|
70505
70604
|
return "SAP Fiori elements";
|
|
70506
|
-
} else if (await file_1.fileExists(path_1.join(appRoot, project_spec_1.FileName.ExtConfigJson))) {
|
|
70605
|
+
} else if (await (0, file_1.fileExists)((0, path_1.join)(appRoot, project_spec_1.FileName.ExtConfigJson))) {
|
|
70507
70606
|
return "SAPUI5 Extension";
|
|
70508
70607
|
} else {
|
|
70509
70608
|
return "SAPUI5 freestyle";
|
|
70510
70609
|
}
|
|
70511
70610
|
}
|
|
70512
70611
|
try {
|
|
70513
|
-
const projectPckJson = await file_1.readJSON(path_1.join(projectRoot, project_spec_1.FileName.Package));
|
|
70612
|
+
const projectPckJson = await (0, file_1.readJSON)((0, path_1.join)(projectRoot, project_spec_1.FileName.Package));
|
|
70514
70613
|
if (!projectPckJson.sapux) {
|
|
70515
70614
|
return "SAPUI5 freestyle";
|
|
70516
70615
|
} else if (Array.isArray(projectPckJson.sapux)) {
|
|
70517
|
-
return projectPckJson.sapux.find((relAppPath) => path_1.join(projectRoot, ...relAppPath.split(/\\|\//)) === appRoot) ? "SAP Fiori elements" : "SAPUI5 freestyle";
|
|
70616
|
+
return projectPckJson.sapux.find((relAppPath) => (0, path_1.join)(projectRoot, ...relAppPath.split(/\\|\//)) === appRoot) ? "SAP Fiori elements" : "SAPUI5 freestyle";
|
|
70518
70617
|
}
|
|
70519
70618
|
} catch {
|
|
70520
70619
|
return "SAPUI5 freestyle";
|
|
@@ -70525,10 +70624,10 @@ var require_utils9 = __commonJS({
|
|
|
70525
70624
|
if (appRoot === projectRoot) {
|
|
70526
70625
|
return "EDMX Backend";
|
|
70527
70626
|
}
|
|
70528
|
-
if (await capProject_1.isCapJavaProject(projectRoot)) {
|
|
70627
|
+
if (await (0, capProject_1.isCapJavaProject)(projectRoot)) {
|
|
70529
70628
|
return "CAP Java";
|
|
70530
70629
|
}
|
|
70531
|
-
if (await capProject_1.isCapNodeJsProject(projectRoot)) {
|
|
70630
|
+
if (await (0, capProject_1.isCapNodeJsProject)(projectRoot)) {
|
|
70532
70631
|
return "CAP Node.js";
|
|
70533
70632
|
}
|
|
70534
70633
|
throw new Error(i18n_1.i18n.t("ERROR_DETAIL_PROJECT_TYPE", { appRoot, projectRoot }));
|
|
@@ -70542,11 +70641,11 @@ var require_utils9 = __commonJS({
|
|
|
70542
70641
|
};
|
|
70543
70642
|
} else if (Array.isArray(sapux)) {
|
|
70544
70643
|
const pathWithSep = path3.endsWith(path_1.sep) ? path3 : path3 + path_1.sep;
|
|
70545
|
-
const relAppPaths = sapux.map((a) => path_1.join(...a.split(/\\|\//)));
|
|
70546
|
-
const relApp = relAppPaths.find((app) => pathWithSep.startsWith(path_1.join(root, app) + path_1.sep));
|
|
70644
|
+
const relAppPaths = sapux.map((a) => (0, path_1.join)(...a.split(/\\|\//)));
|
|
70645
|
+
const relApp = relAppPaths.find((app) => pathWithSep.startsWith((0, path_1.join)(root, app) + path_1.sep));
|
|
70547
70646
|
if (relApp) {
|
|
70548
70647
|
return {
|
|
70549
|
-
appRoot: path_1.join(root, relApp),
|
|
70648
|
+
appRoot: (0, path_1.join)(root, relApp),
|
|
70550
70649
|
projectRoot: root
|
|
70551
70650
|
};
|
|
70552
70651
|
}
|
|
@@ -70559,30 +70658,30 @@ var require_utils9 = __commonJS({
|
|
|
70559
70658
|
if (!appRoot) {
|
|
70560
70659
|
return null;
|
|
70561
70660
|
}
|
|
70562
|
-
const appPckJson = await file_1.readJSON(path_1.join(appRoot, project_spec_1.FileName.Package));
|
|
70661
|
+
const appPckJson = await (0, file_1.readJSON)((0, path_1.join)(appRoot, project_spec_1.FileName.Package));
|
|
70563
70662
|
if (appPckJson.sapux) {
|
|
70564
70663
|
return findRootsWithSapux(appPckJson.sapux, path3, appRoot);
|
|
70565
70664
|
}
|
|
70566
|
-
if (await capProject_1.isCapProject(appRoot, appPckJson)) {
|
|
70665
|
+
if (await (0, capProject_1.isCapProject)(appRoot, appPckJson)) {
|
|
70567
70666
|
return null;
|
|
70568
70667
|
}
|
|
70569
|
-
if ((fs_1.existsSync(path_1.join(appRoot, project_spec_1.FileName.Ui5LocalYaml)) || fs_1.existsSync(path_1.join(appRoot, project_spec_1.FileName.ExtConfigJson))) && exports2.hasDependency(appPckJson, "@sap/ux-ui5-tooling")) {
|
|
70668
|
+
if (((0, fs_1.existsSync)((0, path_1.join)(appRoot, project_spec_1.FileName.Ui5LocalYaml)) || (0, fs_1.existsSync)((0, path_1.join)(appRoot, project_spec_1.FileName.ExtConfigJson))) && (0, exports2.hasDependency)(appPckJson, "@sap/ux-ui5-tooling")) {
|
|
70570
70669
|
return {
|
|
70571
70670
|
appRoot,
|
|
70572
70671
|
projectRoot: appRoot
|
|
70573
70672
|
};
|
|
70574
70673
|
}
|
|
70575
70674
|
try {
|
|
70576
|
-
const { root } = path_1.parse(appRoot);
|
|
70577
|
-
let projectRoot = path_1.dirname(appRoot);
|
|
70675
|
+
const { root } = (0, path_1.parse)(appRoot);
|
|
70676
|
+
let projectRoot = (0, path_1.dirname)(appRoot);
|
|
70578
70677
|
while (projectRoot !== root) {
|
|
70579
|
-
if (await capProject_1.isCapProject(projectRoot) && path_1.join(projectRoot, "app") !== appRoot) {
|
|
70678
|
+
if (await (0, capProject_1.isCapProject)(projectRoot) && (0, path_1.join)(projectRoot, "app") !== appRoot) {
|
|
70580
70679
|
return {
|
|
70581
70680
|
appRoot,
|
|
70582
70681
|
projectRoot
|
|
70583
70682
|
};
|
|
70584
70683
|
}
|
|
70585
|
-
projectRoot = path_1.dirname(projectRoot);
|
|
70684
|
+
projectRoot = (0, path_1.dirname)(projectRoot);
|
|
70586
70685
|
}
|
|
70587
70686
|
} catch (e) {
|
|
70588
70687
|
}
|
|
@@ -70597,7 +70696,7 @@ var require_utils9 = __commonJS({
|
|
|
70597
70696
|
const manifestPaths = await findAllManifest(wsFolders);
|
|
70598
70697
|
for (const manifestPath of manifestPaths) {
|
|
70599
70698
|
try {
|
|
70600
|
-
const manifest = await file_1.readJSON(path_1.join(manifestPath, project_spec_1.FileName.Manifest));
|
|
70699
|
+
const manifest = await (0, file_1.readJSON)((0, path_1.join)(manifestPath, project_spec_1.FileName.Manifest));
|
|
70601
70700
|
if (!manifest["sap.app"] || !manifest["sap.app"].id || manifest["sap.app"].type !== "application") {
|
|
70602
70701
|
continue;
|
|
70603
70702
|
}
|
|
@@ -70617,12 +70716,12 @@ var require_utils9 = __commonJS({
|
|
|
70617
70716
|
const roots = await findAllProjectRoots(workspaceRoots, false);
|
|
70618
70717
|
for (const root of roots) {
|
|
70619
70718
|
try {
|
|
70620
|
-
const packageJson = await file_1.readJSON(path_1.join(root, project_spec_1.FileName.Package));
|
|
70621
|
-
if ((exports2.hasDependency(packageJson, "@sap/ux-ui5-tooling") || await capProject_1.isCapProject(root, packageJson)) && hasScript(packageJson)) {
|
|
70719
|
+
const packageJson = await (0, file_1.readJSON)((0, path_1.join)(root, project_spec_1.FileName.Package));
|
|
70720
|
+
if (((0, exports2.hasDependency)(packageJson, "@sap/ux-ui5-tooling") || await (0, capProject_1.isCapProject)(root, packageJson)) && hasScript(packageJson)) {
|
|
70622
70721
|
result2.push(root);
|
|
70623
70722
|
}
|
|
70624
70723
|
} catch (error3) {
|
|
70625
|
-
logger == null ? void 0 : logger.info(`Invalid JSON ${path_1.join(root, project_spec_1.FileName.Package)}. Application Modeler will skip this project.`);
|
|
70724
|
+
logger == null ? void 0 : logger.info(`Invalid JSON ${(0, path_1.join)(root, project_spec_1.FileName.Package)}. Application Modeler will skip this project.`);
|
|
70626
70725
|
continue;
|
|
70627
70726
|
}
|
|
70628
70727
|
}
|
|
@@ -70630,7 +70729,7 @@ var require_utils9 = __commonJS({
|
|
|
70630
70729
|
};
|
|
70631
70730
|
exports2.findRunnableProjects = findRunnableProjects;
|
|
70632
70731
|
async function checkPackageJson(root, dependency, sapux) {
|
|
70633
|
-
const packageJson = await file_1.readJSON(path_1.join(root, project_spec_1.FileName.Package));
|
|
70732
|
+
const packageJson = await (0, file_1.readJSON)((0, path_1.join)(root, project_spec_1.FileName.Package));
|
|
70634
70733
|
if (packageJson.dependencies && packageJson.dependencies[dependency] !== void 0 || packageJson.devDependencies && packageJson.devDependencies[dependency] !== void 0) {
|
|
70635
70734
|
return true;
|
|
70636
70735
|
}
|
|
@@ -70674,17 +70773,17 @@ var require_utils9 = __commonJS({
|
|
|
70674
70773
|
exports2.getMainService = getMainService;
|
|
70675
70774
|
function createApplicationStructureConfig(appFolder, manifest, sync) {
|
|
70676
70775
|
return {
|
|
70677
|
-
manifest: path_1.join(appFolder, project_spec_1.DirName.Webapp, project_spec_1.FileName.Manifest),
|
|
70678
|
-
changes: path_1.join(appFolder, project_spec_1.DirName.Webapp, project_spec_1.DirName.Changes),
|
|
70679
|
-
app: sync ? path_1.join(appFolder, project_spec_1.DirName.Sapux, project_spec_1.FileName.App) : void 0,
|
|
70680
|
-
i18n: getI18nPath(path_1.join(appFolder, project_spec_1.DirName.Webapp), manifest),
|
|
70776
|
+
manifest: (0, path_1.join)(appFolder, project_spec_1.DirName.Webapp, project_spec_1.FileName.Manifest),
|
|
70777
|
+
changes: (0, path_1.join)(appFolder, project_spec_1.DirName.Webapp, project_spec_1.DirName.Changes),
|
|
70778
|
+
app: sync ? (0, path_1.join)(appFolder, project_spec_1.DirName.Sapux, project_spec_1.FileName.App) : void 0,
|
|
70779
|
+
i18n: getI18nPath((0, path_1.join)(appFolder, project_spec_1.DirName.Webapp), manifest),
|
|
70681
70780
|
mainService: getMainService(manifest),
|
|
70682
70781
|
services: {},
|
|
70683
70782
|
annotations: {},
|
|
70684
|
-
ext: path_1.join(appFolder, project_spec_1.DirName.Webapp, project_spec_1.DirName.Ext),
|
|
70685
|
-
controller: path_1.join(appFolder, project_spec_1.DirName.Webapp, project_spec_1.DirName.Ext, project_spec_1.DirName.Controller),
|
|
70686
|
-
view: path_1.join(appFolder, project_spec_1.DirName.Webapp, project_spec_1.DirName.Ext, project_spec_1.DirName.View),
|
|
70687
|
-
fragment: path_1.join(appFolder, project_spec_1.DirName.Webapp, project_spec_1.DirName.Ext, project_spec_1.DirName.Fragment)
|
|
70783
|
+
ext: (0, path_1.join)(appFolder, project_spec_1.DirName.Webapp, project_spec_1.DirName.Ext),
|
|
70784
|
+
controller: (0, path_1.join)(appFolder, project_spec_1.DirName.Webapp, project_spec_1.DirName.Ext, project_spec_1.DirName.Controller),
|
|
70785
|
+
view: (0, path_1.join)(appFolder, project_spec_1.DirName.Webapp, project_spec_1.DirName.Ext, project_spec_1.DirName.View),
|
|
70786
|
+
fragment: (0, path_1.join)(appFolder, project_spec_1.DirName.Webapp, project_spec_1.DirName.Ext, project_spec_1.DirName.Fragment)
|
|
70688
70787
|
};
|
|
70689
70788
|
}
|
|
70690
70789
|
exports2.createApplicationStructureConfig = createApplicationStructureConfig;
|
|
@@ -70698,18 +70797,18 @@ var require_utils9 = __commonJS({
|
|
|
70698
70797
|
};
|
|
70699
70798
|
const appServices = project.apps[appFolder].services;
|
|
70700
70799
|
if (services[name].settings) {
|
|
70701
|
-
appServices[name].local = ((_a2 = services[name].settings) == null ? void 0 : _a2.localUri) ? path_1.join(appFolder, project_spec_1.DirName.Webapp, services[name].settings.localUri) : "";
|
|
70800
|
+
appServices[name].local = ((_a2 = services[name].settings) == null ? void 0 : _a2.localUri) ? (0, path_1.join)(appFolder, project_spec_1.DirName.Webapp, services[name].settings.localUri) : "";
|
|
70702
70801
|
if (services[name].settings.annotations) {
|
|
70703
70802
|
project.apps[appFolder].annotations[name] = project.apps[appFolder].annotations[name] || [];
|
|
70704
70803
|
for (const id of services[name].settings.annotations) {
|
|
70705
70804
|
const annotation = services[id];
|
|
70706
70805
|
if (annotation) {
|
|
70707
70806
|
if (!annotation.uri || annotation.settings && annotation.uri === annotation.settings.localUri) {
|
|
70708
|
-
project.apps[appFolder].annotations[name].push(path_1.join(appFolder, project_spec_1.DirName.Webapp, annotation.settings.localUri));
|
|
70807
|
+
project.apps[appFolder].annotations[name].push((0, path_1.join)(appFolder, project_spec_1.DirName.Webapp, annotation.settings.localUri));
|
|
70709
70808
|
} else {
|
|
70710
70809
|
appServices[name].annotations = {
|
|
70711
70810
|
uri: annotation.uri,
|
|
70712
|
-
local: annotation.settings && annotation.settings.localUri ? path_1.join(appFolder, project_spec_1.DirName.Webapp, annotation.settings.localUri) : void 0
|
|
70811
|
+
local: annotation.settings && annotation.settings.localUri ? (0, path_1.join)(appFolder, project_spec_1.DirName.Webapp, annotation.settings.localUri) : void 0
|
|
70713
70812
|
};
|
|
70714
70813
|
if (appServices[name].annotations.local) {
|
|
70715
70814
|
project.apps[appFolder].annotations[name].push(appServices[name].annotations.local);
|
|
@@ -70744,14 +70843,14 @@ var require_utils9 = __commonJS({
|
|
|
70744
70843
|
}
|
|
70745
70844
|
exports2.getAppConfig = getAppConfig;
|
|
70746
70845
|
async function readAppJson(path3, includePageConfigs = true) {
|
|
70747
|
-
const app = await file_1.readJSON(path3);
|
|
70846
|
+
const app = await (0, file_1.readJSON)(path3);
|
|
70748
70847
|
if (includePageConfigs) {
|
|
70749
70848
|
const pagesDirectory = path3.replace(project_spec_1.FileName.App, project_spec_1.DirName.Pages);
|
|
70750
|
-
const pageFiles = await file_1.readDirectory(pagesDirectory);
|
|
70849
|
+
const pageFiles = await (0, file_1.readDirectory)(pagesDirectory);
|
|
70751
70850
|
for (const file of pageFiles) {
|
|
70752
70851
|
const id = file.replace(".json", "");
|
|
70753
70852
|
if (app.pages[id]) {
|
|
70754
|
-
app.pages[id].config = await file_1.readJSON(path_1.join(pagesDirectory, file));
|
|
70853
|
+
app.pages[id].config = await (0, file_1.readJSON)((0, path_1.join)(pagesDirectory, file));
|
|
70755
70854
|
}
|
|
70756
70855
|
}
|
|
70757
70856
|
}
|
|
@@ -70768,15 +70867,15 @@ var require_utils9 = __commonJS({
|
|
|
70768
70867
|
relativePath = i18nModel.settings.bundleUrl;
|
|
70769
70868
|
} else if ("settings" in i18nModel && typeof i18nModel.settings === "object" && "bundleName" in i18nModel.settings && typeof i18nModel.settings.bundleName === "string") {
|
|
70770
70869
|
const relBundleString = i18nModel.settings.bundleName.replace(manifest["sap.app"].id, "");
|
|
70771
|
-
relativePath = `${path_1.join(...relBundleString.split("."))}.properties`;
|
|
70870
|
+
relativePath = `${(0, path_1.join)(...relBundleString.split("."))}.properties`;
|
|
70772
70871
|
} else if (typeof ((_c = manifest == null ? void 0 : manifest["sap.app"]) == null ? void 0 : _c["i18n"]) === "string") {
|
|
70773
70872
|
relativePath = manifest["sap.app"]["i18n"];
|
|
70774
70873
|
}
|
|
70775
|
-
return relativePath ? path_1.join(manifestFolder, relativePath) : void 0;
|
|
70874
|
+
return relativePath ? (0, path_1.join)(manifestFolder, relativePath) : void 0;
|
|
70776
70875
|
}
|
|
70777
70876
|
exports2.getI18nPath = getI18nPath;
|
|
70778
70877
|
async function traverseI18nProperties(path3, fnCallback) {
|
|
70779
|
-
const i18nFile = await file_1.readFile(path3);
|
|
70878
|
+
const i18nFile = await (0, file_1.readFile)(path3);
|
|
70780
70879
|
const lines = i18nFile.split(/\r\n|\n/);
|
|
70781
70880
|
for (let i = 0; i < lines.length; i++) {
|
|
70782
70881
|
const line = lines[i];
|
|
@@ -70838,7 +70937,7 @@ var require_utils9 = __commonJS({
|
|
|
70838
70937
|
output3.push(`${key}=${value}${os_1.default.EOL}`);
|
|
70839
70938
|
}
|
|
70840
70939
|
}
|
|
70841
|
-
await file_1.updateFile(path3, output3.join(os_1.default.EOL));
|
|
70940
|
+
await (0, file_1.updateFile)(path3, output3.join(os_1.default.EOL));
|
|
70842
70941
|
}
|
|
70843
70942
|
exports2.updateI18nProperties = updateI18nProperties;
|
|
70844
70943
|
async function findI18nProperty(path3, key) {
|
|
@@ -70856,11 +70955,11 @@ var require_utils9 = __commonJS({
|
|
|
70856
70955
|
}
|
|
70857
70956
|
exports2.findI18nProperty = findI18nProperty;
|
|
70858
70957
|
async function getProjectTypeFromProjectFiles(projectRoot, packageJson) {
|
|
70859
|
-
return await capProject_1.isCapProject(projectRoot, packageJson) ? "Cap" : "Edmx";
|
|
70958
|
+
return await (0, capProject_1.isCapProject)(projectRoot, packageJson) ? "Cap" : "Edmx";
|
|
70860
70959
|
}
|
|
70861
70960
|
exports2.getProjectTypeFromProjectFiles = getProjectTypeFromProjectFiles;
|
|
70862
70961
|
async function getProjectType(root) {
|
|
70863
|
-
const packageJson = await file_1.readJSON(path_1.join(root, project_spec_1.FileName.Package));
|
|
70962
|
+
const packageJson = await (0, file_1.readJSON)((0, path_1.join)(root, project_spec_1.FileName.Package));
|
|
70864
70963
|
return getProjectTypeFromProjectFiles(root, packageJson);
|
|
70865
70964
|
}
|
|
70866
70965
|
exports2.getProjectType = getProjectType;
|
|
@@ -70891,7 +70990,7 @@ var require_utils9 = __commonJS({
|
|
|
70891
70990
|
var _a2, _b, _c;
|
|
70892
70991
|
let pathInYaml;
|
|
70893
70992
|
let backEndConfig;
|
|
70894
|
-
const yamlContent = await file_1.readFile(path_1.join(root, fileName));
|
|
70993
|
+
const yamlContent = await (0, file_1.readFile)((0, path_1.join)(root, fileName));
|
|
70895
70994
|
const middlewares = (_b = (_a2 = yaml.parse(yamlContent)) == null ? void 0 : _a2.server) == null ? void 0 : _b.customMiddleware;
|
|
70896
70995
|
const middleware = middlewares == null ? void 0 : middlewares.find((element) => element.name === middlewareName);
|
|
70897
70996
|
const backends = (_c = middleware == null ? void 0 : middleware.configuration) == null ? void 0 : _c.backend;
|
|
@@ -70915,15 +71014,15 @@ var require_utils9 = __commonJS({
|
|
|
70915
71014
|
exports2.getBackendConfigByPath = getBackendConfigByPath;
|
|
70916
71015
|
async function getUi5CustomMiddleware(root) {
|
|
70917
71016
|
var _a2, _b;
|
|
70918
|
-
const yamlContent = await file_1.readFile(path_1.join(root, project_spec_1.FileName.Ui5Yaml));
|
|
71017
|
+
const yamlContent = await (0, file_1.readFile)((0, path_1.join)(root, project_spec_1.FileName.Ui5Yaml));
|
|
70919
71018
|
const middlewares = (_b = (_a2 = yaml.parse(yamlContent)) == null ? void 0 : _a2.server) == null ? void 0 : _b.customMiddleware;
|
|
70920
71019
|
return middlewares == null ? void 0 : middlewares.find((element) => element.name === "fiori-tools-proxy");
|
|
70921
71020
|
}
|
|
70922
71021
|
exports2.getUi5CustomMiddleware = getUi5CustomMiddleware;
|
|
70923
71022
|
async function getLocalUI5Version(root) {
|
|
70924
|
-
const yamlFile = path_1.join(root, project_spec_1.FileName.Ui5LocalYaml);
|
|
70925
|
-
if (await file_1.fileExists(yamlFile)) {
|
|
70926
|
-
const yamlContent = yaml.parse(await file_1.readFile(yamlFile));
|
|
71023
|
+
const yamlFile = (0, path_1.join)(root, project_spec_1.FileName.Ui5LocalYaml);
|
|
71024
|
+
if (await (0, file_1.fileExists)(yamlFile)) {
|
|
71025
|
+
const yamlContent = yaml.parse(await (0, file_1.readFile)(yamlFile));
|
|
70927
71026
|
return yamlContent.framework && yamlContent.framework.version;
|
|
70928
71027
|
}
|
|
70929
71028
|
}
|
|
@@ -70933,14 +71032,14 @@ var require_utils9 = __commonJS({
|
|
|
70933
71032
|
var _a2, _b;
|
|
70934
71033
|
try {
|
|
70935
71034
|
let ui5Version = "latest";
|
|
70936
|
-
const webappPath = await webapp_1.getUi5CustomWebappPath(root);
|
|
70937
|
-
const manifestFile = path_1.join(root, webappPath, project_spec_1.FileName.Manifest);
|
|
70938
|
-
if (await file_1.fileExists(manifestFile)) {
|
|
70939
|
-
const manifest = await file_1.readJSON(manifestFile);
|
|
71035
|
+
const webappPath = await (0, webapp_1.getUi5CustomWebappPath)(root);
|
|
71036
|
+
const manifestFile = (0, path_1.join)(root, webappPath, project_spec_1.FileName.Manifest);
|
|
71037
|
+
if (await (0, file_1.fileExists)(manifestFile)) {
|
|
71038
|
+
const manifest = await (0, file_1.readJSON)(manifestFile);
|
|
70940
71039
|
ui5Version = (_b = (_a2 = manifest["sap.ui5"]) == null ? void 0 : _a2.dependencies) == null ? void 0 : _b.minUI5Version;
|
|
70941
71040
|
if (isNaN(parseFloat(ui5Version))) {
|
|
70942
71041
|
if (latestSapui5Version === void 0) {
|
|
70943
|
-
latestSapui5Version = await ux_ui5_info_1.getLatestSapui5Version();
|
|
71042
|
+
latestSapui5Version = await (0, ux_ui5_info_1.getLatestSapui5Version)();
|
|
70944
71043
|
}
|
|
70945
71044
|
ui5Version = latestSapui5Version;
|
|
70946
71045
|
}
|
|
@@ -70952,9 +71051,9 @@ var require_utils9 = __commonJS({
|
|
|
70952
71051
|
}
|
|
70953
71052
|
exports2.getUI5Version = getUI5Version;
|
|
70954
71053
|
async function checkServeLocalConfig(root) {
|
|
70955
|
-
const yamlFile = path_1.join(root, project_spec_1.FileName.Ui5LocalYaml);
|
|
70956
|
-
if (await file_1.fileExists(yamlFile)) {
|
|
70957
|
-
const yamlContent = yaml.parse(await file_1.readFile(yamlFile));
|
|
71054
|
+
const yamlFile = (0, path_1.join)(root, project_spec_1.FileName.Ui5LocalYaml);
|
|
71055
|
+
if (await (0, file_1.fileExists)(yamlFile)) {
|
|
71056
|
+
const yamlContent = yaml.parse(await (0, file_1.readFile)(yamlFile));
|
|
70958
71057
|
const middlewares = yamlContent.server.customMiddleware;
|
|
70959
71058
|
const serveLocal = middlewares.find((element) => element.name === "fiori-tools-servestatic");
|
|
70960
71059
|
if (serveLocal) {
|
|
@@ -70970,8 +71069,8 @@ var require_utils9 = __commonJS({
|
|
|
70970
71069
|
function getAppIdForFile(filepath, projectRoot, appIds) {
|
|
70971
71070
|
let appId = "";
|
|
70972
71071
|
appIds.forEach((appIdTmp) => {
|
|
70973
|
-
const relativeStr = path_1.relative(path_1.join(projectRoot, appIdTmp), filepath);
|
|
70974
|
-
if (relativeStr && !relativeStr.startsWith("..") && !path_1.isAbsolute(relativeStr)) {
|
|
71072
|
+
const relativeStr = (0, path_1.relative)((0, path_1.join)(projectRoot, appIdTmp), filepath);
|
|
71073
|
+
if (relativeStr && !relativeStr.startsWith("..") && !(0, path_1.isAbsolute)(relativeStr)) {
|
|
70975
71074
|
appId = appIdTmp;
|
|
70976
71075
|
}
|
|
70977
71076
|
});
|
|
@@ -70985,11 +71084,11 @@ var require_utils9 = __commonJS({
|
|
|
70985
71084
|
exports2.isOVPProject = isOVPProject;
|
|
70986
71085
|
async function deleteCapApp(appPath, logger) {
|
|
70987
71086
|
var _a2;
|
|
70988
|
-
const appName = path_1.basename(appPath);
|
|
71087
|
+
const appName = (0, path_1.basename)(appPath);
|
|
70989
71088
|
const projectRoot = await findProjectRoot(appPath);
|
|
70990
|
-
const packageJsonPath = path_1.join(projectRoot, project_spec_1.FileName.Package);
|
|
70991
|
-
const packageJson = await file_1.readJSON(packageJsonPath);
|
|
70992
|
-
const cdsFilePaths = [path_1.join(path_1.dirname(appPath), project_spec_1.FileName.ServiceCds), path_1.join(path_1.dirname(appPath), project_spec_1.FileName.IndexCds)];
|
|
71089
|
+
const packageJsonPath = (0, path_1.join)(projectRoot, project_spec_1.FileName.Package);
|
|
71090
|
+
const packageJson = await (0, file_1.readJSON)(packageJsonPath);
|
|
71091
|
+
const cdsFilePaths = [(0, path_1.join)((0, path_1.dirname)(appPath), project_spec_1.FileName.ServiceCds), (0, path_1.join)((0, path_1.dirname)(appPath), project_spec_1.FileName.IndexCds)];
|
|
70993
71092
|
if (!Array.isArray(packageJson.sapux)) {
|
|
70994
71093
|
logger == null ? void 0 : logger.error(i18n_1.i18n.t("ERROR_DEL_CAP_APP_SAPUX", { packageJsonPath }));
|
|
70995
71094
|
throw Error(i18n_1.i18n.t("ERROR_DEL_CAP_APP_SAPUX", { packageJsonPath }));
|
|
@@ -71004,23 +71103,23 @@ var require_utils9 = __commonJS({
|
|
|
71004
71103
|
if ((_a2 = packageJson.scripts) == null ? void 0 : _a2[`watch-${appName}`]) {
|
|
71005
71104
|
delete packageJson.scripts[`watch-${appName}`];
|
|
71006
71105
|
}
|
|
71007
|
-
await file_1.updateJSON(packageJsonPath, packageJson);
|
|
71106
|
+
await (0, file_1.updateJSON)(packageJsonPath, packageJson);
|
|
71008
71107
|
logger == null ? void 0 : logger.info(i18n_1.i18n.t("INFO_DEL_CAP_APP_FILE_UPDATED", { packageJsonPath }));
|
|
71009
|
-
await file_1.deleteDirectory(appPath);
|
|
71108
|
+
await (0, file_1.deleteDirectory)(appPath);
|
|
71010
71109
|
logger == null ? void 0 : logger.info(i18n_1.i18n.t("INFO_DEL_CAP_APP_DIR_DELETED", { appPath }));
|
|
71011
71110
|
const usingEntry = `using from './${appName}/annotations';`;
|
|
71012
71111
|
for (const cdsFilePath of cdsFilePaths) {
|
|
71013
|
-
if (await file_1.fileExists(cdsFilePath)) {
|
|
71112
|
+
if (await (0, file_1.fileExists)(cdsFilePath)) {
|
|
71014
71113
|
try {
|
|
71015
|
-
let cdsFile = await file_1.readFile(cdsFilePath);
|
|
71114
|
+
let cdsFile = await (0, file_1.readFile)(cdsFilePath);
|
|
71016
71115
|
if (cdsFile.indexOf(usingEntry) !== -1) {
|
|
71017
71116
|
logger == null ? void 0 : logger.info(i18n_1.i18n.t("INFO_DEL_CAP_APP_DELETE_USING", { appName, cdsFilePath }));
|
|
71018
71117
|
cdsFile = cdsFile.replace(usingEntry, "");
|
|
71019
71118
|
if (cdsFile.replace(/\n/g, "").trim() === "") {
|
|
71020
71119
|
logger == null ? void 0 : logger.info(i18n_1.i18n.t("INFO_DEL_CAP_APP_DEL_CDS", { cdsFilePath }));
|
|
71021
|
-
await file_1.deleteFile(cdsFilePath);
|
|
71120
|
+
await (0, file_1.deleteFile)(cdsFilePath);
|
|
71022
71121
|
} else {
|
|
71023
|
-
await file_1.updateFile(cdsFilePath, cdsFile);
|
|
71122
|
+
await (0, file_1.updateFile)(cdsFilePath, cdsFile);
|
|
71024
71123
|
}
|
|
71025
71124
|
}
|
|
71026
71125
|
} catch (error3) {
|
|
@@ -71028,9 +71127,9 @@ var require_utils9 = __commonJS({
|
|
|
71028
71127
|
}
|
|
71029
71128
|
}
|
|
71030
71129
|
}
|
|
71031
|
-
if ((await file_1.readDirectory(path_1.dirname(appPath))).length === 0) {
|
|
71032
|
-
logger == null ? void 0 : logger.info(i18n_1.i18n.t("INFO_DEL_CAP_APP_FOLDER_EMPTY", { appPath: path_1.dirname(appPath) }));
|
|
71033
|
-
await file_1.deleteDirectory(path_1.dirname(appPath));
|
|
71130
|
+
if ((await (0, file_1.readDirectory)((0, path_1.dirname)(appPath))).length === 0) {
|
|
71131
|
+
logger == null ? void 0 : logger.info(i18n_1.i18n.t("INFO_DEL_CAP_APP_FOLDER_EMPTY", { appPath: (0, path_1.dirname)(appPath) }));
|
|
71132
|
+
await (0, file_1.deleteDirectory)((0, path_1.dirname)(appPath));
|
|
71034
71133
|
}
|
|
71035
71134
|
}
|
|
71036
71135
|
exports2.deleteCapApp = deleteCapApp;
|
|
@@ -71039,7 +71138,7 @@ var require_utils9 = __commonJS({
|
|
|
71039
71138
|
let appId = manifest["sap.app"].id;
|
|
71040
71139
|
if (appId === project_spec_1.AppPomXmlArtifactIdPlaceholder) {
|
|
71041
71140
|
try {
|
|
71042
|
-
const pomFile = await file_1.readFile(path_1.join(projectRoot, "pom.xml"));
|
|
71141
|
+
const pomFile = await (0, file_1.readFile)((0, path_1.join)(projectRoot, "pom.xml"));
|
|
71043
71142
|
const pomXml = fast_xml_parser_1.default.parse(pomFile);
|
|
71044
71143
|
if ((_a2 = pomXml.project) == null ? void 0 : _a2.artifactId) {
|
|
71045
71144
|
appId = pomXml.project.artifactId;
|
|
@@ -71047,7 +71146,7 @@ var require_utils9 = __commonJS({
|
|
|
71047
71146
|
throw new Error();
|
|
71048
71147
|
}
|
|
71049
71148
|
} catch (error3) {
|
|
71050
|
-
appId = path_1.basename(projectRoot);
|
|
71149
|
+
appId = (0, path_1.basename)(projectRoot);
|
|
71051
71150
|
}
|
|
71052
71151
|
}
|
|
71053
71152
|
return appId;
|
|
@@ -71055,48 +71154,48 @@ var require_utils9 = __commonJS({
|
|
|
71055
71154
|
exports2.getApplicationId = getApplicationId;
|
|
71056
71155
|
function getCapAppMockdataDirPath(projectRoot) {
|
|
71057
71156
|
const capMockdataDirPaths = [
|
|
71058
|
-
path_1.join(projectRoot, project_spec_1.DirName.Db, project_spec_1.DirName.Csv),
|
|
71059
|
-
path_1.join(projectRoot, project_spec_1.DirName.Db, project_spec_1.DirName.Sapux, project_spec_1.DirName.Csv)
|
|
71157
|
+
(0, path_1.join)(projectRoot, project_spec_1.DirName.Db, project_spec_1.DirName.Csv),
|
|
71158
|
+
(0, path_1.join)(projectRoot, project_spec_1.DirName.Db, project_spec_1.DirName.Sapux, project_spec_1.DirName.Csv)
|
|
71060
71159
|
];
|
|
71061
71160
|
for (const path3 of capMockdataDirPaths) {
|
|
71062
|
-
if (fs_1.existsSync(path3)) {
|
|
71161
|
+
if ((0, fs_1.existsSync)(path3)) {
|
|
71063
71162
|
return path3;
|
|
71064
71163
|
}
|
|
71065
71164
|
}
|
|
71066
|
-
return path_1.join(projectRoot, project_spec_1.DirName.Db, project_spec_1.DirName.Data);
|
|
71165
|
+
return (0, path_1.join)(projectRoot, project_spec_1.DirName.Db, project_spec_1.DirName.Data);
|
|
71067
71166
|
}
|
|
71068
71167
|
exports2.getCapAppMockdataDirPath = getCapAppMockdataDirPath;
|
|
71069
71168
|
function getEdmxAppDefaultMockdataDirPath(appRoot) {
|
|
71070
|
-
return path_1.join(appRoot, project_spec_1.DirName.Webapp, project_spec_1.DirName.LocalService, project_spec_1.DirName.Data);
|
|
71169
|
+
return (0, path_1.join)(appRoot, project_spec_1.DirName.Webapp, project_spec_1.DirName.LocalService, project_spec_1.DirName.Data);
|
|
71071
71170
|
}
|
|
71072
71171
|
exports2.getEdmxAppDefaultMockdataDirPath = getEdmxAppDefaultMockdataDirPath;
|
|
71073
71172
|
async function tryGetEdmxAppMockServiceMockdataDir(configDir, serviceMetadataPath) {
|
|
71074
|
-
const config2 = await ui5Config_1.getMockServerConfig(configDir);
|
|
71173
|
+
const config2 = await (0, ui5Config_1.getMockServerConfig)(configDir);
|
|
71075
71174
|
if (config2) {
|
|
71076
|
-
const { services, mockFolder } = await ui5Config_1.getMockServicesConfiguration(configDir, config2);
|
|
71175
|
+
const { services, mockFolder } = await (0, ui5Config_1.getMockServicesConfiguration)(configDir, config2);
|
|
71077
71176
|
if (services) {
|
|
71078
|
-
const mockService = ui5Config_1.findMockServiceByMetadataPath(services, serviceMetadataPath);
|
|
71177
|
+
const mockService = (0, ui5Config_1.findMockServiceByMetadataPath)(services, serviceMetadataPath);
|
|
71079
71178
|
if (mockService == null ? void 0 : mockService.mockdataPath) {
|
|
71080
|
-
const servicesConfigFilePath = mockFolder ? path_1.resolve(configDir, mockFolder) : configDir;
|
|
71081
|
-
return path_1.resolve(servicesConfigFilePath, mockService.mockdataPath);
|
|
71179
|
+
const servicesConfigFilePath = mockFolder ? (0, path_1.resolve)(configDir, mockFolder) : configDir;
|
|
71180
|
+
return (0, path_1.resolve)(servicesConfigFilePath, mockService.mockdataPath);
|
|
71082
71181
|
}
|
|
71083
71182
|
}
|
|
71084
71183
|
}
|
|
71085
71184
|
}
|
|
71086
71185
|
exports2.tryGetEdmxAppMockServiceMockdataDir = tryGetEdmxAppMockServiceMockdataDir;
|
|
71087
71186
|
async function isAdaptationProject(projectRoot) {
|
|
71088
|
-
const adpConfigJsonPath = path_1.join(projectRoot, ".adp", "config.json");
|
|
71089
|
-
return file_1.fileExists(adpConfigJsonPath);
|
|
71187
|
+
const adpConfigJsonPath = (0, path_1.join)(projectRoot, ".adp", "config.json");
|
|
71188
|
+
return (0, file_1.fileExists)(adpConfigJsonPath);
|
|
71090
71189
|
}
|
|
71091
71190
|
exports2.isAdaptationProject = isAdaptationProject;
|
|
71092
71191
|
function getAdditionalEntitySetsFromManifest(json) {
|
|
71093
71192
|
const jsonPathTargetsPattern = `$['sap.ui5'].routing.targets`;
|
|
71094
71193
|
const jsonPathEntitySetsPattern = `options.settings.views.paths.*.entitySet`;
|
|
71095
|
-
const pages = jsonpath_plus_1.JSONPath({ path: jsonPathTargetsPattern, json })[0];
|
|
71194
|
+
const pages = (0, jsonpath_plus_1.JSONPath)({ path: jsonPathTargetsPattern, json })[0];
|
|
71096
71195
|
const additionalEntitySets = {};
|
|
71097
71196
|
for (const pageId in pages) {
|
|
71098
71197
|
const page = pages[pageId];
|
|
71099
|
-
const viewEntitySets = jsonpath_plus_1.JSONPath({
|
|
71198
|
+
const viewEntitySets = (0, jsonpath_plus_1.JSONPath)({
|
|
71100
71199
|
path: jsonPathEntitySetsPattern,
|
|
71101
71200
|
json: page
|
|
71102
71201
|
});
|
|
@@ -71326,7 +71425,7 @@ var require_toolsSuiteTelemetryDataProcessor = __commonJS({
|
|
|
71326
71425
|
async function getCommonProperties() {
|
|
71327
71426
|
const commonProperties = {};
|
|
71328
71427
|
commonProperties[types_1.CommonProperties.DevSpace] = await getSbasDevspace();
|
|
71329
|
-
commonProperties[types_1.CommonProperties.AppStudio] = ux_common_utils_1.isAppStudio();
|
|
71428
|
+
commonProperties[types_1.CommonProperties.AppStudio] = (0, ux_common_utils_1.isAppStudio)();
|
|
71330
71429
|
commonProperties[types_1.CommonProperties.AppStudioBackwardCompatible] = commonProperties[types_1.CommonProperties.AppStudio];
|
|
71331
71430
|
commonProperties[types_1.CommonProperties.InternlVsExternal] = getInternalVsExternal();
|
|
71332
71431
|
commonProperties[types_1.CommonProperties.InternlVsExternalBackwardCompatible] = commonProperties[types_1.CommonProperties.InternlVsExternal];
|
|
@@ -71335,7 +71434,7 @@ var require_toolsSuiteTelemetryDataProcessor = __commonJS({
|
|
|
71335
71434
|
exports2.getCommonProperties = getCommonProperties;
|
|
71336
71435
|
async function getSbasDevspace() {
|
|
71337
71436
|
var _a2, _b;
|
|
71338
|
-
if (ux_common_utils_1.isAppStudio()) {
|
|
71437
|
+
if ((0, ux_common_utils_1.isAppStudio)()) {
|
|
71339
71438
|
try {
|
|
71340
71439
|
const h20Url = process.env.H2O_URL;
|
|
71341
71440
|
const workspaceId = process.env.WORKSPACE_ID.replace("workspaces-", "");
|
|
@@ -71389,13 +71488,13 @@ var require_toolsSuiteTelemetryDataProcessor = __commonJS({
|
|
|
71389
71488
|
try {
|
|
71390
71489
|
let projectRoot;
|
|
71391
71490
|
try {
|
|
71392
|
-
projectRoot = await utils_1.findProjectRoot(appPath);
|
|
71491
|
+
projectRoot = await (0, utils_1.findProjectRoot)(appPath);
|
|
71393
71492
|
} catch {
|
|
71394
71493
|
}
|
|
71395
71494
|
if (!projectRoot) {
|
|
71396
71495
|
try {
|
|
71397
71496
|
const appParentFolder = path_1.default.dirname(appPath);
|
|
71398
|
-
projectRoot = await utils_1.findProjectRoot(appParentFolder, false);
|
|
71497
|
+
projectRoot = await (0, utils_1.findProjectRoot)(appParentFolder, false);
|
|
71399
71498
|
} catch (e) {
|
|
71400
71499
|
}
|
|
71401
71500
|
}
|
|
@@ -71403,17 +71502,17 @@ var require_toolsSuiteTelemetryDataProcessor = __commonJS({
|
|
|
71403
71502
|
if (!projectRoot) {
|
|
71404
71503
|
const directParentFolder = path_1.default.dirname(appPath);
|
|
71405
71504
|
const twoLevelUpParentFolder = path_1.default.dirname(directParentFolder);
|
|
71406
|
-
isCapJavaWithoutPackageJson = await capProject_1.isCapJavaProject(twoLevelUpParentFolder);
|
|
71505
|
+
isCapJavaWithoutPackageJson = await (0, capProject_1.isCapJavaProject)(twoLevelUpParentFolder);
|
|
71407
71506
|
projectRoot = isCapJavaWithoutPackageJson ? twoLevelUpParentFolder : appPath;
|
|
71408
71507
|
}
|
|
71409
71508
|
if (isCapJavaWithoutPackageJson) {
|
|
71410
71509
|
return types_1.ODataSource.CAPJava;
|
|
71411
71510
|
}
|
|
71412
|
-
const projectType = await utils_1.getProjectType(projectRoot);
|
|
71511
|
+
const projectType = await (0, utils_1.getProjectType)(projectRoot);
|
|
71413
71512
|
if (projectType === "Cap") {
|
|
71414
|
-
if (await capProject_1.isCapJavaProject(projectRoot)) {
|
|
71513
|
+
if (await (0, capProject_1.isCapJavaProject)(projectRoot)) {
|
|
71415
71514
|
return types_1.ODataSource.CAPJava;
|
|
71416
|
-
} else if (await capProject_1.isCapNodeJsProject(projectRoot)) {
|
|
71515
|
+
} else if (await (0, capProject_1.isCapNodeJsProject)(projectRoot)) {
|
|
71417
71516
|
return types_1.ODataSource.CAPNode;
|
|
71418
71517
|
}
|
|
71419
71518
|
} else if (projectType === "Edmx") {
|
|
@@ -71446,7 +71545,7 @@ var require_toolsSuiteTelemetryDataProcessor = __commonJS({
|
|
|
71446
71545
|
return types_1.DeployTarget.NO_DEPLOY_CONFIG;
|
|
71447
71546
|
}
|
|
71448
71547
|
function getInternalVsExternal() {
|
|
71449
|
-
return ux_feature_toggle_1.isInternalFeaturesSettingEnabled() ? "internal" : "external";
|
|
71548
|
+
return (0, ux_feature_toggle_1.isInternalFeaturesSettingEnabled)() ? "internal" : "external";
|
|
71450
71549
|
}
|
|
71451
71550
|
async function getToolsId(appPath) {
|
|
71452
71551
|
var _a2, _b, _c;
|
|
@@ -90471,7 +90570,7 @@ var require_toolsSuiteTelemetrySettings = __commonJS({
|
|
|
90471
90570
|
var definePath = (paths) => {
|
|
90472
90571
|
const platform = process.platform;
|
|
90473
90572
|
let settingsPath = paths[platform];
|
|
90474
|
-
if (ux_common_utils_1.isAppStudio()) {
|
|
90573
|
+
if ((0, ux_common_utils_1.isAppStudio)()) {
|
|
90475
90574
|
settingsPath = paths.theia;
|
|
90476
90575
|
}
|
|
90477
90576
|
if (!settingsPath) {
|
|
@@ -90482,20 +90581,20 @@ var require_toolsSuiteTelemetrySettings = __commonJS({
|
|
|
90482
90581
|
return path_1.default.join(homedir, settingsPath);
|
|
90483
90582
|
};
|
|
90484
90583
|
var setEnableTelemetry = async (enableTelemetry) => {
|
|
90485
|
-
const storeService = await store_1.getService({
|
|
90584
|
+
const storeService = await (0, store_1.getService)({
|
|
90486
90585
|
entityName: "telemetrySetting"
|
|
90487
90586
|
});
|
|
90488
90587
|
const setting = new store_1.TelemetrySetting({ enableTelemetry });
|
|
90489
90588
|
await storeService.write(setting);
|
|
90490
90589
|
system_1.TelemetrySystem.telemetryEnabled = enableTelemetry;
|
|
90491
|
-
const commonProperties = await toolsSuiteTelemetryDataProcessor_1.getCommonProperties();
|
|
90492
|
-
reporting_1.reportEnableTelemetryOnOff(enableTelemetry, commonProperties);
|
|
90590
|
+
const commonProperties = await (0, toolsSuiteTelemetryDataProcessor_1.getCommonProperties)();
|
|
90591
|
+
(0, reporting_1.reportEnableTelemetryOnOff)(enableTelemetry, commonProperties);
|
|
90493
90592
|
};
|
|
90494
90593
|
exports2.setEnableTelemetry = setEnableTelemetry;
|
|
90495
90594
|
var getTelemetrySetting = async () => {
|
|
90496
90595
|
let setting;
|
|
90497
90596
|
try {
|
|
90498
|
-
const storeService = await store_1.getService({
|
|
90597
|
+
const storeService = await (0, store_1.getService)({
|
|
90499
90598
|
entityName: "telemetrySetting"
|
|
90500
90599
|
});
|
|
90501
90600
|
setting = await storeService.read(new store_1.TelemetrySettingKey());
|
|
@@ -90505,7 +90604,7 @@ var require_toolsSuiteTelemetrySettings = __commonJS({
|
|
|
90505
90604
|
};
|
|
90506
90605
|
exports2.getTelemetrySetting = getTelemetrySetting;
|
|
90507
90606
|
var readEnableTelemetryFromSetting = async () => {
|
|
90508
|
-
const storeService = await store_1.getService({
|
|
90607
|
+
const storeService = await (0, store_1.getService)({
|
|
90509
90608
|
entityName: "telemetrySetting"
|
|
90510
90609
|
});
|
|
90511
90610
|
let setting;
|
|
@@ -90516,7 +90615,7 @@ var require_toolsSuiteTelemetrySettings = __commonJS({
|
|
|
90516
90615
|
if (!setting) {
|
|
90517
90616
|
const deprecatedSettingPath = definePath(settingPaths);
|
|
90518
90617
|
if (!deprecatedSettingPath) {
|
|
90519
|
-
exports2.setEnableTelemetry(true);
|
|
90618
|
+
(0, exports2.setEnableTelemetry)(true);
|
|
90520
90619
|
} else {
|
|
90521
90620
|
let content;
|
|
90522
90621
|
try {
|
|
@@ -90527,27 +90626,27 @@ var require_toolsSuiteTelemetrySettings = __commonJS({
|
|
|
90527
90626
|
return (_a2 = deprecatedSetting[propKey]) != null ? _a2 : true;
|
|
90528
90627
|
});
|
|
90529
90628
|
const deprecatedEnableTelemetrySetting = propValues.reduce((prevValue, currentValue) => prevValue && currentValue);
|
|
90530
|
-
exports2.setEnableTelemetry(deprecatedEnableTelemetrySetting);
|
|
90629
|
+
(0, exports2.setEnableTelemetry)(deprecatedEnableTelemetrySetting);
|
|
90531
90630
|
} catch {
|
|
90532
|
-
exports2.setEnableTelemetry(true);
|
|
90631
|
+
(0, exports2.setEnableTelemetry)(true);
|
|
90533
90632
|
}
|
|
90534
90633
|
}
|
|
90535
90634
|
} else {
|
|
90536
90635
|
system_1.TelemetrySystem.telemetryEnabled = setting.enableTelemetry;
|
|
90537
90636
|
}
|
|
90538
90637
|
if (system_1.TelemetrySystem.WORKSTREAM === "extension") {
|
|
90539
|
-
store_1.getFilesystemWatcherFor(store_1.Entity.TelemetrySetting, async () => {
|
|
90638
|
+
(0, store_1.getFilesystemWatcherFor)(store_1.Entity.TelemetrySetting, async () => {
|
|
90540
90639
|
const watchedSetting = await storeService.read(new store_1.TelemetrySettingKey());
|
|
90541
90640
|
system_1.TelemetrySystem.telemetryEnabled = watchedSetting.enableTelemetry;
|
|
90542
90641
|
});
|
|
90543
90642
|
}
|
|
90544
90643
|
};
|
|
90545
90644
|
var initToolsSuiteTelemetrySettings = async () => {
|
|
90546
|
-
cloudDebugger_1.debug("start initTelemetrySettings");
|
|
90645
|
+
(0, cloudDebugger_1.debug)("start initTelemetrySettings");
|
|
90547
90646
|
if (!system_1.TelemetrySystem.WORKSTREAM) {
|
|
90548
90647
|
throw new Error("Workstream is undefined");
|
|
90549
90648
|
}
|
|
90550
|
-
cloudDebugger_1.debug(`workstream: ${system_1.TelemetrySystem.WORKSTREAM}`);
|
|
90649
|
+
(0, cloudDebugger_1.debug)(`workstream: ${system_1.TelemetrySystem.WORKSTREAM}`);
|
|
90551
90650
|
system_1.TelemetrySystem.telemetryEnabled = true;
|
|
90552
90651
|
await readEnableTelemetryFromSetting();
|
|
90553
90652
|
};
|
|
@@ -90564,7 +90663,7 @@ var require_toolsSuiteTelemetrySettings = __commonJS({
|
|
|
90564
90663
|
await initToolsSuiteTelemetrySettings();
|
|
90565
90664
|
}
|
|
90566
90665
|
} catch (err) {
|
|
90567
|
-
reporting_1.reportRuntimeError(err);
|
|
90666
|
+
(0, reporting_1.reportRuntimeError)(err);
|
|
90568
90667
|
}
|
|
90569
90668
|
};
|
|
90570
90669
|
exports2.initTelemetrySettings = initTelemetrySettings3;
|
|
@@ -90578,9 +90677,13 @@ var require_toolsSuiteTelemetry = __commonJS({
|
|
|
90578
90677
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
90579
90678
|
if (k2 === void 0)
|
|
90580
90679
|
k2 = k;
|
|
90581
|
-
Object.
|
|
90582
|
-
|
|
90583
|
-
|
|
90680
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
90681
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
90682
|
+
desc = { enumerable: true, get: function() {
|
|
90683
|
+
return m[k];
|
|
90684
|
+
} };
|
|
90685
|
+
}
|
|
90686
|
+
Object.defineProperty(o, k2, desc);
|
|
90584
90687
|
} : function(o, m, k, k2) {
|
|
90585
90688
|
if (k2 === void 0)
|
|
90586
90689
|
k2 = k;
|
|
@@ -90610,9 +90713,13 @@ var require_client3 = __commonJS({
|
|
|
90610
90713
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
90611
90714
|
if (k2 === void 0)
|
|
90612
90715
|
k2 = k;
|
|
90613
|
-
Object.
|
|
90614
|
-
|
|
90615
|
-
|
|
90716
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
90717
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
90718
|
+
desc = { enumerable: true, get: function() {
|
|
90719
|
+
return m[k];
|
|
90720
|
+
} };
|
|
90721
|
+
}
|
|
90722
|
+
Object.defineProperty(o, k2, desc);
|
|
90616
90723
|
} : function(o, m, k, k2) {
|
|
90617
90724
|
if (k2 === void 0)
|
|
90618
90725
|
k2 = k;
|
|
@@ -90703,15 +90810,15 @@ var require_entries = __commonJS({
|
|
|
90703
90810
|
exports2.Measurement = exports2.Mark = void 0;
|
|
90704
90811
|
var types_1 = require_types8();
|
|
90705
90812
|
var Mark = class {
|
|
90813
|
+
getStartTime() {
|
|
90814
|
+
return this.startTime;
|
|
90815
|
+
}
|
|
90706
90816
|
constructor(name, type, startTime) {
|
|
90707
90817
|
this.startTime = startTime;
|
|
90708
90818
|
this.name = name;
|
|
90709
90819
|
this.startTime = startTime;
|
|
90710
90820
|
this.type = type;
|
|
90711
90821
|
}
|
|
90712
|
-
getStartTime() {
|
|
90713
|
-
return this.startTime;
|
|
90714
|
-
}
|
|
90715
90822
|
};
|
|
90716
90823
|
exports2.Mark = Mark;
|
|
90717
90824
|
var Measurement = class extends Mark {
|
|
@@ -90863,7 +90970,7 @@ var require_paramProcessing = __commonJS({
|
|
|
90863
90970
|
while (i < pathArr.length) {
|
|
90864
90971
|
node = node[pathArr[i]];
|
|
90865
90972
|
if (node === void 0) {
|
|
90866
|
-
throw exports2.wrongPathErr(field, paramIndex);
|
|
90973
|
+
throw (0, exports2.wrongPathErr)(field, paramIndex);
|
|
90867
90974
|
}
|
|
90868
90975
|
i++;
|
|
90869
90976
|
}
|
|
@@ -90882,7 +90989,7 @@ var require_paramProcessing = __commonJS({
|
|
|
90882
90989
|
if (typeof instructions.value === "string") {
|
|
90883
90990
|
val = instructions.value;
|
|
90884
90991
|
} else if (instructions.value !== void 0 && instructions.paramIndex !== void 0) {
|
|
90885
|
-
val = exports2.getValue(param, instructions.value.path, "val", instructions.paramIndex);
|
|
90992
|
+
val = (0, exports2.getValue)(param, instructions.value.path, "val", instructions.paramIndex);
|
|
90886
90993
|
} else {
|
|
90887
90994
|
val = param;
|
|
90888
90995
|
}
|
|
@@ -90900,7 +91007,7 @@ var require_paramProcessing = __commonJS({
|
|
|
90900
91007
|
let customMeasurements = {};
|
|
90901
91008
|
if (Array.isArray(instructions)) {
|
|
90902
91009
|
for (const instruction of instructions) {
|
|
90903
|
-
[processedDimensions, processedMeasurements] = exports2.paramsProcessing(params, instruction);
|
|
91010
|
+
[processedDimensions, processedMeasurements] = (0, exports2.paramsProcessing)(params, instruction);
|
|
90904
91011
|
customDimensions = {
|
|
90905
91012
|
...customDimensions,
|
|
90906
91013
|
...processedDimensions
|
|
@@ -90911,7 +91018,7 @@ var require_paramProcessing = __commonJS({
|
|
|
90911
91018
|
};
|
|
90912
91019
|
}
|
|
90913
91020
|
} else {
|
|
90914
|
-
[customDimensions, customMeasurements] = exports2.paramsProcessing(params, instructions);
|
|
91021
|
+
[customDimensions, customMeasurements] = (0, exports2.paramsProcessing)(params, instructions);
|
|
90915
91022
|
}
|
|
90916
91023
|
return [customDimensions, customMeasurements];
|
|
90917
91024
|
};
|
|
@@ -90975,7 +91082,7 @@ var require_interceptor = __commonJS({
|
|
|
90975
91082
|
var captureParam = (target, originalFn, evtName, sampleRate, instructions) => {
|
|
90976
91083
|
return (...args) => {
|
|
90977
91084
|
const result2 = originalFn.apply(target, args);
|
|
90978
|
-
const [customDimensions, customMeasurements] = paramProcessing_1.getParamsData(args, instructions);
|
|
91085
|
+
const [customDimensions, customMeasurements] = (0, paramProcessing_1.getParamsData)(args, instructions);
|
|
90979
91086
|
const appinsightClient = client_1.ClientFactory.getTelemetryClient();
|
|
90980
91087
|
appinsightClient.report(evtName, customDimensions, customMeasurements, sampleRate);
|
|
90981
91088
|
return result2;
|
|
@@ -90985,7 +91092,7 @@ var require_interceptor = __commonJS({
|
|
|
90985
91092
|
var captureParamAsync = (target, originalFn, evtName, sampleRate, instructions) => {
|
|
90986
91093
|
return async (...args) => {
|
|
90987
91094
|
const result2 = await originalFn.apply(target, args);
|
|
90988
|
-
const [customDimensions, customMeasurements] = paramProcessing_1.getParamsData(args, instructions);
|
|
91095
|
+
const [customDimensions, customMeasurements] = (0, paramProcessing_1.getParamsData)(args, instructions);
|
|
90989
91096
|
const appinsightClient = client_1.ClientFactory.getTelemetryClient();
|
|
90990
91097
|
appinsightClient.report(evtName, customDimensions, customMeasurements, sampleRate);
|
|
90991
91098
|
return result2;
|
|
@@ -91002,9 +91109,13 @@ var require_config4 = __commonJS({
|
|
|
91002
91109
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
91003
91110
|
if (k2 === void 0)
|
|
91004
91111
|
k2 = k;
|
|
91005
|
-
Object.
|
|
91006
|
-
|
|
91007
|
-
|
|
91112
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
91113
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
91114
|
+
desc = { enumerable: true, get: function() {
|
|
91115
|
+
return m[k];
|
|
91116
|
+
} };
|
|
91117
|
+
}
|
|
91118
|
+
Object.defineProperty(o, k2, desc);
|
|
91008
91119
|
} : function(o, m, k, k2) {
|
|
91009
91120
|
if (k2 === void 0)
|
|
91010
91121
|
k2 = k;
|
|
@@ -93684,7 +93795,7 @@ var import_ux_common_utils = __toESM(require_dist());
|
|
|
93684
93795
|
init_i18next();
|
|
93685
93796
|
var import_chalk = __toESM(require_source2());
|
|
93686
93797
|
var import_fs2 = require("@ui5/fs");
|
|
93687
|
-
var import_project_spec = __toESM(
|
|
93798
|
+
var import_project_spec = __toESM(require_dist7());
|
|
93688
93799
|
var import_ux_telemetry = __toESM(require_src9());
|
|
93689
93800
|
var import_ux_ui5_info = __toESM(require_dist8());
|
|
93690
93801
|
var import_semver = __toESM(require_semver7());
|
|
@@ -93813,6 +93924,9 @@ async function validateDistDir(archivePath) {
|
|
|
93813
93924
|
}
|
|
93814
93925
|
return (0, import_fs.existsSync)((0, import_path.join)(projectPath, distFolder));
|
|
93815
93926
|
}
|
|
93927
|
+
function isConfirmationRequired(skipConfirmation) {
|
|
93928
|
+
return skipConfirmation || process.argv && process.argv.includes("-y") ? false : true;
|
|
93929
|
+
}
|
|
93816
93930
|
|
|
93817
93931
|
// src/tasks/deploy/steps.ts
|
|
93818
93932
|
var import_ux_ui5_info2 = __toESM(require_dist8());
|
|
@@ -94185,9 +94299,6 @@ async function deployWithRetry(archive, config2, log3) {
|
|
|
94185
94299
|
|
|
94186
94300
|
// src/tasks/deploy/index.ts
|
|
94187
94301
|
var chalk = require_source2();
|
|
94188
|
-
function isConfirmationRequired(config2) {
|
|
94189
|
-
return config2.yes || process.argv && process.argv.includes("-y") ? false : true;
|
|
94190
|
-
}
|
|
94191
94302
|
async function task({ workspace, options: options2 }) {
|
|
94192
94303
|
await initI18n();
|
|
94193
94304
|
const log3 = (0, import_logger.getLogger)("builder:custom deploy-to-abap");
|
|
@@ -94197,7 +94308,7 @@ async function task({ workspace, options: options2 }) {
|
|
|
94197
94308
|
log3.error(i18next_default.t("ERROR_DEPLOYMENT_FAILED_NO_DIST"));
|
|
94198
94309
|
return;
|
|
94199
94310
|
}
|
|
94200
|
-
if (isConfirmationRequired(config2) && !await confirmDeploy(config2)) {
|
|
94311
|
+
if (isConfirmationRequired(config2.yes) && !await confirmDeploy(config2)) {
|
|
94201
94312
|
log3.info(i18next_default.t("DEPLOY_CANCELED"));
|
|
94202
94313
|
return;
|
|
94203
94314
|
}
|