export class NestedTableLeafNodeState {
    constructor(params) {
        this._parentNode = params.parentNode;
        this._parent = params.parent;
    }
    getParent() {
        return this._parentNode;
    }
    getDescendants() {
        return [];
    }
    getData() {
        const { _parent, _parentNode } = this;
        if (_parent == null || _parentNode == null) {
            return null;
        }
        return _parentNode.collection.getItem(_parent.key);
    }
    toggleExpand() { }
    get expanded() {
        return false;
    }
    get depth() {
        return this._parentNode.childrenDepth;
    }
}
//# sourceMappingURL=NestedTableLeafNodeState.js.map