2 * Manages the packages entered in a devtools project optional package form field.
4 * @author Matthias Schmidt
5 * @copyright 2001-2021 WoltLab GmbH
6 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
7 * @module WoltLabSuite/Core/Acp/Form/Builder/Field/Devtools/Project/OptionalPackages
8 * @see module:WoltLabSuite/Core/Acp/Form/Builder/Field/Devtools/Project/AbstractPackageList
11 define(["require", "exports", "tslib", "./AbstractPackageList", "../../../../../../Core", "../../../../../../Language"], function (require, exports, tslib_1, AbstractPackageList_1, Core, Language) {
13 AbstractPackageList_1 = tslib_1.__importDefault(AbstractPackageList_1);
14 Core = tslib_1.__importStar(Core);
15 Language = tslib_1.__importStar(Language);
16 class OptionalPackages extends AbstractPackageList_1.default {
17 populateListItem(listItem, packageData) {
18 super.populateListItem(listItem, packageData);
19 listItem.innerHTML = ` ${Language.get("wcf.acp.devtools.project.optionalPackage.optionalPackage", {
20 packageIdentifier: packageData.packageIdentifier,
24 Core.enableLegacyInheritance(OptionalPackages);
25 return OptionalPackages;