UNPKG

@sap/generator-adaptation-project

Version:

Adaptation project allows you to create an app variant for an existing SAP Fiori elements-based or SAPUI5 freestyle application, without changing the original application.

19 lines 1.53 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.shouldShowTransportManual = exports.shouldShowTransportList = exports.shouldShowTransport = void 0; const adp_common_1 = require("@sap/adp-common"); function shouldShowTransport(answers) { var _a, _b; return ((((_a = answers === null || answers === void 0 ? void 0 : answers.packageAutoComplete) === null || _a === void 0 ? void 0 : _a.toUpperCase()) !== "$TMP" && (answers === null || answers === void 0 ? void 0 : answers.packageInputChoice) === adp_common_1.InputChoice.CHOOSE_FROM_EXISTING) || (((_b = answers === null || answers === void 0 ? void 0 : answers.packageManual) === null || _b === void 0 ? void 0 : _b.toUpperCase()) !== "$TMP" && (answers === null || answers === void 0 ? void 0 : answers.packageInputChoice) === adp_common_1.InputChoice.ENTER_MANUALLY)); } exports.shouldShowTransport = shouldShowTransport; function shouldShowTransportList(answers) { return shouldShowTransport(answers) && (answers === null || answers === void 0 ? void 0 : answers.transportInputChoice) === adp_common_1.InputChoice.CHOOSE_FROM_EXISTING; } exports.shouldShowTransportList = shouldShowTransportList; function shouldShowTransportManual(answers) { return shouldShowTransport(answers) && (answers === null || answers === void 0 ? void 0 : answers.transportInputChoice) === adp_common_1.InputChoice.ENTER_MANUALLY; } exports.shouldShowTransportManual = shouldShowTransportManual; //# sourceMappingURL=conditions.js.map