"use strict";
var __extends = (this && this.__extends) || function (d, b) {
    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
    function __() { this.constructor = d; }
    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var utility_1 = require('../lib/utility');
var NavigationDirectives = (function (_super) {
    __extends(NavigationDirectives, _super);
    function NavigationDirectives() {
        _super.apply(this, arguments);
    }
    NavigationDirectives.prototype.getTypes = function (buildForType) {
        var _this = this;
        return this.document.directives
            .map(function (directive) { return new utility_1.NavigationItem(directive.name, _this.url(directive), directive.name === buildForType); });
    };
    NavigationDirectives.prototype.getNavigations = function (buildForType) {
        var types = this.getTypes(buildForType);
        if (types.length === 0)
            return [];
        return [
            new utility_1.NavigationSection('Directives', types)
        ];
    };
    return NavigationDirectives;
}(utility_1.Plugin));
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = NavigationDirectives;
//# sourceMappingURL=navigation.directive.js.map