woltlab-compiler
Version:
A compiler for WoltLab-Package Archives and WoltLab-Package Components
38 lines • 1.2 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const ACPOptionInstructionCompiler_1 = require("../../../Compilation/PackageSystem/Instructions/ACPOptionInstructionCompiler");
const ACPCategory_1 = require("../../../Options/ControlPanel/ACPCategory");
const OptionInstruction_1 = require("./OptionInstruction");
/**
* Represents an instruction which provides options for the control-panel.
*/
class ACPOptionInstruction extends OptionInstruction_1.OptionInstruction {
/**
* Initializes a new instance of the `ACPOptionInstruction` class.
*/
constructor(options) {
super(options, (node, opts) => {
return new ACPCategory_1.ACPCategory(node, opts);
});
}
/**
* @inheritdoc
*/
get Type() {
return "option";
}
/**
* @inheritdoc
*/
get RootCategory() {
return "wcf.acp.option";
}
/**
* @inheritdoc
*/
get Compiler() {
return new ACPOptionInstructionCompiler_1.ACPOptionInstructionCompiler(this);
}
}
exports.ACPOptionInstruction = ACPOptionInstruction;
//# sourceMappingURL=ACPOptionInstruction.js.map