"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var aleph_core_js_1 = require("../aleph.core.js");
var AlNodeList = function () { function e() { this.nodes = null, this.selected = null; } return e.prototype.render = function () { var e = this; return this.nodes && this.nodes.size ? aleph_core_js_1.h("ion-list", null, this.nodes.slice().map(function (t) { var n = t[0]; return aleph_core_js_1.h("ion-item", { class: e.selected === n ? "selected" : null, onClick: function () { return e.selectedChanged.emit(n); } }, t[1].text); })) : aleph_core_js_1.h("p", null, "No nodes exist"); }, Object.defineProperty(e, "is", { get: function () { return "al-node-list"; }, enumerable: !0, configurable: !0 }), Object.defineProperty(e, "encapsulation", { get: function () { return "shadow"; }, enumerable: !0, configurable: !0 }), Object.defineProperty(e, "properties", { get: function () { return { nodes: { type: "Any", attr: "nodes", mutable: !0 }, selected: { type: String, attr: "selected", mutable: !0 } }; }, enumerable: !0, configurable: !0 }), Object.defineProperty(e, "events", { get: function () { return [{ name: "selectedChanged", method: "selectedChanged", bubbles: !0, cancelable: !0, composed: !0 }]; }, enumerable: !0, configurable: !0 }), Object.defineProperty(e, "style", { get: function () { return "ion-item.selected.sc-al-node-list{--color:#6495ed}"; }, enumerable: !0, configurable: !0 }), e; }();
exports.AlNodeList = AlNodeList;
