{"version":3,"file":"igniteui-angular-grids-hierarchical-grid.mjs","names":[],"sources":["../../../projects/igniteui-angular/grids/hierarchical-grid/src/hierarchical-grid-api.service.ts","../../../projects/igniteui-angular/grids/hierarchical-grid/src/hierarchical-grid-navigation.service.ts","../../../projects/igniteui-angular/grids/hierarchical-grid/src/hierarchical-grid-base.directive.ts","../../../projects/igniteui-angular/grids/hierarchical-grid/src/row-island-api.service.ts","../../../projects/igniteui-angular/grids/hierarchical-grid/src/row-island.component.ts","../../../projects/igniteui-angular/grids/hierarchical-grid/src/hierarchical-grid.pipes.ts","../../../projects/igniteui-angular/grids/hierarchical-grid/src/hierarchical-cell.component.ts","../../../projects/igniteui-angular/grids/core/src/cell.component.html","../../../projects/igniteui-angular/grids/hierarchical-grid/src/hierarchical-row.component.ts","../../../projects/igniteui-angular/grids/hierarchical-grid/src/hierarchical-row.component.html","../../../projects/igniteui-angular/grids/hierarchical-grid/src/lifecycle-placeholder-element.ts","../../../projects/igniteui-angular/grids/hierarchical-grid/src/hierarchical-grid.component.ts","../../../projects/igniteui-angular/grids/hierarchical-grid/src/child-grid-row.component.html","../../../projects/igniteui-angular/grids/hierarchical-grid/src/hierarchical-grid.component.html","../../../projects/igniteui-angular/grids/hierarchical-grid/src/hierarchical-grid.module.ts"],"sourcesContent":["import { IgxRowIslandComponent } from './row-island.component';\nimport { Subject } from 'rxjs';\nimport { Injectable } from '@angular/core';\nimport { GridBaseAPIService, GridType } from 'igniteui-angular/grids/core';\nimport { IPathSegment } from 'igniteui-angular/core';\n\n@Injectable()\nexport class IgxHierarchicalGridAPIService extends GridBaseAPIService<GridType> {\n    protected childRowIslands: Map<string, IgxRowIslandComponent> = new Map<string, IgxRowIslandComponent>();\n    protected childGrids: Map<string, Map<any, GridType>> =\n        new Map<string, Map<any, GridType>>();\n\n    public registerChildRowIsland(rowIsland: IgxRowIslandComponent) {\n        this.childRowIslands.set(rowIsland.key, rowIsland);\n        this.destroyMap.set(rowIsland.key, new Subject<boolean>());\n    }\n\n    public unsetChildRowIsland(rowIsland: IgxRowIslandComponent) {\n        this.childGrids.delete(rowIsland.key);\n        this.childRowIslands.delete(rowIsland.key);\n        this.destroyMap.delete(rowIsland.key);\n    }\n\n    public getChildRowIsland(key: string) {\n        return this.childRowIslands.get(key);\n    }\n\n    public getChildGrid(path: Array<IPathSegment>): GridType | undefined {\n        const currPath = path;\n        let grid;\n        const pathElem = currPath.shift();\n        const childrenForLayout = this.childGrids.get(pathElem!.rowIslandKey);\n        if (childrenForLayout) {\n            const childGrid = childrenForLayout.get(pathElem!.rowKey);\n            if (currPath.length === 0) {\n                grid = childGrid;\n            } else {\n                grid = childGrid!.gridAPI.getChildGrid!(currPath);\n            }\n        }\n        return grid;\n    }\n\n    public getChildGrids(inDepth?: boolean) {\n        let allChildren: GridType [] = [];\n        this.childGrids.forEach((layoutMap) => {\n            layoutMap.forEach((grid) => {\n                allChildren.push(grid);\n                if (inDepth) {\n                    const children = grid.gridAPI.getChildGrids!(inDepth);\n                    allChildren = allChildren.concat(children);\n                }\n            });\n        });\n\n        return allChildren;\n    }\n\n    public getParentRowId(childGrid: GridType) {\n        let rowID;\n        this.childGrids.forEach((layoutMap) => {\n            layoutMap.forEach((grid, key) => {\n                if (grid === childGrid) {\n                    rowID = key;\n                    return;\n                }\n            });\n        });\n        return rowID;\n    }\n\n    public registerChildGrid(parentRowID: any, rowIslandKey: string, grid: GridType) {\n        let childrenForLayout = this.childGrids.get(rowIslandKey);\n        if (!childrenForLayout) {\n            this.childGrids.set(rowIslandKey, new Map<any, GridType>());\n            childrenForLayout = this.childGrids.get(rowIslandKey);\n        }\n        childrenForLayout!.set(parentRowID, grid);\n    }\n\n    public getChildGridsForRowIsland(rowIslandKey: string): GridType[] {\n        const childrenForLayout = this.childGrids.get(rowIslandKey);\n        const children: GridType[] = [];\n        if (childrenForLayout) {\n            childrenForLayout.forEach((child) => {\n                children.push(child);\n            });\n        }\n        return children;\n    }\n\n    public getChildGridByID(rowIslandKey: string, rowID: any) {\n        const childrenForLayout = this.childGrids.get(rowIslandKey);\n        return childrenForLayout!.get(rowID);\n    }\n\n    public override get_row_expansion_state(record: any): boolean {\n        let inState;\n        if (record.childGridsData !== undefined) {\n            const ri = record.key;\n            const states = this.grid.expansionStates;\n            const expanded = states.get(ri);\n            if (expanded !== undefined) {\n                return expanded;\n            } else {\n                return this.grid.getDefaultExpandState(record);\n            }\n        } else {\n            inState = !!super.get_row_expansion_state(record);\n        }\n        return inState && this.grid.childLayoutList?.length !== 0;\n    }\n\n    public override allow_expansion_state_change(rowID: any, expanded: boolean): boolean {\n        const rec = this.get_rec_by_id(rowID);\n        const grid = (this.grid as any);\n        if (grid.hasChildrenKey && !rec[grid.hasChildrenKey]) {\n            return false;\n        }\n        return !!rec && this.grid.expansionStates.get(rowID) !== expanded;\n    }\n\n    public override get_rec_by_id(rowID: any): any {\n        const data = this.get_all_data(false);\n        const index = this.get_row_index_in_data(rowID, data);\n        return data[index];\n    }\n}\n","import { Injectable } from '@angular/core';\nimport { first, map } from 'rxjs/operators';\nimport { GridType, RowType, SUPPORTED_KEYS } from 'igniteui-angular/grids/core';\nimport { IActiveNode, IgxGridNavigationService } from 'igniteui-angular/grids/core';\nimport { IPathSegment, NAVIGATION_KEYS } from 'igniteui-angular/core';\n\n@Injectable()\nexport class IgxHierarchicalGridNavigationService extends IgxGridNavigationService {\n    protected _pendingNavigation = false;\n\n\n    public override dispatchEvent(event: KeyboardEvent) {\n        const key = event.key.toLowerCase();\n        const cellOrRowInEdit = this.grid.crudService.cell || this.grid.crudService.row;\n        if (!this.activeNode || !(SUPPORTED_KEYS.has(key) || (key === 'tab' && cellOrRowInEdit))) {\n            return;\n        }\n\n        const targetGrid = this.getClosestElemByTag(event.target as HTMLElement, 'igx-hierarchical-grid')\n            || this.getClosestElemByTag(event.target as HTMLElement, 'igc-hierarchical-grid');\n        if (targetGrid !== this.grid.nativeElement) {\n            return;\n        }\n\n        if (this._pendingNavigation && NAVIGATION_KEYS.has(key)) {\n            // In case focus needs to be moved from one grid to another, however there is a pending scroll operation\n            // which is an async operation, any additional navigation keys should be ignored\n            // untill operation complete.\n            event.preventDefault();\n            return;\n        }\n        super.dispatchEvent(event);\n    }\n\n    public override navigateInBody(rowIndex: number, visibleColIndex: number, cb: (arg: any) => void = null!): void {\n        const rec = this.grid.dataView[rowIndex];\n        if (rec && this.grid.isChildGridRecord!(rec)) {\n             // target is child grid\n            const virtState = this.grid.verticalScrollContainer.state;\n             const inView = rowIndex >= virtState.startIndex && rowIndex <= virtState.startIndex + virtState.chunkSize;\n             const isNext =  this.activeNode.row < rowIndex;\n             const targetLayoutIndex = isNext ? null : this.grid.childLayoutKeys!.length - 1;\n             if (inView) {\n                this._moveToChild(rowIndex, visibleColIndex, isNext, targetLayoutIndex!, cb);\n            } else {\n                let scrollAmount = this.grid.verticalScrollContainer.getScrollForIndex(rowIndex, !isNext);\n                scrollAmount += isNext ? 1 : -1;\n                this.grid.verticalScrollContainer.getScroll().scrollTop = scrollAmount;\n                this._pendingNavigation = true;\n                this.grid.verticalScrollContainer.chunkLoad.pipe(first()).subscribe(() => {\n                    this._moveToChild(rowIndex, visibleColIndex, isNext, targetLayoutIndex!, cb);\n                    this._pendingNavigation = false;\n                });\n            }\n            return;\n        }\n\n        const isLast = rowIndex === this.grid.dataView.length;\n        if ((rowIndex === -1 || isLast) &&\n            this.grid.parent !== null) {\n            // reached end of child grid\n            const nextSiblingIndex = this.nextSiblingIndex(isLast);\n            if (nextSiblingIndex !== null) {\n                this.grid.parent!.navigation._moveToChild(this.grid.childRow.index, visibleColIndex, isLast, nextSiblingIndex, cb);\n            } else {\n                this._moveToParent(isLast, visibleColIndex, cb);\n            }\n            return;\n        }\n\n        if (this.grid.parent) {\n            const isNext = this.activeNode && typeof this.activeNode.row === 'number' ? rowIndex > this.activeNode.row : false;\n            const cbHandler = (args: any) => {\n                this._handleScrollInChild(rowIndex, isNext);\n                cb(args);\n            };\n            if (!this.activeNode) {\n                this.activeNode = { row: null!, column: null! };\n            }\n            super.navigateInBody(rowIndex, visibleColIndex, cbHandler);\n            return;\n        }\n\n        if (!this.activeNode) {\n            this.activeNode = { row: null!, column: null! };\n        }\n        super.navigateInBody(rowIndex, visibleColIndex, cb);\n    }\n\n    public override shouldPerformVerticalScroll(index: number, visibleColumnIndex = -1, isNext?: boolean): boolean {\n        const targetRec = this.grid.dataView[index];\n        if (this.grid.isChildGridRecord!(targetRec)) {\n            const scrollAmount = this.grid.verticalScrollContainer.getScrollForIndex(index, !isNext);\n            const currScroll = this.grid.verticalScrollContainer.getScroll().scrollTop;\n            const shouldScroll = !isNext ? scrollAmount > currScroll : currScroll < scrollAmount;\n            return shouldScroll;\n        } else {\n            return super.shouldPerformVerticalScroll(index, visibleColumnIndex);\n        }\n    }\n\n    public override focusTbody(event: FocusEvent) {\n        if (!this.activeNode || this.activeNode.row === null) {\n            this.activeNode = {\n                row: 0,\n                column: 0\n            };\n\n            this.grid.navigateTo(0, 0, (obj) => {\n                this.grid.clearCellSelection();\n                obj.target.activate(event);\n            });\n\n        } else {\n            super.focusTbody(event);\n        }\n    }\n\n    protected nextSiblingIndex(isNext: boolean): number | null {\n        const layoutKey = this.grid.childRow.layout.key;\n        const layoutIndex = this.grid.parent!.childLayoutKeys!.indexOf(layoutKey);\n        const nextIndex = isNext ? layoutIndex + 1 : layoutIndex - 1;\n        if (nextIndex <= this.grid.parent!.childLayoutKeys!.length - 1 && nextIndex > -1) {\n            return nextIndex;\n        } else {\n            return null;\n        }\n    }\n\n    /**\n     * Handles scrolling in child grid and ensures target child row is in main grid view port.\n     *\n     * @param rowIndex The row index which should be in view.\n     * @param isNext  Optional. Whether we are navigating to next. Used to determine scroll direction.\n     * @param cb  Optional.Callback function called when operation is complete.\n     */\n    protected _handleScrollInChild(rowIndex: number, isNext: boolean, cb?: () => void) {\n        const shouldScroll = this.shouldPerformVerticalScroll(rowIndex, -1, isNext);\n        if (shouldScroll) {\n            this.grid.navigation.performVerticalScrollToCell(rowIndex, -1, () => {\n                this.positionInParent(rowIndex, isNext, cb);\n            });\n        } else {\n            this.positionInParent(rowIndex, isNext, cb);\n        }\n    }\n\n    /**\n     *\n     * @param rowIndex Row index that should come in view.\n     * @param isNext  Whether we are navigating to next. Used to determine scroll direction.\n     * @param cb  Optional.Callback function called when operation is complete.\n     */\n    protected positionInParent(rowIndex: number, isNext: boolean, cb?: () => void) {\n        const row = this.grid.gridAPI.get_row_by_index(rowIndex);\n        if (!row) {\n            if (cb) {\n                cb();\n            }\n            return;\n        }\n        const positionInfo = this.getPositionInfo(row, isNext);\n        if (!positionInfo.inView) {\n            // stop event from triggering multiple times before scrolling is complete.\n            this._pendingNavigation = true;\n            const scrollableGrid = isNext ? this.getNextScrollableDown(this.grid) : this.getNextScrollableUp(this.grid);\n            scrollableGrid.grid.verticalScrollContainer.recalcUpdateSizes();\n            scrollableGrid.grid.verticalScrollContainer.addScrollTop(positionInfo.offset);\n            scrollableGrid.grid.verticalScrollContainer.chunkLoad.pipe(first()).subscribe(() => {\n                this._pendingNavigation = false;\n                if (cb) {\n                    cb();\n                }\n            });\n        } else {\n            if (cb) {\n                cb();\n            }\n        }\n    }\n\n    /**\n     * Navigates to the specific child grid based on the array of paths leading to it\n     *\n     * @param pathToChildGrid Array of IPathSegments that describe the path to the child grid\n     * each segment is described by the rowKey of the parent row and the rowIslandKey.\n     */\n    public navigateToChildGrid(pathToChildGrid: IPathSegment[], cb?: () => void) {\n        if (pathToChildGrid.length == 0) {\n            if (cb) {\n                cb();\n            }\n            return;\n        }\n        const pathElem = pathToChildGrid.shift();\n        const rowKey = pathElem!.rowKey;\n        const rowIndex = this.grid.gridAPI.get_row_index_in_data(rowKey);\n        if (rowIndex === -1) {\n            if (cb) {\n                cb();\n            }\n            return;\n        }\n        // scroll to row, since it can be out of view\n        this.performVerticalScrollToCell(rowIndex, -1, () => {\n            this.grid.cdr.detectChanges();\n            // next, expand row, if it is collapsed\n            const row = this.grid.getRowByIndex!(rowIndex);\n            if (!row.expanded) {\n                row.expanded = true;\n                // update sizes after expand\n                this.grid.verticalScrollContainer.recalcUpdateSizes();\n                this.grid.cdr.detectChanges();\n            }\n\n            const childGrid = this.grid.gridAPI.getChildGrid!([pathElem!]);\n            if (childGrid) {\n                this.descend(childGrid, pathToChildGrid, cb);\n                return;\n            }\n\n            const canRender = row.expanded && this.grid.childLayoutKeys!.includes(pathElem!.rowIslandKey);\n            if (!canRender) {\n                if (cb) {\n                    cb();\n                }\n                return;\n            }\n\n            // The child grid renders only once its row enters the virtual chunk. A chunk\n            // load unrelated to the scroll above can run this callback before that.\n            const scroll = this.grid.verticalScrollContainer;\n            scroll.chunkLoad.pipe(\n                map(() => this.grid.gridAPI.getChildGrid!([pathElem!])),\n                first((grid: GridType) => !!grid)\n            ).subscribe((grid: GridType) => this.descend(grid, pathToChildGrid, cb));\n            scroll.scrollTo(rowIndex + 1);\n        });\n    }\n\n    /** Brings `childGrid` to the top of the view, then continues the navigation inside it. */\n    private descend(childGrid: GridType, path: IPathSegment[], cb?: () => void) {\n        const positionInfo = this.getElementPosition(childGrid.nativeElement, false);\n        this.grid.verticalScrollContainer.addScrollTop(positionInfo.offset);\n        this.grid.verticalScrollContainer.chunkLoad.pipe(first()).subscribe(() => {\n            childGrid.navigation.navigateToChildGrid(path, cb);\n        });\n    }\n\n    /**\n     * Moves navigation to child grid.\n     *\n     * @param parentRowIndex The parent row index, at which the child grid is rendered.\n     * @param childLayoutIndex Optional. The index of the child row island to which the child grid belongs to. Uses first if not set.\n     */\n    protected _moveToChild(parentRowIndex: number, visibleColIndex: number, isNext: boolean, childLayoutIndex?: number,\n                            cb?: (arg: any) => void) {\n        const ri = typeof childLayoutIndex !== 'number' ?\n         this.grid.childLayoutList!.first : this.grid.childLayoutList!.toArray()[childLayoutIndex];\n        const rowId = this.grid.dataView[parentRowIndex].rowID;\n        const pathSegment: IPathSegment = {\n            rowID: rowId,\n            rowKey: rowId,\n            rowIslandKey: ri.key\n        };\n        const childGrid =  this.grid.gridAPI.getChildGrid!([pathSegment]);\n        const targetIndex = isNext ? 0 : childGrid!.dataView.length - 1;\n        const targetRec =  childGrid!.dataView[targetIndex];\n        if (!targetRec) {\n            // if no target rec, then move on in next sibling or parent\n            childGrid!.navigation.navigateInBody(targetIndex, visibleColIndex, cb);\n            return;\n        }\n        if (childGrid!.isChildGridRecord!(targetRec)) {\n            // if target is a child grid record should move into it.\n            this.grid.navigation.activeNode.row = null;\n            childGrid!.navigation.activeNode = { row: targetIndex, column: this.activeNode.column};\n            childGrid!.navigation._handleScrollInChild(targetIndex, isNext, () => {\n                const targetLayoutIndex = isNext ? 0 : childGrid!.childLayoutList!.toArray().length - 1;\n                childGrid!.navigation._moveToChild(targetIndex, visibleColIndex, isNext, targetLayoutIndex, cb);\n            });\n            return;\n        }\n\n        const childGridNav =  childGrid!.navigation;\n        this.clearActivation();\n        const lastVisibleIndex = childGridNav.lastColumnIndex;\n        const columnIndex = visibleColIndex <= lastVisibleIndex ? visibleColIndex : lastVisibleIndex;\n        childGridNav.activeNode = { row: targetIndex, column: columnIndex};\n        childGrid!.tbody.nativeElement.focus({preventScroll: true});\n        this._pendingNavigation = false;\n        childGrid!.navigation._handleScrollInChild(targetIndex, isNext, () => {\n            childGrid!.navigateTo(targetIndex, columnIndex, cb);\n        });\n    }\n\n    /**\n     * Moves navigation back to parent grid.\n     *\n     * @param rowIndex\n     */\n    protected _moveToParent(isNext: boolean, columnIndex: number, cb?: any) {\n        const indexInParent = this.grid.childRow.index;\n        const hasNextTarget = this.hasNextTarget(this.grid.parent!, indexInParent, isNext);\n        if (!hasNextTarget) {\n            return;\n        }\n        this.clearActivation();\n        const targetRowIndex =  isNext ? indexInParent + 1 : indexInParent - 1;\n        const lastVisibleIndex = this.grid.parent!.navigation.lastColumnIndex;\n        const nextColumnIndex = columnIndex <= lastVisibleIndex ? columnIndex : lastVisibleIndex;\n        this._pendingNavigation = true;\n        const cbFunc = (args: any) => {\n            this._pendingNavigation = false;\n            cb(args);\n            args.target.grid.tbody.nativeElement.focus();\n        };\n        this.grid.parent!.navigation.navigateInBody(targetRowIndex, nextColumnIndex, cbFunc);\n    }\n\n    /**\n     * Gets information on the row position relative to the root grid view port.\n     * Returns whether the row is in view and its offset.\n     *\n     * @param rowObj\n     * @param isNext\n     */\n    protected getPositionInfo(row: RowType, isNext: boolean) {\n        // XXX: Fix type\n        let rowElem = row.nativeElement;\n        if ((row as any).layout) {\n            const childLayoutKeys = this.grid.childLayoutKeys;\n            const riKey = isNext ? childLayoutKeys![0] : childLayoutKeys![childLayoutKeys!.length - 1];\n            const pathSegment: IPathSegment = {\n                rowID: row.data.rowID, rowKey: row.data.rowID,\n                rowIslandKey: riKey\n            };\n            const childGrid =  this.grid.gridAPI.getChildGrid!([pathSegment]);\n            rowElem = childGrid!.tfoot.nativeElement;\n        }\n\n        return this.getElementPosition(rowElem!, isNext);\n    }\n\n    protected getElementPosition(element: HTMLElement, isNext: boolean) {\n        // Special handling for scenarios where there is css transformations applied that affects scale.\n        // getBoundingClientRect().height returns size after transformations\n        // element.offsetHeight returns size without any transformations\n        // get the ratio to figure out if anything has applied transformations\n        const scaling = element.getBoundingClientRect().height / element.offsetHeight;\n\n        const gridBottom = this._getMinBottom(this.grid);\n        const diffBottom =\n        element.getBoundingClientRect().bottom - gridBottom;\n        const gridTop = this._getMaxTop(this.grid);\n        const diffTop = element.getBoundingClientRect().bottom -\n        element.getBoundingClientRect().height - gridTop;\n        // Adding Math.Round because Chrome has some inconsistencies when the page is zoomed\n        const isInView = isNext ? Math.round(diffBottom) <= 0 : Math.round(diffTop) >= 0;\n        const calcOffset =  isNext ? diffBottom : diffTop;\n\n        return { inView: isInView, offset: calcOffset / scaling};\n    }\n\n    /**\n     * Gets closest element by its tag name.\n     *\n     * @param sourceElem The element from which to start the search.\n     * @param targetTag The target element tag name, for which to search.\n     */\n    protected getClosestElemByTag(sourceElem: HTMLElement, targetTag: string) {\n        let result: HTMLElement | null = sourceElem;\n        while (result !== null && result.nodeType === 1) {\n            if (result.tagName.toLowerCase() === targetTag.toLowerCase()) {\n                return result;\n            }\n            result = result.parentElement;\n        }\n        return null;\n    }\n\n    private clearActivation() {\n        // clear if previous activation exists.\n        if (this.activeNode && Object.keys(this.activeNode).length) {\n            this.activeNode = Object.assign({} as IActiveNode);\n        }\n\n        this.grid.activeNodeChange.emit();\n    }\n\n    private hasNextTarget(grid: GridType, index: number, isNext: boolean): boolean {\n        const targetRowIndex =  isNext ? index + 1 : index - 1;\n        const hasTargetRecord = !!grid.dataView[targetRowIndex];\n        if (hasTargetRecord) {\n            return true;\n        } else {\n            let hasTargetRecordInParent = false;\n            if (grid.parent) {\n                const indexInParent = grid.childRow.index;\n                hasTargetRecordInParent = this.hasNextTarget(grid.parent, indexInParent, isNext);\n            }\n            return hasTargetRecordInParent;\n        }\n    }\n\n    /**\n     * Gets the max top view in the current grid hierarchy.\n     *\n     * @param grid\n     */\n    private _getMaxTop(grid: GridType) {\n        let currGrid = grid;\n        let top = currGrid.tbody.nativeElement.getBoundingClientRect().top;\n        while (currGrid.parent) {\n            currGrid = currGrid.parent;\n            const pinnedRowsHeight = currGrid.hasPinnedRecords && currGrid.isRowPinningToTop ? currGrid.pinnedRowHeight : 0;\n            top = Math.max(top, currGrid.tbody.nativeElement.getBoundingClientRect().top + pinnedRowsHeight);\n        }\n        return top;\n    }\n\n    /**\n     * Gets the min bottom view in the current grid hierarchy.\n     *\n     * @param grid\n     */\n    private _getMinBottom(grid: GridType) {\n        let currGrid = grid;\n        let bottom = currGrid.tbody.nativeElement.getBoundingClientRect().bottom;\n        while (currGrid.parent) {\n            currGrid = currGrid.parent;\n            const pinnedRowsHeight = currGrid.hasPinnedRecords && !currGrid.isRowPinningToTop ? currGrid.pinnedRowHeight : 0;\n            bottom = Math.min(bottom, currGrid.tbody.nativeElement.getBoundingClientRect().bottom - pinnedRowsHeight);\n        }\n        return bottom;\n    }\n\n    /**\n     * Finds the next grid that allows scrolling down.\n     *\n     * @param grid The grid from which to begin the search.\n     */\n    private getNextScrollableDown(grid: GridType) {\n        let currGrid = grid.parent;\n        if (!currGrid) {\n            return { grid, prev: null };\n        }\n        let scrollTop = currGrid.verticalScrollContainer.scrollPosition;\n        let scrollHeight = currGrid.verticalScrollContainer.getScroll().scrollHeight;\n        let nonScrollable = scrollHeight === 0 ||\n            Math.round(scrollTop + currGrid.verticalScrollContainer.igxForContainerSize) === scrollHeight;\n        let prev = grid;\n        while (nonScrollable && currGrid?.parent) {\n            prev = currGrid;\n            currGrid = currGrid.parent;\n            scrollTop = currGrid.verticalScrollContainer.scrollPosition;\n            scrollHeight = currGrid.verticalScrollContainer.getScroll().scrollHeight;\n            nonScrollable = scrollHeight === 0 ||\n                Math.round(scrollTop + currGrid.verticalScrollContainer.igxForContainerSize) === scrollHeight;\n        }\n        return { grid: currGrid, prev };\n    }\n\n    /**\n     * Finds the next grid that allows scrolling up.\n     *\n     * @param grid The grid from which to begin the search.\n     */\n    private getNextScrollableUp(grid: GridType) {\n        let currGrid = grid.parent;\n        if (!currGrid) {\n            return { grid, prev: null };\n        }\n        let nonScrollable = currGrid.verticalScrollContainer.scrollPosition === 0;\n        let prev = grid;\n        while (nonScrollable && currGrid?.parent) {\n            prev = currGrid;\n            currGrid = currGrid.parent;\n            nonScrollable = currGrid.verticalScrollContainer.scrollPosition === 0;\n        }\n        return { grid: currGrid, prev };\n    }\n}\n","import {\n    booleanAttribute,\n    ComponentRef,\n    createComponent,\n    DestroyRef,\n    Directive,\n    EventEmitter,\n    Input,\n    Output,\n    reflectComponentType,\n    inject\n} from '@angular/core';\nimport { IgxHierarchicalGridAPIService } from './hierarchical-grid-api.service';\nimport { IgxRowIslandComponent } from './row-island.component';\nimport { IgxHierarchicalGridNavigationService } from './hierarchical-grid-navigation.service';\nimport { GridType, IGX_GRID_SERVICE_BASE } from 'igniteui-angular/grids/core';\nimport { IgxColumnGroupComponent } from 'igniteui-angular/grids/core';\nimport { IgxColumnComponent } from 'igniteui-angular/grids/core';\nimport { takeUntil } from 'rxjs/operators';\nimport { IgxTransactionService, IgxSummaryOperand, IgxGridTransaction, ColumnType } from 'igniteui-angular/core';\nimport { IForOfState } from 'igniteui-angular/directives';\nimport { IgxGridBaseDirective } from 'igniteui-angular/grids/grid';\n\nexport const hierarchicalTransactionServiceFactory = () => new IgxTransactionService();\n\nexport const IgxHierarchicalTransactionServiceFactory = {\n    provide: IgxGridTransaction,\n    useFactory: hierarchicalTransactionServiceFactory\n};\n\n/* blazorIndirectRender\n   blazorComponent\n   omitModule\n   wcSkipComponentSuffix */\n@Directive()\nexport abstract class IgxHierarchicalGridBaseDirective extends IgxGridBaseDirective implements GridType {\n    /* blazorSuppress */\n    public override gridAPI = inject<IgxHierarchicalGridAPIService>(IGX_GRID_SERVICE_BASE);\n    /* blazorSuppress */\n    public override navigation = inject(IgxHierarchicalGridNavigationService);\n    /**\n     * Gets/Sets the key indicating whether a row has children. If row has no children it does not render an expand indicator.\n     *\n     * @example\n     * ```html\n     * <igx-hierarchical-grid #grid [data]=\"localData\" [hasChildrenKey]=\"'hasEmployees'\">\n     * </igx-hierarchical-grid>\n     * ```\n     */\n    @Input()\n    public hasChildrenKey!: string;\n\n    /**\n     * Gets/Sets whether the expand/collapse all button in the header should be rendered.\n     *\n     * @remarks\n     * The default value is false.\n     * @example\n     * ```html\n     * <igx-hierarchical-grid #grid [data]=\"localData\" [showExpandAll]=\"true\">\n     * </igx-hierarchical-grid>\n     * ```\n     */\n    @Input({ transform: booleanAttribute })\n    public showExpandAll = false;\n\n    /**\n     * Emitted when a new chunk of data is loaded from virtualization.\n     *\n     * @example\n     * ```typescript\n     *  <igx-hierarchical-grid [id]=\"'igx-grid-1'\" [data]=\"Data\" [autoGenerate]=\"true\" (dataPreLoad)=\"handleEvent()\">\n     *  </igx-hierarchical-grid>\n     * ```\n     */\n    @Output()\n    public dataPreLoad = new EventEmitter<IForOfState>();\n\n    /** @hidden @internal */\n    public override get type(): GridType[\"type\"] {\n        return 'hierarchical';\n    }\n\n    /* blazorSuppress */\n    /**\n     * Gets the outlet used to attach the grid's overlays to.\n     *\n     * @remarks\n     * If set, returns the outlet defined outside the grid. Otherwise returns the grid's internal outlet directive.\n     *\n     * @deprecated in version 21.2.0. Overlays now use the HTML Popover API and no longer move to the document\n     * body by default, so using outlet is also no longer needed.\n     */\n    public override get outlet() {\n        return this.rootGrid ? this.rootGrid.resolveOutlet!() : this.resolveOutlet();\n    }\n\n    /* blazorSuppress */\n    /**\n     * Sets the outlet used to attach the grid's overlays to.\n     *\n     * @deprecated in version 21.2.0. Overlays now use the HTML Popover API and no longer move to the document\n     * body by default, so using outlet is also no longer needed.\n     */\n    public override set outlet(val: any) {\n        this._userOutletDirective = val;\n    }\n\n    /** @hidden @internal */\n    public batchEditingChange: EventEmitter<boolean> = new EventEmitter<boolean>();\n\n    public override get batchEditing(): boolean {\n        return this._batchEditing;\n    }\n\n    public override set batchEditing(val: boolean) {\n        if (val !== this._batchEditing) {\n            this._transactions = null!;\n            this.switchTransactionService(val);\n            this.subscribeToTransactions();\n            this.batchEditingChange.emit(val);\n            this._batchEditing = val;\n        }\n    }\n\n    /**\n     * @hidden\n     */\n    public parentIsland!: IgxRowIslandComponent;\n    /* blazorCSSuppress */\n    public abstract rootGrid: GridType;\n\n    /* blazorSuppress */\n    public abstract expandChildren: boolean;\n\n    private readonly destroyRef = inject(DestroyRef);\n    // Columns created by createColumnsList. Standalone refs: Angular never destroys them on its own.\n    private columnRefs: ComponentRef<IgxColumnComponent>[] = [];\n\n    constructor() {\n        super();\n        // Release the created columns with the grid.\n        this.destroyRef.onDestroy(() => this.columnRefs.forEach(ref => ref.destroy()));\n    }\n\n    /**\n     * @hidden\n     */\n    public createColumnsList(cols: ColumnType[]): void {\n        const columns: IgxColumnComponent[] = [];\n        // The new columns replace the previous ones; destroy those once the grid drops them.\n        const replacedRefs = this.columnRefs;\n        this.columnRefs = [];\n        const topLevelCols = cols.filter(c => c.level === 0);\n        topLevelCols.forEach((col) => {\n            col.grid = this;\n            const ref = this._createColumn(col);\n            ref.changeDetectorRef.detectChanges();\n            columns.push(ref.instance);\n        });\n        const result = flatten(columns);\n        this.updateColumns(result);\n        replacedRefs.forEach(ref => ref.destroy());\n        this.initPinning();\n\n        result.forEach(col => {\n            this.columnInit.emit(col);\n        });\n\n        const mirror = reflectComponentType(IgxColumnComponent);\n        const outputs = mirror!.outputs.filter(o => o.propName !== 'columnChange');\n        outputs.forEach(output => {\n            this.columns.forEach(column => {\n                if ((column as any)[output.propName]) {\n                    (column as any)[output.propName].pipe(takeUntil(column.destroy$)).subscribe((args: any) => {\n                        const rowIslandColumn = this.parentIsland.columnList.find((col) => col.field\n                            ? col.field === column.field\n                            : col.header === column.header);\n                        (rowIslandColumn! as any)[output.propName].emit({ args, owner: this });\n                    });\n                }\n            });\n        });\n    }\n\n    protected _createColumn(col: ColumnType) {\n        let ref;\n        if (col instanceof IgxColumnGroupComponent) {\n            ref = this._createColGroupComponent(col);\n        } else {\n            ref = this._createColComponent(col);\n        }\n        this.columnRefs.push(ref);\n        return ref;\n    }\n\n    protected _createColGroupComponent(col: IgxColumnGroupComponent) {\n        const ref = createComponent(IgxColumnGroupComponent, { environmentInjector: this.envInjector, elementInjector: this.injector });\n        ref.changeDetectorRef.detectChanges();\n        const mirror = reflectComponentType(IgxColumnGroupComponent);\n        mirror!.inputs.forEach((input) => {\n            const propName = input.propName;\n            (ref.instance as any)[propName] = (col as any)[propName];\n        });\n        if (col.children.length > 0) {\n            const newChildren: IgxColumnComponent[] = [];\n            col.children.forEach(child => {\n                const newCol = this._createColumn(child).instance;\n                newCol.parent = ref.instance;\n                newChildren.push(newCol);\n            });\n            ref.instance.children.reset(newChildren);\n            ref.instance.children.notifyOnChanges();\n        }\n        return ref;\n    }\n\n    protected _createColComponent(col: ColumnType) {\n        const ref = createComponent(IgxColumnComponent, { environmentInjector: this.envInjector, elementInjector: this.injector });\n        const mirror = reflectComponentType(IgxColumnComponent);\n        mirror!.inputs.forEach((input) => {\n            const propName = input.propName;\n            if (!((col as any)[propName] instanceof IgxSummaryOperand)) {\n                (ref.instance as any)[propName] = (col as any)[propName];\n            } else {\n                (ref.instance as any)[propName] = (col as any)[propName].constructor;\n            }\n        });\n        ref.instance.validators = col.validators;\n        return ref;\n    }\n}\n\nconst flatten = (arr: any[]) => {\n    let result: any[] = [];\n\n    arr.forEach(el => {\n        result.push(el);\n        if (el.children) {\n            result = result.concat(flatten(el.children.toArray()));\n        }\n    });\n    return result;\n};\n","import { IgxHierarchicalGridComponent } from './hierarchical-grid.component';\nimport { IgxRowIslandComponent } from './row-island.component';\nimport { Subject } from 'rxjs';\nimport { Injectable } from '@angular/core';\n\n@Injectable()\nexport class IgxRowIslandAPIService {\n    public rowIsland!: IgxRowIslandComponent;\n    protected state: Map<string, IgxRowIslandComponent> = new Map<string, IgxRowIslandComponent>();\n    protected destroyMap: Map<string, Subject<boolean>> = new Map<string, Subject<boolean>>();\n\n    protected childRowIslands: Map<string, IgxRowIslandComponent> = new Map<string, IgxRowIslandComponent>();\n    protected childGrids:  Map<any, IgxHierarchicalGridComponent> = new Map<any, IgxHierarchicalGridComponent>();\n\n    public register(rowIsland: IgxRowIslandComponent) {\n        this.state.set(rowIsland.id, rowIsland);\n        this.destroyMap.set(rowIsland.id, new Subject<boolean>());\n    }\n\n    public unsubscribe(rowIsland: IgxRowIslandComponent) {\n        this.state.delete(rowIsland.id);\n    }\n\n    public get(id: string): IgxRowIslandComponent {\n        return this.state.get(id)!;\n    }\n\n    public unset(id: string) {\n        this.state.delete(id);\n        this.destroyMap.delete(id);\n    }\n\n    public reset(oldId: string, newId: string) {\n        const destroy = this.destroyMap.get(oldId);\n        const rowIsland = this.get(oldId);\n\n        this.unset(oldId);\n\n        if (rowIsland) {\n            this.state.set(newId, rowIsland);\n        }\n\n        if (destroy) {\n            this.destroyMap.set(newId, destroy);\n        }\n    }\n\n    public registerChildRowIsland(rowIsland: IgxRowIslandComponent) {\n        this.childRowIslands.set(rowIsland.key, rowIsland);\n        this.destroyMap.set(rowIsland.key, new Subject<boolean>());\n    }\n\n    public unsetChildRowIsland(rowIsland: IgxRowIslandComponent) {\n        this.childRowIslands.delete(rowIsland.key);\n        this.destroyMap.delete(rowIsland.key);\n    }\n\n    public getChildRowIsland(rowIslandKey: string) {\n        return this.childRowIslands.get(rowIslandKey);\n    }\n\n    public registerChildGrid(parentRowID: any, grid: IgxHierarchicalGridComponent) {\n        this.childGrids.set(parentRowID, grid);\n    }\n\n    public getChildGrids(inDepth?: boolean) {\n        let allChildren: IgxHierarchicalGridComponent[] = [];\n        this.childGrids.forEach((grid) => {\n            allChildren.push(grid);\n        });\n        if (inDepth) {\n            this.childRowIslands.forEach((layout) => {\n                allChildren = allChildren.concat(layout.rowIslandAPI.getChildGrids(inDepth));\n            });\n        }\n\n        return allChildren;\n    }\n\n    public getChildGridByID(rowID: any) {\n        return this.childGrids.get(rowID);\n    }\n}\n","import {\n    AfterContentInit,\n    AfterViewInit,\n    booleanAttribute,\n    ChangeDetectionStrategy,\n    Component,\n    ContentChild,\n    ContentChildren,\n    EventEmitter,\n    forwardRef,\n    Input,\n    IterableChangeRecord,\n    OnChanges,\n    OnDestroy,\n    OnInit,\n    Output,\n    QueryList,\n    TemplateRef,\n    inject,\n    SimpleChanges,\n    IterableDiffer\n} from '@angular/core';\nimport {\n    GridType,\n    IgxColumnComponent,\n    IgxFilteringService,\n    IgxGridPaginatorTemplateContext,\n    IgxGridSelectionService,\n    IgxGridToolbarDirective,\n    IgxGridToolbarTemplateContext,\n    ISearchInfo\n} from 'igniteui-angular/grids/core';\nimport { IgxHierarchicalGridBaseDirective } from './hierarchical-grid-base.directive';\nimport { IGridResourceStrings } from 'igniteui-angular/core';\nimport { first, filter, takeUntil, pluck } from 'rxjs/operators';\nimport { IgxRowIslandAPIService } from './row-island-api.service';\nimport type { IgxHierarchicalGridComponent } from './hierarchical-grid.component';\nimport { IGridCreatedEventArgs } from './events';\nimport { IgxPaginatorComponent, IgxPaginatorDirective } from 'igniteui-angular/paginator';\nimport { IForOfState } from 'igniteui-angular/directives';\n\n/* wcAlternateName: RowIslandBase */\n/* blazorIndirectRender\n   blazorComponent\n   omitModule\n   wcSkipComponentSuffix */\n/**\n * Row island\n *\n * @igxModule IgxHierarchicalGridModule\n * @igxParent IgxHierarchicalGridComponent, IgxRowIslandComponent\n *\n */\n@Component({\n    changeDetection: ChangeDetectionStrategy.OnPush,\n    selector: 'igx-row-island',\n    template: ``,\n    providers: [\n        IgxRowIslandAPIService,\n        IgxFilteringService,\n        IgxGridSelectionService\n    ],\n    standalone: true\n})\nexport class IgxRowIslandComponent extends IgxHierarchicalGridBaseDirective\n    implements AfterContentInit, AfterViewInit, OnChanges, OnInit, OnDestroy {\n    /* blazorSuppress */\n    public rowIslandAPI = inject(IgxRowIslandAPIService);\n\n    /**\n     * The row island this one is declared in. Resolved through the injector, since row islands\n     * rendered conditionally are initialized before their parent updates its children.\n     */\n    private declaringIsland = inject(IgxRowIslandComponent, { optional: true, skipSelf: true });\n\n\n    /* blazorSuppress */\n    /**\n     * Sets the key of the row island by which child data would be taken from the row data if such is provided.\n     * ```html\n     * <igx-hierarchical-grid [data]=\"Data\" [autoGenerate]=\"true\">\n     *      <igx-row-island [key]=\"'childData'\">\n     *          <!-- ... -->\n     *      </igx-row-island>\n     * </igx-hierarchical-grid>\n     * ```\n     *\n     * @memberof IgxRowIslandComponent\n     */\n    @Input()\n    public key!: string;\n\n    /* treatAsRef */\n    /**\n     * Gets/Sets the resource strings.\n     *\n     * @remarks\n     * By default it uses the root grid resources.\n     */\n    @Input()\n    public override set resourceStrings(value: IGridResourceStrings) {\n        super.resourceStrings = value;\n        this.updateGridsResources();\n    }\n\n    public override get resourceStrings(): IGridResourceStrings {\n        return this._resourceStrings || !this.rootGrid ? super.resourceStrings : this.rootGrid.resourceStrings;\n    }\n\n    /**\n     * @hidden\n     */\n    @ContentChildren(forwardRef(() => IgxRowIslandComponent), { read: IgxRowIslandComponent, descendants: false })\n    public children = new QueryList<IgxRowIslandComponent>();\n\n    /**\n     * @hidden @internal\n     */\n    @ContentChildren(forwardRef(() => IgxRowIslandComponent), { read: IgxRowIslandComponent, descendants: false })\n    public childLayoutList = new QueryList<IgxRowIslandComponent>();\n\n    /**\n     * @hidden\n     */\n    @ContentChildren(IgxColumnComponent, { read: IgxColumnComponent, descendants: false })\n    public childColumns = new QueryList<IgxColumnComponent>();\n\n    @ContentChild(IgxGridToolbarDirective, { read: TemplateRef, descendants: false })\n    protected toolbarDirectiveTemplate!: TemplateRef<IgxGridToolbarTemplateContext>;\n\n    @ContentChild(IgxPaginatorDirective, { read: TemplateRef, descendants: false })\n    protected paginatorDirectiveTemplate!: TemplateRef<any>;\n\n    /* csSuppress */\n    /**\n     * Sets/Gets the toolbar template for each child grid created from this row island.\n    */\n    @Input()\n    public get toolbarTemplate(): TemplateRef<IgxGridToolbarTemplateContext> {\n        return this._toolbarTemplate || this.toolbarDirectiveTemplate;\n    }\n\n    public set toolbarTemplate(template: TemplateRef<IgxGridToolbarTemplateContext>) {\n        this._toolbarTemplate = template;\n    }\n\n\n    /* csSuppress */\n    /**\n     * Sets/Gets the paginator template for each child grid created from this row island.\n    */\n    @Input()\n    public get paginatorTemplate(): TemplateRef<IgxGridPaginatorTemplateContext> {\n        return this._paginatorTemplate || this.paginatorDirectiveTemplate;\n    }\n\n    public set paginatorTemplate(template: TemplateRef<IgxGridPaginatorTemplateContext>) {\n        this._paginatorTemplate = template;\n    }\n\n    /**\n     * @hidden\n     */\n    @Output()\n    public layoutChange = new EventEmitter<SimpleChanges<IgxRowIslandComponent>>();\n\n    /**\n     * Event emitted when a grid is being created based on this row island.\n     * ```html\n     * <igx-hierarchical-grid [data]=\"Data\" [autoGenerate]=\"true\">\n     *      <igx-row-island [key]=\"'childData'\" (gridCreated)=\"gridCreated($event)\" #rowIsland>\n     *          <!-- ... -->\n     *      </igx-row-island>\n     * </igx-hierarchical-grid>\n     * ```\n     *\n     * @memberof IgxRowIslandComponent\n     */\n    @Output()\n    public gridCreated = new EventEmitter<IGridCreatedEventArgs>();\n\n    /**\n     * Emitted after a grid is being initialized for this row island.\n     * The emitting is done in `ngAfterViewInit`.\n     * ```html\n     * <igx-hierarchical-grid [data]=\"Data\" [autoGenerate]=\"true\">\n     *      <igx-row-island [key]=\"'childData'\" (gridInitialized)=\"gridInitialized($event)\" #rowIsland>\n     *          <!-- ... -->\n     *      </igx-row-island>\n     * </igx-hierarchical-grid>\n     * ```\n     *\n     * @memberof IgxRowIslandComponent\n     */\n    @Output()\n    public gridInitialized = new EventEmitter<IGridCreatedEventArgs>();\n\n    /**\n     * @hidden\n     */\n    public initialChanges: SimpleChanges<IgxRowIslandComponent>[] = [];\n\n    /**\n     * @hidden\n     */\n    public rootGrid: GridType = null!;\n\n    /** @hidden */\n    public readonly data!: any[] | null;\n\n    /** @hidden */\n    public override get hiddenColumnsCount(): number {\n        return 0;\n    }\n\n    /** @hidden */\n    public override get pinnedColumnsCount(): number {\n        return 0;\n    }\n\n    /** @hidden */\n    public override get lastSearchInfo(): ISearchInfo {\n        return null!;\n    }\n\n    /** @hidden */\n    public override get filteredData(): any {\n        return [];\n    }\n\n    /** @hidden */\n    public override get filteredSortedData(): any[] {\n        return [];\n    }\n\n    /** @hidden */\n    public override get virtualizationState(): IForOfState {\n        return null!;\n    }\n\n    /** @hidden */\n    public override get pinnedColumns(): IgxColumnComponent[] {\n        return [];\n    }\n\n    /** @hidden */\n    public override get pinnedStartColumns(): IgxColumnComponent[] {\n        return [];\n    }\n    /** @hidden */\n    public override get pinnedEndColumns(): IgxColumnComponent[] {\n        return [];\n    }\n\n    /** @hidden */\n    public override get unpinnedColumns(): IgxColumnComponent[] {\n        return [];\n    }\n\n    /** @hidden */\n    public override get visibleColumns(): IgxColumnComponent[] {\n        return [];\n    }\n\n    /** @hidden */\n    public override get dataView(): any[] {\n        return [];\n    }\n\n    //#region inert, not-a-grid component\n    /** @hidden @internal */\n    public override tabindex = -1;\n\n    /** @hidden @internal */\n    public override hostRole: string = null!;\n\n    protected override baseClass: string = null!;\n\n    /** @hidden @internal */\n    public override get hostWidth(): any {\n        return null;\n    }\n\n    protected override displayStyle = 'none';\n    protected override templateRows: string = null!;\n    //#endregion\n\n    private ri_columnListDiffer: IterableDiffer<IgxColumnComponent> = null!;\n    private layout_id = `igx-row-island-`;\n    private isInit = false;\n    private _toolbarTemplate!: TemplateRef<IgxGridToolbarTemplateContext>;\n    private _paginatorTemplate!: TemplateRef<IgxGridPaginatorTemplateContext>;\n\n    /**\n     * Sets if all immediate children of the grids for this row island should be expanded/collapsed.\n     * ```html\n     * <igx-hierarchical-grid [data]=\"Data\" [autoGenerate]=\"true\">\n     *      <igx-row-island [key]=\"'childData'\" [expandChildren]=\"true\" #rowIsland>\n     *          <!-- ... -->\n     *      </igx-row-island>\n     * </igx-hierarchical-grid>\n     * ```\n     *\n     * @memberof IgxRowIslandComponent\n     */\n    @Input({ transform: booleanAttribute })\n    public set expandChildren(value: boolean) {\n        this._defaultExpandState = value;\n        this.rowIslandAPI.getChildGrids().forEach((grid) => {\n            grid.expandChildren = value;\n            if (this.document.body.contains(grid.nativeElement)) {\n                // Detect changes right away if the grid is visible\n                grid.cdr.detectChanges();\n            } else {\n                // Else defer the detection on changes when the grid gets into view for performance.\n                grid.updateOnRender = true;\n            }\n        });\n    }\n\n    /**\n     * Gets if all immediate children of the grids for this row island have been set to be expanded/collapsed.\n     * ```typescript\n     * const expanded = this.rowIsland.expandChildren;\n     * ```\n     *\n     * @memberof IgxRowIslandComponent\n     */\n    public get expandChildren(): boolean {\n        return this._defaultExpandState;\n    }\n\n    /**\n     * @hidden\n     */\n    public get id(): string {\n        const pId = this.parentId ? this.parentId.substring(this.parentId.indexOf(this.layout_id) + this.layout_id.length) + '-' : '';\n        return this.layout_id + pId + this.key;\n    }\n\n    /**\n     * @hidden\n     */\n    public get parentId(): string | null {\n        return this.parentIsland ? this.parentIsland.id : null;\n    }\n\n    /**\n     * @hidden\n     */\n    public get level() {\n        let ptr = this.parentIsland;\n        let lvl = 0;\n        while (ptr) {\n            lvl++;\n            ptr = ptr.parentIsland;\n        }\n        return lvl + 1;\n    }\n\n    /**\n     * @hidden\n     */\n    public override ngOnInit() {\n        // islands of a grid declared in a row island template resolve that row island too, but belong to another grid\n        if (this.declaringIsland?.gridAPI === this.gridAPI) {\n            this.parentIsland ??= this.declaringIsland;\n        }\n        this.filteringService.grid = this as GridType;\n        this.rootGrid = this.gridAPI.grid;\n        this.rowIslandAPI.rowIsland = this;\n        this.ri_columnListDiffer = this.differs.find([]).create(null!);\n    }\n\n    /**\n     * @hidden\n     */\n    public override ngAfterContentInit() {\n        this.updateChildren();\n        this.children.notifyOnChanges();\n        this.children.changes.pipe(takeUntil(this.destroy$))\n            .subscribe(() => {\n                this.updateChildren();\n                // update existing grids since their child ri have been changed.\n                this.rowIslandAPI.getChildGrids(false).forEach(grid => {\n                    grid.onRowIslandChange();\n                });\n            });\n        const nestedColumns = this.children.map((layout) => layout.columnList.toArray());\n        const colsArray = ([] as IgxColumnComponent[]).concat.apply([], nestedColumns);\n        const topCols = this.columnList.filter((item) => colsArray.indexOf(item) === -1);\n        this._childColumns = topCols;\n        this.updateColumns(this._childColumns);\n        this.columnList.changes.pipe(takeUntil(this.destroy$)).subscribe(() => {\n            Promise.resolve().then(() => {\n                this.updateColumnList();\n            });\n        });\n\n        // handle column changes so that they are passed to child grid instances when columnChange is emitted.\n        this.ri_columnListDiffer.diff(this.childColumns);\n        this._childColumns.forEach(x => x.columnChange.pipe(takeUntil(x.destroy$)).subscribe(() => this.updateColumnList()));\n        this.childColumns.changes.pipe(takeUntil(this.destroy$)).subscribe((change: QueryList<IgxColumnComponent>) => {\n            const diff = this.ri_columnListDiffer.diff(change);\n            if (diff) {\n                diff.forEachAddedItem((record: IterableChangeRecord<IgxColumnComponent>) => {\n                    record.item.columnChange.pipe(takeUntil(record.item.destroy$)).subscribe(() => this.updateColumnList());\n                });\n            }\n        });\n    }\n\n    /**\n     * @hidden\n     */\n    public override ngAfterViewInit() {\n        this.rowIslandAPI.register(this);\n        if (this.parentIsland) {\n            this.parentIsland.rowIslandAPI.registerChildRowIsland(this);\n        } else {\n            this.rootGrid.gridAPI.registerChildRowIsland!(this);\n        }\n        this._init = false;\n\n        // Create the child toolbar if the parent island has a toolbar definition\n        this.gridCreated.pipe(pluck('grid'), takeUntil(this.destroy$)).subscribe(grid => {\n            grid.rendered$.pipe(first(), filter(() => !!this.toolbarTemplate))\n                .subscribe(() => grid.toolbarOutlet.createEmbeddedView(this.toolbarTemplate, { $implicit: grid }, { injector: grid.toolbarOutlet.injector }));\n            grid.rendered$.pipe(first(), filter(() => !!this.paginatorTemplate))\n                .subscribe(() => {\n                    this.rootGrid.paginatorList!.changes.pipe(takeUntil(this.destroy$)).subscribe((changes: QueryList<IgxPaginatorComponent>) => {\n                        changes.forEach(p => {\n                            if (grid.footer?.nativeElement.contains(p.nativeElement)) {\n                                // Optimize update only for those grids that have related changed paginator.\n                                grid.setUpPaginator()\n                            }\n                        });\n                    });\n                    grid.paginatorOutlet.createEmbeddedView(this.paginatorTemplate, { $implicit: grid });\n                });\n        });\n        this.cdr.reattach();\n    }\n\n    /**\n     * @hidden\n     */\n    public override ngOnChanges(changes: SimpleChanges<IgxRowIslandComponent>) {\n        this.layoutChange.emit(changes);\n        if (!this.isInit) {\n            this.initialChanges.push(changes);\n        }\n    }\n\n    /**\n     * @hidden\n     */\n    public override ngOnDestroy() {\n        // Override the base destroy because we have not rendered anything to use removeEventListener on\n        this.destroy$.next(true);\n        this.destroy$.complete();\n        this._destroyed = true;\n        this.rowIslandAPI.unset(this.id);\n        if (this.parentIsland) {\n            // the grids rendering this row island are the ones created from its parent row island\n            this.parentIsland.rowIslandAPI.getChildGrids().forEach(grid => {\n                this.cleanGridState(grid);\n                grid.gridAPI.unsetChildRowIsland!(this);\n            });\n            this.parentIsland.rowIslandAPI.unsetChildRowIsland(this);\n        } else {\n            this.rootGrid.gridAPI.unsetChildRowIsland!(this);\n            this.cleanGridState(this.rootGrid);\n        }\n    }\n\n    /**\n     * @hidden\n     */\n    public override reflow() { }\n\n    /**\n     * @hidden\n     */\n    public override calculateGridHeight() { }\n\n    /**\n     * @hidden\n     */\n    public override calculateGridWidth() { }\n\n    protected _childColumns: IgxColumnComponent[] = [];\n\n    protected updateColumnList() {\n        const nestedColumns = this.children.map((layout) => layout.columnList.toArray());\n        const colsArray = ([] as IgxColumnComponent[]).concat.apply([], nestedColumns);\n        const topCols = this.columnList.filter((item) => {\n            if (colsArray.indexOf(item) === -1) {\n                /* Reset the default width of the columns that come into this row island,\n                because the root catches them first during the detectChanges() and sets their defaultWidth. */\n                item.defaultWidth = undefined!;\n                return true;\n            }\n            return false;\n        });\n        this._childColumns = topCols;\n        this.updateColumns(this._childColumns);\n        this.rowIslandAPI.getChildGrids().forEach((grid: GridType) => {\n            grid.createColumnsList!(this._childColumns);\n            if (!this.document.body.contains(grid.nativeElement)) {\n                grid.updateOnRender = true;\n            }\n        });\n        (this.rootGrid as IgxHierarchicalGridComponent)?.updateRowIslandSchemaFields(this);\n    }\n\n    protected updateChildren() {\n        this.children.forEach(child => {\n            child.parentIsland = this;\n        });\n    }\n\n    private cleanGridState(grid: GridType) {\n        grid.childGridTemplates.forEach((tmpl: any) => {\n            tmpl.owner.cleanView(tmpl.context.templateID);\n        });\n        grid.childGridTemplates.clear();\n        grid.onRowIslandChange();\n    }\n\n    private updateGridsResources() {\n        this.rowIslandAPI.getChildGrids().forEach((grid) => {\n            grid.resourceStrings = this.resourceStrings;\n        });\n    }\n}\n","import { Pipe, PipeTransform, inject } from '@angular/core';\nimport { GridType, IGX_GRID_BASE } from 'igniteui-angular/grids/core';\nimport { cloneArray, columnFieldPath, DataUtil, resolveNestedPath } from 'igniteui-angular/core';\n\n/**\n * @hidden\n */\n@Pipe({\n    name: 'gridHierarchical',\n    standalone: true\n})\nexport class IgxGridHierarchicalPipe implements PipeTransform {\n    private grid = inject<GridType>(IGX_GRID_BASE);\n\n    public transform(\n        collection: any,\n        state: Map<any, boolean>,\n        _id: string,\n        primaryKey: any,\n        childKeys: string[],\n        _pipeTrigger: number\n    ): any[] {\n        if (childKeys.length === 0) {\n            return collection;\n        }\n        if (this.grid.verticalScrollContainer.isRemote) {\n            return collection;\n        }\n        const result = this.addHierarchy(this.grid, cloneArray(collection), state, primaryKey, childKeys);\n\n        return result;\n    }\n\n    public addHierarchy<T>(grid: GridType, data: T[], _state: Map<any, boolean>, primaryKey: any, childKeys: string[]): T[] {\n        const result: any[] = [];\n\n        data.forEach((v: any) => {\n            result.push(v);\n            const childGridsData: any = {};\n            childKeys.forEach((childKey) => {\n                if (!v[childKey]) {\n                    v[childKey] = [];\n                }\n                const hasNestedPath = childKey?.includes('.');\n                const childData = !hasNestedPath ? v[childKey] : resolveNestedPath(v, columnFieldPath(childKey));\n                childGridsData[childKey] = childData;\n            });\n            if (grid.gridAPI.get_row_expansion_state(v)) {\n                result.push({ rowID: primaryKey ? v[primaryKey] : v, childGridsData, parentRowData: v });\n            }\n        });\n        return result;\n    }\n}\n\n/**\n * @hidden\n */\n@Pipe({\n    name: 'gridHierarchicalPaging',\n    standalone: true\n})\nexport class IgxGridHierarchicalPagingPipe implements PipeTransform {\n    private grid = inject<GridType>(IGX_GRID_BASE);\n\n\n    public transform(collection: any[], enabled: boolean, page: number, perPage: number, _id: string, _pipeTrigger: number): any[] {\n        if (!enabled || this.grid.pagingMode !== 'local') {\n            return collection;\n        }\n\n        const state = {\n            index: page,\n            recordsPerPage: perPage\n        };\n\n        const total = this.grid._totalRecords >= 0 ? this.grid._totalRecords : collection.length;\n        const result: any[] = DataUtil.page(cloneArray(collection), state, total);\n        this.grid.pagingState = state;\n        return result;\n\n    }\n}\n","import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';\nimport {\n    GridType,\n    IgxColumnFormatterPipe,\n    IgxGridCellComponent,\n    IgxGridCellImageAltPipe,\n    IgxStringReplacePipe\n} from 'igniteui-angular/grids/core';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { NgClass, NgTemplateOutlet } from '@angular/common';\nimport { IgxChipComponent } from 'igniteui-angular/chips';\nimport { IgxDateTimeEditorDirective, IgxFocusDirective, IgxTextHighlightDirective, IgxTextSelectionDirective, IgxTooltipDirective, IgxTooltipTargetDirective } from 'igniteui-angular/directives';\nimport { IgxIconComponent } from 'igniteui-angular/icon';\nimport { IgxInputDirective, IgxInputGroupComponent, IgxPrefixDirective, IgxSuffixDirective } from 'igniteui-angular/input-group';\nimport { IgxCheckboxComponent } from 'igniteui-angular/checkbox';\nimport { IgxDatePickerComponent } from 'igniteui-angular/date-picker';\nimport { IgxTimePickerComponent } from 'igniteui-angular/time-picker';\nimport { IgxCurrencyFormatterPipe, IgxDateFormatterPipe, IgxNumberFormatterPipe, IgxPercentFormatterPipe } from 'igniteui-angular/core';\n\n@Component({\n    changeDetection: ChangeDetectionStrategy.OnPush,\n    selector: 'igx-hierarchical-grid-cell',\n    templateUrl: '../../core/src/cell.component.html',\n    imports: [IgxChipComponent, IgxTextHighlightDirective, IgxIconComponent, NgClass, FormsModule, ReactiveFormsModule,\n        IgxInputGroupComponent, IgxInputDirective, IgxFocusDirective, IgxTextSelectionDirective, IgxCheckboxComponent,\n        IgxDatePickerComponent, IgxTimePickerComponent, IgxDateTimeEditorDirective, IgxPrefixDirective,\n        IgxSuffixDirective, NgTemplateOutlet, IgxTooltipTargetDirective, IgxTooltipDirective, IgxGridCellImageAltPipe,\n        IgxStringReplacePipe, IgxColumnFormatterPipe, IgxNumberFormatterPipe, IgxPercentFormatterPipe,\n        IgxCurrencyFormatterPipe, IgxDateFormatterPipe]\n})\nexport class IgxHierarchicalGridCellComponent extends IgxGridCellComponent implements OnInit {\n    // protected hSelection;\n    protected _rootGrid!: GridType;\n\n    public override ngOnInit() {\n        super.ngOnInit();\n        this._rootGrid = this._getRootGrid();\n    }\n\n    /**\n     * @hidden\n     * @internal\n     */\n    public override activate(event: FocusEvent) {\n        this._clearAllHighlights();\n        const currentElement = this.grid.nativeElement;\n        let parentGrid = this.grid;\n        let childGrid;\n        // add highligh to the current grid\n        if (this._rootGrid.id !== currentElement.id) {\n            currentElement.classList.add('igx-grid__tr--highlighted');\n        }\n\n        // add highligh to the current grid\n        while (this._rootGrid.id !== parentGrid.id) {\n            childGrid = parentGrid;\n            parentGrid = parentGrid.parent!;\n\n            const parentRowID = parentGrid.gridAPI.getParentRowId!(childGrid);\n            parentGrid.highlightedRowID = parentRowID;\n        }\n        this.grid.navigation.activeNode.gridID = this.gridID;\n        super.activate(event);\n    }\n\n    private _getRootGrid() {\n        let currGrid = this.grid;\n        while (currGrid.parent) {\n            currGrid = currGrid.parent;\n        }\n        return currGrid;\n    }\n\n    // TODO: Extend the new selection service to avoid complete traversal\n    private _clearAllHighlights() {\n        [this._rootGrid, ...this._rootGrid.getChildGrids!(true)].forEach(grid => {\n            if (grid !== this.grid && grid.navigation.activeNode) {\n                grid.selectionService.activeElement = null;\n                grid.navigation.clearActivation();\n                grid.selectionService.initKeyboardState();\n                grid.selectionService.clear();\n            }\n\n            grid.nativeElement.classList.remove('igx-grid__tr--highlighted');\n            grid.highlightedRowID = null;\n            grid.cdr.markForCheck();\n        });\n    }\n}\n","<ng-template #defaultPinnedIndicator>\n  @if (displayPinnedChip) {\n    <igx-chip\n      class=\"igx-grid__td--pinned-chip\"\n      [disabled]=\"true\"\n      [style.--ig-size]=\"1\"\n      >{{ grid.resourceStrings.igx_grid_pinned_row_indicator }}</igx-chip\n    >\n  }\n</ng-template>\n<ng-template #defaultCell>\n  @if (\n    (column.dataType !== 'boolean' && column.dataType !== 'image') ||\n    (column.dataType === 'boolean' && this.formatter)\n  ) {\n    <div\n      igxTextHighlight\n      class=\"igx-grid__td-text\"\n      [cssClass]=\"highlightClass\"\n      [activeCssClass]=\"activeHighlightClass\"\n      [groupName]=\"gridID\"\n      [value]=\"\n        formatter\n          ? (value | columnFormatter: formatter : rowData : columnData)\n          : column.dataType === 'number'\n            ? (value | number: column.pipeArgs.digitsInfo : grid.locale)\n            : column.dataType === 'date' ||\n                column.dataType === 'time' ||\n                column.dataType === 'dateTime'\n              ? (value\n                | date\n                  : column.pipeArgs.format\n                  : column.pipeArgs.timezone\n                  : grid.locale)\n              : column.dataType === 'currency'\n                ? (value\n                  | currency\n                    : currencyCode\n                    : column.pipeArgs.display\n                    : column.pipeArgs.digitsInfo\n                    : grid.locale)\n                : column.dataType === 'percent'\n                  ? (value | percent: column.pipeArgs.digitsInfo : grid.locale)\n                  : value\n      \"\n      [row]=\"rowData\"\n      [column]=\"this.column.field\"\n      [containerClass]=\"'igx-grid__td-text'\"\n      [metadata]=\"searchMetadata\"\n    >\n      {{\n        formatter\n          ? (value | columnFormatter: formatter : rowData : columnData)\n          : column.dataType === 'number'\n            ? (value | number: column.pipeArgs.digitsInfo : grid.locale)\n            : column.dataType === 'date' ||\n                column.dataType === 'time' ||\n                column.dataType === 'dateTime'\n              ? (value\n                | date\n                  : column.pipeArgs.format\n                  : column.pipeArgs.timezone\n                  : grid.locale)\n              : column.dataType === 'currency'\n                ? (value\n                  | currency\n                    : currencyCode\n                    : column.pipeArgs.display\n                    : column.pipeArgs.digitsInfo\n                    : grid.locale)\n                : column.dataType === 'percent'\n                  ? (value | percent: column.pipeArgs.digitsInfo : grid.locale)\n                  : value\n      }}\n    </div>\n  }\n  @if (column.dataType === 'boolean' && !this.formatter) {\n    <igx-icon\n      family=\"default\"\n      [name]=\"value ? 'confirm' : 'close'\"\n      [ngClass]=\"{ 'igx-icon--success': value, 'igx-icon--error': !value }\"\n    >\n    </igx-icon>\n  }\n  @if (column.dataType === 'image') {\n    <img [src]=\"value\" [alt]=\"value | igxCellImageAlt\" />\n  }\n</ng-template>\n\n<ng-template #emptyCell></ng-template>\n<ng-template #addRowCell let-cell=\"cell\">\n  @if (\n    column.dataType !== 'boolean' ||\n    (column.dataType === 'boolean' && this.formatter)\n  ) {\n    <div\n      igxTextHighlight\n      class=\"igx-grid__td-text\"\n      [cssClass]=\"highlightClass\"\n      [activeCssClass]=\"activeHighlightClass\"\n      [groupName]=\"gridID\"\n      [value]=\"\n        formatter\n          ? (value | columnFormatter: formatter : rowData)\n          : column.dataType === 'number'\n            ? (value | number: column.pipeArgs.digitsInfo : grid.locale)\n            : column.dataType === 'date' ||\n                column.dataType === 'time' ||\n                column.dataType === 'dateTime'\n              ? (value\n                | date\n                  : column.pipeArgs.format\n                  : column.pipeArgs.timezone\n                  : grid.locale)\n              : column.dataType === 'currency'\n                ? (value\n                  | currency\n                    : currencyCode\n                    : column.pipeArgs.display\n                    : column.pipeArgs.digitsInfo\n                    : grid.locale)\n                : column.dataType === 'percent'\n                  ? (value | percent: column.pipeArgs.digitsInfo : grid.locale)\n                  : value\n      \"\n      [row]=\"rowData\"\n      [column]=\"this.column.field\"\n      [containerClass]=\"'igx-grid__td-text'\"\n      [metadata]=\"searchMetadata\"\n    >\n      {{ !isEmptyAddRowCell\n        ? (formatter\n            ? (value | columnFormatter: formatter : rowData)\n            : column.dataType === 'number'\n                ? (value | number: column.pipeArgs.digitsInfo : grid.locale)\n                : column.dataType === 'date' ||\n                    column.dataType === 'time' ||\n                    column.dataType === 'dateTime'\n                ? (value\n                    | date\n                    : column.pipeArgs.format\n                    : column.pipeArgs.timezone\n                    : grid.locale)\n                : column.dataType === 'currency'\n                    ? (value\n                    | currency\n                        : currencyCode\n                        : column.pipeArgs.display\n                        : column.pipeArgs.digitsInfo\n                        : grid.locale)\n                    : column.dataType === 'percent'\n                    ? (value | percent: column.pipeArgs.digitsInfo : grid.locale)\n                    : value)\n      : column.header || column.field }}\n    </div>\n  }\n</ng-template>\n<ng-template #inlineEditor let-cell=\"cell\">\n  @if (column.dataType === 'string' || column.dataType === 'image') {\n    <ng-container [formGroup]=\"formGroup\">\n      <igx-input-group>\n        <input\n          igxInput\n          [attr.aria-describedby]=\"ariaDescribeBy\"\n          [attr.aria-invalid]=\"isInvalid\"\n          [igxFocus]=\"true\"\n          [igxTextSelection]=\"true\"\n          [formControl]=\"formControl\"\n          (compositionstart)=\"grid.crudService.isInCompositionMode = true\"\n          (compositionend)=\"grid.crudService.isInCompositionMode = false\"\n        />\n      </igx-input-group>\n    </ng-container>\n  }\n  @if (column.dataType === 'number') {\n    <igx-input-group [formGroup]=\"formGroup\">\n      <input\n        igxInput\n        [attr.aria-describedby]=\"ariaDescribeBy\"\n        [attr.aria-invalid]=\"isInvalid\"\n        [igxFocus]=\"true\"\n        [igxTextSelection]=\"true\"\n        [step]=\"step\"\n        type=\"number\"\n        [formControl]=\"formControl\"\n      />\n    </igx-input-group>\n  }\n  @if (column.dataType === 'boolean') {\n    <ng-container [formGroup]=\"formGroup\">\n      <igx-checkbox\n        [checked]=\"editValue\"\n        [igxFocus]=\"true\"\n        [disableRipple]=\"true\"\n        [formControl]=\"formControl\"\n      ></igx-checkbox>\n    </ng-container>\n  }\n  @if (column.dataType === 'date') {\n    <ng-container [formGroup]=\"formGroup\">\n      <igx-date-picker\n        [style.width.%]=\"100\"\n        mode=\"dropdown\"\n        [locale]=\"grid.locale\"\n        [weekStart]=\"column.pipeArgs.weekStart!\"\n        [(value)]=\"editValue\"\n        [igxFocus]=\"true\"\n        [formControl]=\"formControl\"\n        [inputFormat]=\"column.editorOptions?.dateTimeFormat!\"\n        [displayFormat]=\"column.pipeArgs.format!\"\n      >\n      </igx-date-picker>\n    </ng-container>\n  }\n  @if (column.dataType === 'time') {\n    <ng-container [formGroup]=\"formGroup\">\n      <igx-time-picker\n        [style.width.%]=\"100\"\n        mode=\"dropdown\"\n        [locale]=\"grid.locale\"\n        [inputFormat]=\"column.editorOptions?.dateTimeFormat!\"\n        [displayFormat]=\"column.pipeArgs.format!\"\n        [(value)]=\"editValue\"\n        [igxFocus]=\"true\"\n        [formControl]=\"formControl\"\n      ></igx-time-picker>\n    </ng-container>\n  }\n  @if (column.dataType === 'dateTime') {\n    <igx-input-group [formGroup]=\"formGroup\">\n      <input\n        type=\"text\"\n        [attr.aria-describedby]=\"ariaDescribeBy\"\n        [attr.aria-invalid]=\"isInvalid\"\n        [formControl]=\"formControl\"\n        igxInput\n        [locale]=\"grid.locale\"\n        [igxDateTimeEditor]=\"column.editorOptions?.dateTimeFormat!\"\n        [defaultFormatType]=\"column.dataType\"\n        [displayFormat]=\"column.pipeArgs.format!\"\n        [igxFocus]=\"true\"\n      />\n    </igx-input-group>\n  }\n  @if (column.dataType === 'currency') {\n    <igx-input-group [formGroup]=\"formGroup\">\n      @if (grid.currencyPositionLeft) {\n        <igx-prefix>{{ currencyCodeSymbol }}</igx-prefix>\n      }\n      <input\n        igxInput\n        [attr.aria-describedby]=\"ariaDescribeBy\"\n        [attr.aria-invalid]=\"isInvalid\"\n        [igxFocus]=\"true\"\n        [igxTextSelection]=\"true\"\n        [step]=\"step\"\n        type=\"number\"\n        [formControl]=\"formControl\"\n      />\n      @if (!grid.currencyPositionLeft) {\n        <igx-suffix>{{ currencyCodeSymbol }}</igx-suffix>\n      }\n    </igx-input-group>\n  }\n  @if (column.dataType === 'percent') {\n    <igx-input-group [formGroup]=\"formGroup\">\n      <input\n        igxInput\n        [attr.aria-describedby]=\"ariaDescribeBy\"\n        [attr.aria-invalid]=\"isInvalid\"\n        [igxFocus]=\"true\"\n        [igxTextSelection]=\"true\"\n        [step]=\"step\"\n        type=\"number\"\n        [formControl]=\"formControl\"\n      />\n      <igx-suffix>\n        {{ editValue | percent: column.pipeArgs.digitsInfo : grid.locale }}\n      </igx-suffix>\n    </igx-input-group>\n  }\n</ng-template>\n<ng-container *ngTemplateOutlet=\"pinnedIndicatorTemplate; context: context\">\n</ng-container>\n<ng-container *ngTemplateOutlet=\"template; context: context\"></ng-container>\n\n@if (isInvalid) {\n  <igx-icon\n    family=\"default\"\n    name=\"error\"\n    #errorIcon\n    [igxTooltipTarget]=\"tooltipRef\"\n    (mouseover)=\"errorShowing = true\"\n    (mouseout)=\"errorShowing = false\"\n  >\n  </igx-icon>\n  <div [id]=\"ariaErrorMessage\" igxTooltip #error #tooltipRef=\"tooltip\">\n    <div [style.width]=\"'max-content'\">\n      <ng-container\n        *ngTemplateOutlet=\"\n          cellValidationErrorTemplate || defaultError;\n          context: context\n        \"\n      ></ng-container>\n    </div>\n  </div>\n}\n\n<ng-template #defaultError>\n  @let errors = formControl.errors;\n  @if (errors?.['required']) {\n    <div>\n      {{ grid.resourceStrings.igx_grid_required_validation_error }}\n    </div>\n  }\n  @if (errors?.['minlength']) {\n    <div>\n      {{\n        grid.resourceStrings.igx_grid_min_length_validation_error!\n          | igxStringReplace: '{0}' : errors.minlength.requiredLength\n      }}\n    </div>\n  }\n  @if (errors?.['maxlength']) {\n    <div>\n      {{\n        grid.resourceStrings.igx_grid_max_length_validation_error!\n          | igxStringReplace: '{0}' : errors.maxlength.requiredLength\n      }}\n    </div>\n  }\n  @if (errors?.['min']) {\n    <div>\n      {{\n        grid.resourceStrings.igx_grid_min_validation_error!\n          | igxStringReplace: '{0}' : errors.min.min\n      }}\n    </div>\n  }\n  @if (errors?.['max']) {\n    <div>\n      {{\n        grid.resourceStrings.igx_grid_max_validation_error!\n          | igxStringReplace: '{0}' : errors.max.max\n      }}\n    </div>\n  }\n  @if (errors?.['email']) {\n    <div>\n      {{ grid.resourceStrings.igx_grid_email_validation_error }}\n    </div>\n  }\n  @if (errors?.['pattern']) {\n    <div>\n      {{ grid.resourceStrings.igx_grid_pattern_validation_error }}\n    </div>\n  }\n</ng-template>\n","import {\n    ChangeDetectionStrategy,\n    Component,\n    HostBinding,\n    forwardRef,\n    ElementRef,\n    ViewChildren,\n    QueryList,\n    ViewChild,\n    TemplateRef\n} from '@angular/core';\nimport { IgxRowDirective } from 'igniteui-angular/grids/core';\nimport { IgxHierarchicalGridCellComponent } from './hierarchical-cell.component';\nimport { IgxGridNotGroupedPipe, IgxGridCellStylesPipe, IgxGridCellStyleClassesPipe, IgxGridDataMapperPipe, IgxGridTransactionStatePipe } from 'igniteui-angular/grids/core';\nimport { IgxRowDragDirective } from 'igniteui-angular/grids/core';\nimport { NgTemplateOutlet, NgClass, NgStyle } from '@angular/common';\nimport { IgxIconComponent } from 'igniteui-angular/icon';\nimport { IgxGridForOfDirective } from 'igniteui-angular/directives';\nimport { IgxCheckboxComponent } from 'igniteui-angular/checkbox';\n\n@Component({\n    changeDetection: ChangeDetectionStrategy.OnPush,\n    selector: 'igx-hierarchical-grid-row',\n    templateUrl: './hierarchical-row.component.html',\n    providers: [{ provide: IgxRowDirective, useExisting: forwardRef(() => IgxHierarchicalRowComponent) }],\n    imports: [NgTemplateOutlet, IgxIconComponent, IgxRowDragDirective, NgClass, IgxGridForOfDirective, IgxHierarchicalGridCellComponent, NgStyle, IgxCheckboxComponent, IgxGridNotGroupedPipe, IgxGridCellStylesPipe, IgxGridCellStyleClassesPipe, IgxGridDataMapperPipe, IgxGridTransactionStatePipe]\n})\nexport class IgxHierarchicalRowComponent extends IgxRowDirective {\n    @ViewChild('expander', { read: ElementRef })\n    public expander!: ElementRef<HTMLElement>;\n\n    @ViewChildren(forwardRef(() => IgxHierarchicalGridCellComponent), { read: IgxHierarchicalGridCellComponent })\n    protected override _cells!: QueryList<IgxHierarchicalGridCellComponent>;\n\n    /**\n     * @hidden\n     */\n    @ViewChild('defaultExpandedTemplate', { read: TemplateRef, static: true })\n    protected defaultExpandedTemplate!: TemplateRef<any>;\n\n    /**\n     * @hidden\n     */\n    @ViewChild('defaultEmptyTemplate', { read: TemplateRef, static: true })\n    protected defaultEmptyTemplate!: TemplateRef<any>;\n\n    /**\n     * @hidden\n     */\n    @ViewChild('defaultCollapsedTemplate', { read: TemplateRef, static: true })\n    protected defaultCollapsedTemplate!: TemplateRef<any>;\n\n    protected expanderClass = 'igx-grid__hierarchical-expander';\n    protected rolActionClass = 'igx-grid__tr-action';\n\n    /**\n     * @hidden\n     */\n    public get expanderClassResolved() {\n        return {\n            [this.expanderClass]: true,\n            [this.rolActionClass]: !this.pinned || this.disabled,\n            [`${this.expanderClass}--empty`]: this.pinned && !this.disabled\n        };\n    }\n\n    public override get viewIndex(): number {\n        return this.index + this.grid.page * this.grid.perPage;\n    }\n\n    /**\n     * Returns whether the row is expanded.\n     * ```typescript\n     * const RowExpanded = this.grid1.rowList.first.expanded;\n     * ```\n     */\n    public override get expanded() {\n        return this.grid.gridAPI.get_row_expansion_state(this.data);\n    }\n\n    /**\n     * @hidden\n     */\n    @HostBinding('class.igx-grid__tr--expanded')\n    public get expandedClass() {\n        return this.expanded && !this.pinned;\n    }\n\n    public override get hasChildren() {\n        return !!this.grid.childLayoutKeys!.length;\n    }\n\n    /**\n     * @hidden\n     */\n    @HostBinding('class.igx-grid__tr--highlighted')\n    public get highlighted() {\n        return this.grid && this.grid.highlightedRowID === this.key;\n    }\n\n    /**\n     * @hidden\n     */\n    public expanderClick(event: MouseEvent) {\n        event.stopPropagation();\n        this.toggle();\n    }\n\n    /**\n     * Toggles the hierarchical row.\n     * ```typescript\n     * this.grid1.rowList.first.toggle()\n     * ```\n     */\n    public toggle() {\n        if (this.added) {\n            return;\n        }\n        this.grid.gridAPI.set_row_expansion_state(this.key, !this.expanded);\n        this.grid.cdr.detectChanges();\n    }\n\n    /**\n     * @hidden\n     * @internal\n     */\n    public select = () => {\n        this.grid.selectRows([this.key]);\n    };\n\n    /**\n     * @hidden\n     * @internal\n     */\n    public deselect = () => {\n        this.grid.deselectRows([this.key]);\n    };\n\n    /**\n     * @hidden\n     */\n    public get iconTemplate() {\n        let expandable = true;\n        if (this.grid.hasChildrenKey) {\n            expandable = this.data[this.grid.hasChildrenKey];\n        }\n        if (!expandable || (this.pinned && !this.disabled)) {\n            return this.defaultEmptyTemplate;\n        }\n        if (this.expanded) {\n            return this.grid.rowExpandedIndicatorTemplate || this.defaultExpandedTemplate;\n        } else {\n            return this.grid.rowCollapsedIndicatorTemplate || this.defaultCollapsedTemplate;\n        }\n    }\n}\n","<ng-container\n  *ngTemplateOutlet=\"addRowUI ? addTemp : defaultTemp\"\n></ng-container>\n<ng-template #defaultExpandedTemplate>\n  <igx-icon family=\"default\" name=\"tree_collapse\" [active]=\"!added\"></igx-icon>\n</ng-template>\n\n<ng-template #defaultCollapsedTemplate>\n  <igx-icon family=\"default\" name=\"tree_expand\" [active]=\"!added\"></igx-icon>\n</ng-template>\n\n<ng-template #defaultEmptyTemplate>\n  <!-- Empty icon used as spacer for size matching-->\n  <igx-icon></igx-icon>\n</ng-template>\n\n<ng-template #addTemp>\n  <div\n    class=\"igx-grid__tr--inner\"\n    [class.igx-grid__tr--add-animate]=\"triggerAddAnimationClass\"\n    (animationend)=\"animationEndHandler()\"\n  >\n    <ng-container *ngTemplateOutlet=\"defaultTemp\"></ng-container>\n  </div>\n</ng-template>\n<ng-template #defaultTemp>\n  <!-- Drag indicator -->\n  @if (rowDraggable) {\n    <div\n      [class]=\"resolveDragIndicatorClasses\"\n      role=\"gridcell\"\n      [igxRowDrag]=\"this\"\n      (click)=\"$event.stopPropagation()\"\n      [ghostTemplate]=\"this.grid.getDragGhostCustomTemplate()!\"\n      (pointerdown)=\"$event.preventDefault()\"\n    >\n      <ng-container\n        *ngTemplateOutlet=\"\n          this.grid.dragIndicatorIconTemplate\n            ? this.grid.dragIndicatorIconTemplate\n            : this.grid.dragIndicatorIconBase\n        \"\n      ></ng-container>\n    </div>\n  }\n\n  <!-- Select Row -->\n  @if (showRowSelectors) {\n    <div\n      class=\"igx-grid__cbx-selection igx-grid__tr-action\"\n      role=\"gridcell\"\n      (click)=\"onRowSelectorClick($event)\"\n      (pointerdown)=\"$event.preventDefault()\"\n    >\n      <ng-template\n        *ngTemplateOutlet=\"\n          this.grid.rowSelectorTemplate\n            ? this.grid.rowSelectorTemplate\n            : rowSelectorBaseTemplate;\n          context: {\n            $implicit: {\n              index: viewIndex,\n              rowID: key,\n              key,\n              selected: selected,\n              select: select,\n              deselect: deselect,\n            },\n          }\n        \"\n      >\n      </ng-template>\n    </div>\n  }\n\n  <!-- Row Expander -->\n  @if (hasChildren) {\n    <div\n      (click)=\"expanderClick($event)\"\n      (mousedown)=\"$event.preventDefault()\"\n      [ngClass]=\"expanderClassResolved\"\n      #expander\n    >\n      <ng-container\n        *ngTemplateOutlet=\"iconTemplate; context: { $implicit: this }\"\n      >\n      </ng-container>\n    </div>\n  }\n\n  @if (pinnedStartColumns.length > 0) {\n    <ng-template\n      *ngTemplateOutlet=\"\n        pinnedCellsTemplate;\n        context: { $implicit: this, columns: pinnedStartColumns }\n      \"\n    ></ng-template>\n  }\n\n  <ng-template\n    igxGridFor\n    let-col\n    [igxGridForOf]=\"unpinnedColumns | igxNotGrouped\"\n    [igxForScrollContainer]=\"grid.parentVirtDir\"\n    let-colIndex=\"index\"\n    [igxForSizePropName]=\"'calcPixelWidth'\"\n    [igxForScrollOrientation]=\"'horizontal'\"\n    [igxForContainerSize]=\"grid.unpinnedWidth\"\n    [igxForTrackBy]=\"grid.trackColumnChanges\"\n    #igxDirRef\n  >\n    @if (this.hasMergedCells) {\n      <div\n        [style.height.px]=\"\n          this.metaData?.cellMergeMeta.get(col.field)?.rowSpan > 1\n            ? getRowHeight()\n            : null\n        \"\n        class=\"igx-grid__mrl-block\"\n        [style.visibility]=\"\n          this.metaData?.cellMergeMeta.get(col.field)?.root\n            ? 'hidden'\n            : 'visible'\n        \"\n        [ngStyle]=\"{\n          'grid-template-rows':\n            this.metaData?.cellMergeMeta.get(col.field)?.rowSpan > 1\n              ? this.getMergeCellSpan(col)\n              : null,\n        }\"\n      >\n        <ng-container\n          *ngTemplateOutlet=\"\n            cellTemplate;\n            context: { $implicit: this, column: col }\n          \"\n        ></ng-container>\n      </div>\n    } @else {\n      <ng-container\n        *ngTemplateOutlet=\"\n          cellTemplate;\n          context: { $implicit: this, column: col }\n        \"\n      ></ng-container>\n    }\n  </ng-template>\n\n  @if (pinnedEndColumns.length > 0) {\n    <ng-template\n      *ngTemplateOutlet=\"\n        pinnedCellsTemplate;\n        context: { $implicit: this, columns: pinnedEndColumns }\n      \"\n    ></ng-template>\n  }\n\n  <ng-template #rowSelectorBaseTemplate>\n    <div class=\"igx-grid__cbx-padding\">\n      <igx-checkbox\n        [tabindex]=\"-1\"\n        [readonly]=\"true\"\n        [checked]=\"selected\"\n        [disableRipple]=\"true\"\n        [disabled]=\"deleted\"\n        [disableTransitions]=\"grid.disableTransitions\"\n        [aria-label]=\"rowCheckboxAriaLabel\"\n      >\n      </igx-checkbox>\n    </div>\n  </ng-template>\n\n  <ng-template #pinnedCellsTemplate let-col let-columns=\"columns\">\n    @for (col of columns | igxNotGrouped; track trackPinnedColumn(col)) {\n      <igx-hierarchical-grid-cell\n        class=\"igx-grid__td igx-grid__td--fw igx-grid__td--pinned\"\n        [class.igx-grid__td--edited]=\"\n          key\n            | transactionState\n              : col.field\n              : grid.rowEditable\n              : grid.transactions\n              : grid.pipeTrigger\n              : grid.gridAPI.crudService.cell\n              : grid.gridAPI.crudService.row\n        \"\n        [class.igx-grid__td--number]=\"\n          col.dataType === 'number' ||\n          col.dataType === 'percent' ||\n          col.dataType === 'currency'\n        \"\n        [ngClass]=\"\n          col.cellClasses\n            | igxCellStyleClasses\n              : data[col.field]\n              : data\n              : col.field\n              : viewIndex\n              : grid.pipeTrigger\n        \"\n        [ngStyle]=\"\n          col.cellStyles\n            | igxCellStyles\n              : data[col.field]\n              : data\n              : col.field\n              : viewIndex\n              : grid.pipeTrigger\n        \"\n        [editMode]=\"\n          col.editable && this.grid.crudService.targetInEdit(index, col.index)\n        \"\n        [column]=\"col\"\n        [formatter]=\"col.formatter\"\n        [intRow]=\"this\"\n        [active]=\"isCellActive(col.visibleIndex)\"\n        [firstPinned]=\"col.isFirstPinned\"\n        [lastPinned]=\"col.isLastPinned\"\n        [rowData]=\"data\"\n        [style.min-width]=\"col.resolvedWidth\"\n        [style.max-width]=\"col.resolvedWidth\"\n        [style.flex-basis]=\"col.resolvedWidth\"\n        [width]=\"col.getCellWidth()\"\n        [visibleColumnIndex]=\"col.visibleIndex\"\n        [value]=\"\n          data\n            | dataMapper\n              : col.field\n              : grid.pipeTrigger\n              : data[col.field]\n              : col.hasNestedPath\n        \"\n        [cellTemplate]=\"col.bodyTemplate\"\n        [cellValidationErrorTemplate]=\"col.errorTemplate\"\n        [lastSearchInfo]=\"grid.lastSearchInfo\"\n        [cellSelectionMode]=\"grid.cellSelection\"\n        [displayPinnedChip]=\"shouldDisplayPinnedChip(col)\"\n      >\n      </igx-hierarchical-grid-cell>\n    }\n  </ng-template>\n</ng-template>\n\n<ng-template #cellTemplate let-col=\"column\">\n  <igx-hierarchical-grid-cell\n    [class.igx-grid__td--merged]=\"\n      metaData?.cellMergeMeta.get(col.field)?.rowSpan > 1\n    \"\n    [isMerged]=\"\n      $safeNavigationMigration(\n        metaData?.cellMergeMeta.get(col.field)?.rowSpan\n      ) > 1\n    \"\n    [isPlaceholder]=\"!!this.metaData?.cellMergeMeta.get(col.field)?.root\"\n    [class.igx-grid__td--merged-selected]=\"isSelectionRoot(col)\"\n    [class.igx-grid__td--merged-hovered]=\"isHoveredRoot(col)\"\n    class=\"igx-grid__td igx-grid__td--fw\"\n    [class.igx-grid__td--edited]=\"\n      key\n        | transactionState\n          : col.field\n          : grid.rowEditable\n          : grid.transactions\n          : grid.pipeTrigger\n          : grid.gridAPI.crudService.cell\n          : grid.gridAPI.crudService.row\n    \"\n    [class.igx-grid__td--number]=\"\n      col.dataType === 'number' ||\n      col.dataType === 'percent' ||\n      col.dataType === 'currency'\n    \"\n    [class.igx-grid__td--bool]=\"col.dataType === 'boolean'\"\n    [ngClass]=\"\n      col.cellClasses\n        | igxCellStyleClasses\n          : data[col.field]\n          : data\n          : col.field\n          : viewIndex\n          : grid.pipeTrigger\n    \"\n    [ngStyle]=\"\n      col.cellStyles\n        | igxCellStyles\n          : data[col.field]\n          : data\n          : col.field\n          : viewIndex\n          : grid.pipeTrigger\n    \"\n    [editMode]=\"\n      col.editable && this.grid.crudService.targetInEdit(index, col.index)\n    \"\n    [column]=\"col\"\n    [formatter]=\"col.formatter\"\n    [intRow]=\"this\"\n    [active]=\"isCellActive(col.visibleIndex)\"\n    [rowData]=\"data\"\n    [style.min-width]=\"col.resolvedWidth\"\n    [style.max-width]=\"col.resolvedWidth\"\n    [style.flex-basis]=\"col.resolvedWidth\"\n    [width]=\"col.getCellWidth()\"\n    [visibleColumnIndex]=\"col.visibleIndex\"\n    [value]=\"\n      data\n        | dataMapper\n          : col.field\n          : grid.pipeTrigger\n          : data[col.field]\n          : col.hasNestedPath\n    \"\n    [cellTemplate]=\"col.bodyTemplate\"\n    [cellValidationErrorTemplate]=\"col.errorTemplate\"\n    [lastSearchInfo]=\"grid.lastSearchInfo\"\n    [cellSelectionMode]=\"grid.cellSelection\"\n    [displayPinnedChip]=\"shouldDisplayPinnedChip(col)\"\n  >\n  </igx-hierarchical-grid-cell>\n</ng-template>\n","const LIFECYCLE_PLACEHOLDER_TAG = 'igc-lifecycle-placeholder';\n\n/**\n * Element that reports when it gets connected to or disconnected from the DOM.\n *\n * The callbacks are invoked synchronously and directly from the custom element reactions,\n * instead of through dispatched DOM events. Event listeners registered by Angular templates are\n * wrapped by zone.js, so an event dispatched while the element is being inserted (which happens\n * in the middle of change detection, e.g. while a child grid is created) would run as a separate\n * zone task: when it is the outermost task it drains the microtask queue and triggers a\n * synchronous application tick, re-entering change detection.\n *\n * @hidden @internal\n */\nexport interface IgxLifecyclePlaceholderElement extends HTMLElement {\n    /** Invoked when the element gets connected to the DOM. */\n    onConnected?: () => void;\n    /** Invoked when the element gets disconnected from the DOM. */\n    onDisconnected?: () => void;\n}\n\n/** @hidden @internal */\nexport function registerLifecyclePlaceholderElement(): void {\n    if (typeof customElements === 'undefined' || typeof HTMLElement === 'undefined' ||\n        customElements.get(LIFECYCLE_PLACEHOLDER_TAG)) {\n        return;\n    }\n\n    class LifecyclePlaceholderElement extends HTMLElement implements IgxLifecyclePlaceholderElement {\n        // Declared only (no emitted field initializers), so callbacks assigned before the element\n        // is upgraded are not overwritten by the upgrade.\n        declare public onConnected?: () => void;\n        declare public onDisconnected?: () => void;\n\n        public connectedCallback(): void {\n            this.onConnected?.();\n        }\n\n        public disconnectedCallback(): void {\n            this.onDisconnected?.();\n        }\n    }\n\n    customElements.define(LIFECYCLE_PLACEHOLDER_TAG, LifecyclePlaceholderElement);\n}\n","import {\n    AfterContentInit,\n    AfterViewInit,\n    booleanAttribute,\n    ChangeDetectionStrategy,\n    ChangeDetectorRef,\n    Component,\n    ContentChildren,\n    createComponent,\n    CUSTOM_ELEMENTS_SCHEMA,\n    DoCheck,\n    ElementRef,\n    EnvironmentInjector,\n    HostBinding,\n    Input,\n    OnDestroy,\n    OnInit,\n    QueryList,\n    reflectComponentType,\n    SimpleChanges,\n    TemplateRef,\n    ViewChild,\n    ViewChildren,\n    ViewContainerRef,\n    inject,\n    ViewEncapsulation,\n} from '@angular/core';\nimport { NgClass, NgTemplateOutlet, NgStyle } from '@angular/common';\n\nimport { IgxHierarchicalGridAPIService } from './hierarchical-grid-api.service';\nimport { IgxRowIslandComponent } from './row-island.component';\nimport { IgxFilteringService, IgxGridNavigationService, IgxGridValidationService } from 'igniteui-angular/grids/core';\nimport { IgxColumnComponent, } from 'igniteui-angular/grids/core';\nimport { IgxHierarchicalGridNavigationService } from './hierarchical-grid-navigation.service';\nimport { IgxGridSummaryService } from 'igniteui-angular/grids/core';\nimport { IgxHierarchicalGridBaseDirective } from './hierarchical-grid-base.directive';\nimport { takeUntil } from 'rxjs/operators';\nimport { CellType, GridType, IGX_GRID_BASE, IGX_GRID_SERVICE_BASE, RowType } from 'igniteui-angular/grids/core';\nimport { IgxRowIslandAPIService } from './row-island-api.service';\nimport { IgxGridCRUDService } from 'igniteui-angular/grids/core';\nimport { IgxHierarchicalGridRow } from 'igniteui-angular/grids/core';\nimport { IgxGridCell } from 'igniteui-angular/grids/core';\nimport type { IgxPaginatorComponent } from 'igniteui-angular/paginator';\nimport { IgxColumnResizingService } from 'igniteui-angular/grids/core';\nimport { IgxGridExcelStyleFilteringComponent } from 'igniteui-angular/grids/core';\nimport { IgxGridHierarchicalPipe, IgxGridHierarchicalPagingPipe } from './hierarchical-grid.pipes';\nimport { IgxSummaryDataPipe } from 'igniteui-angular/grids/core';\nimport { IgxGridTransactionPipe, IgxHasVisibleColumnsPipe, IgxGridRowPinningPipe, IgxGridAddRowPipe, IgxGridRowClassesPipe, IgxGridRowStylesPipe, IgxStringReplacePipe } from 'igniteui-angular/grids/core';\nimport { IgxGridColumnResizerComponent } from 'igniteui-angular/grids/core';\nimport { IgxRowEditTabStopDirective } from 'igniteui-angular/grids/core';\nimport { IgxSummaryRowComponent } from 'igniteui-angular/grids/core';\nimport { IgxHierarchicalRowComponent } from './hierarchical-row.component';\nimport { IgxColumnMovingDropDirective } from 'igniteui-angular/grids/core';\nimport { IgxGridDragSelectDirective } from 'igniteui-angular/grids/core';\nimport { IgxGridBodyDirective } from 'igniteui-angular/grids/core';\nimport { IgxGridHeaderRowComponent } from 'igniteui-angular/grids/core';\nimport { IgxGridSelectionService } from 'igniteui-angular/grids/core';\nimport { IForOfState, IgxButtonDirective, IgxForOfScrollSyncService, IgxForOfSyncService, IgxGridForOfDirective, IgxRippleDirective, IgxScrollInertiaDirective, IgxTemplateOutletDirective, IgxToggleDirective, IViewChangeEventArgs } from 'igniteui-angular/directives';\nimport { IgxCircularProgressBarComponent } from 'igniteui-angular/progressbar';\nimport { IgxSnackbarComponent } from 'igniteui-angular/snackbar';\nimport { IgxIconComponent } from 'igniteui-angular/icon';\nimport { EntityType, FieldType, IFilteringExpressionsTree, IgxOverlayOutletDirective, flatten, IGridResourceStrings } from 'igniteui-angular/core';\nimport { IgxPaginatorToken } from 'igniteui-angular/paginator';\nimport { IgxGridCellMergePipe, IgxGridComponent, IgxGridFilteringPipe, IgxGridSortingPipe, IgxGridUnmergeActivePipe } from 'igniteui-angular/grids/grid';\nimport { IgxLifecyclePlaceholderElement, registerLifecyclePlaceholderElement } from './lifecycle-placeholder-element';\n\nlet NEXT_ID = 0;\n\n/**\n * @hidden @internal\n */\n@Component({\n    changeDetection: ChangeDetectionStrategy.OnPush,\n    selector: 'igx-child-grid-row',\n    templateUrl: './child-grid-row.component.html',\n    encapsulation: ViewEncapsulation.None,\n    imports: [NgClass]\n})\nexport class IgxChildGridRowComponent implements AfterViewInit, OnInit {\n    /* blazorSuppress */\n    public readonly gridAPI = inject<IgxHierarchicalGridAPIService>(IGX_GRID_SERVICE_BASE);\n    /* blazorSuppress */\n    public element = inject<ElementRef<HTMLElement>>(ElementRef);\n    /* blazorSuppress */\n    public cdr = inject(ChangeDetectorRef);\n\n    private envInjector = inject(EnvironmentInjector);\n\n    @Input()\n    public layout!: IgxRowIslandComponent;\n\n    /**\n     * @hidden\n     */\n    public get parentHasScroll() {\n        return !this.parentGrid.verticalScrollContainer.dc.instance.notVirtual;\n    }\n\n\n    /**\n     * @hidden\n     */\n    @Input()\n    public parentGridID!: string;\n\n    /**\n     *  The data passed to the row component.\n     *\n     * ```typescript\n     * // get the row data for the first selected row\n     * let selectedRowData = this.grid.selectedRows[0].data;\n     * ```\n     */\n    @Input()\n    public get data(): any {\n        return this._data || [];\n    }\n\n    public set data(value: any) {\n        this._data = value;\n        if (this.hGrid && !this.hGrid.dataSetByUser) {\n            this.hGrid.setDataInternal(this._data.childGridsData[this.layout.key]);\n        }\n    }\n\n    /**\n     * The index of the row.\n     *\n     * ```typescript\n     * // get the index of the second selected row\n     * let selectedRowIndex = this.grid.selectedRows[1].index;\n     * ```\n     */\n    @Input()\n    public index!: number;\n\n    /* blazorSuppress */\n    @ViewChild('container', { read: ViewContainerRef, static: true })\n    public container!: ViewContainerRef;\n\n    /**\n     * @hidden\n     */\n    public hGrid!: IgxHierarchicalGridComponent;\n\n    /* blazorSuppress */\n    /**\n     * Get a reference to the grid that contains the selected row.\n     *\n     * ```typescript\n     * handleRowSelection(event) {\n     *  // the grid on which the rowSelected event was triggered\n     *  const grid = event.row.grid;\n     * }\n     * ```\n     *\n     * ```html\n     *  <igx-grid\n     *    [data]=\"data\"\n     *    (rowSelected)=\"handleRowSelection($event)\">\n     *  </igx-grid>\n     * ```\n     */\n    // TODO: Refactor\n    public get parentGrid(): IgxHierarchicalGridComponent {\n        return this.gridAPI.grid as IgxHierarchicalGridComponent;\n    }\n\n    @HostBinding('attr.aria-level')\n    public get level() {\n        return this.layout.level;\n    }\n\n    /**\n     * The native DOM element representing the row. Could be null in certain environments.\n     *\n     * ```typescript\n     * // get the nativeElement of the second selected row\n     * let selectedRowNativeElement = this.grid.selectedRows[1].nativeElement;\n     * ```\n     */\n    public get nativeElement() {\n        return this.element.nativeElement;\n    }\n\n    /**\n     * Returns whether the row is expanded.\n     * ```typescript\n     * const RowExpanded = this.grid1.rowList.first.expanded;\n     * ```\n     */\n    public expanded = false;\n\n    private _data: any;\n\n    /**\n     * @hidden\n     */\n    public ngOnInit() {\n        // Create the child grid detached and only insert it into the container once it is fully set up.\n        // Inserting it attaches its elements to the DOM, which may synchronously run arbitrary code\n        // (e.g. custom element reactions) that can re-enter change detection and reach this row's\n        // ngAfterViewInit, so `hGrid` must already be assigned and configured at that point.\n        const ref = createComponent(IgxHierarchicalGridComponent, {\n            environmentInjector: this.envInjector,\n            elementInjector: this.container.injector\n        });\n        this.hGrid = ref.instance;\n        this.hGrid.setDataInternal(this.data.childGridsData[this.layout.key]);\n        (this.hGrid.nativeElement as any)[\"__componentRef\"] = ref;\n        this.layout.layoutChange.subscribe((ch) => {\n            this._handleLayoutChanges(ch);\n        });\n        const changes = this.layout.initialChanges;\n        changes.forEach(change => {\n            this._handleLayoutChanges(change);\n        });\n        this.hGrid.parent = this.parentGrid;\n        this.hGrid.parentIsland = this.layout;\n        this.hGrid.childRow = this;\n        // handler logic that re-emits hgrid events on the row island\n        this.setupEventEmitters();\n        this.container.insert(ref.hostView);\n        this.layout.gridCreated.emit({\n            owner: this.layout,\n            parentID: this.data.rowID,\n            grid: this.hGrid,\n            parentRowData: this.data.parentRowData,\n        });\n    }\n\n    /**\n     * @hidden\n     */\n    public ngAfterViewInit() {\n        this.hGrid.childLayoutList = this.layout.children;\n        const layouts = this.hGrid.childLayoutList.toArray();\n        layouts.forEach((l) => this.hGrid.gridAPI.registerChildRowIsland(l));\n        this.parentGrid.gridAPI.registerChildGrid(this.data.rowID, this.layout.key, this.hGrid);\n        this.layout.rowIslandAPI.registerChildGrid(this.data.rowID, this.hGrid);\n\n        this.layout.gridInitialized.emit({\n            owner: this.layout,\n            parentID: this.data.rowID,\n            grid: this.hGrid,\n            parentRowData: this.data.parentRowData,\n        });\n\n        this.hGrid.cdr.detectChanges();\n    }\n\n    protected setupEventEmitters() {\n        const destructor = takeUntil(this.hGrid.destroy$);\n\n        const mirror = reflectComponentType(IgxGridComponent);\n        // exclude outputs related to two-way binding functionality\n        const inputNames = mirror!.inputs.map(input => input.propName);\n        const outputs = mirror!.outputs.filter(o => {\n            const matchingInputPropName = o.propName.slice(0, o.propName.indexOf('Change'));\n            return inputNames.indexOf(matchingInputPropName) === -1;\n        });\n\n        // TODO: Skip the `rendered` output. Rendered should be called once per grid.\n        outputs.filter(o => o.propName !== 'rendered').forEach(output => {\n            if ((this.hGrid as any)[output.propName]) {\n                (this.hGrid as any)[output.propName].pipe(destructor).subscribe((args: any) => {\n                    if (!args) {\n                        args = {};\n                    }\n                    args.owner = this.hGrid;\n                    (this.layout as any)[output.propName].emit(args);\n                });\n            }\n        });\n    }\n\n\n    protected _handleLayoutChanges(changes: SimpleChanges) {\n        for (const change in changes) {\n            if (changes.hasOwnProperty(change)) {\n                (this.hGrid as any)[change] = changes[change].currentValue;\n            }\n        }\n    }\n}\n\n/* wcAlternateName: HierarchicalGridBase */\n/* blazorIndirectRender\n   blazorComponent\n   omitModule\n   wcSkipComponentSuffix */\n/**\n * Hierarchical grid\n *\n * @igxModule IgxHierarchicalGridModule\n *\n */\n@Component({\n    changeDetection: ChangeDetectionStrategy.OnPush,\n    selector: 'igx-hierarchical-grid',\n    templateUrl: 'hierarchical-grid.component.html',\n    encapsulation: ViewEncapsulation.None,\n    providers: [\n        IgxGridCRUDService,\n        IgxGridValidationService,\n        IgxGridSelectionService,\n        { provide: IGX_GRID_SERVICE_BASE, useClass: IgxHierarchicalGridAPIService },\n        { provide: IGX_GRID_BASE, useExisting: IgxHierarchicalGridComponent },\n        IgxGridSummaryService,\n        IgxFilteringService,\n        IgxGridNavigationService,\n        IgxHierarchicalGridNavigationService,\n        IgxColumnResizingService,\n        IgxForOfSyncService,\n        IgxForOfScrollSyncService,\n        IgxRowIslandAPIService\n    ],\n    imports: [\n        NgClass,\n        NgTemplateOutlet,\n        NgStyle,\n        IgxGridHeaderRowComponent,\n        IgxGridBodyDirective,\n        IgxGridDragSelectDirective,\n        IgxColumnMovingDropDirective,\n        IgxGridForOfDirective,\n        IgxTemplateOutletDirective,\n        IgxHierarchicalRowComponent,\n        IgxOverlayOutletDirective,\n        IgxToggleDirective,\n        IgxCircularProgressBarComponent,\n        IgxSnackbarComponent,\n        IgxSummaryRowComponent,\n        IgxButtonDirective,\n        IgxRippleDirective,\n        IgxIconComponent,\n        IgxRowEditTabStopDirective,\n        IgxGridColumnResizerComponent,\n        IgxChildGridRowComponent,\n        IgxGridSortingPipe,\n        IgxGridFilteringPipe,\n        IgxGridTransactionPipe,\n        IgxHasVisibleColumnsPipe,\n        IgxGridRowPinningPipe,\n        IgxGridAddRowPipe,\n        IgxGridRowClassesPipe,\n        IgxGridRowStylesPipe,\n        IgxSummaryDataPipe,\n        IgxGridHierarchicalPipe,\n        IgxGridHierarchicalPagingPipe,\n        IgxStringReplacePipe,\n        IgxGridCellMergePipe,\n        IgxScrollInertiaDirective,\n        IgxGridUnmergeActivePipe\n    ],\n    schemas: [CUSTOM_ELEMENTS_SCHEMA]\n})\nexport class IgxHierarchicalGridComponent extends IgxHierarchicalGridBaseDirective\n    implements GridType, AfterViewInit, AfterContentInit, OnInit, OnDestroy, DoCheck {\n\n    /**\n     * @hidden @internal\n     */\n    @HostBinding('attr.role')\n    public role = 'grid';\n\n    /**\n     * @hidden\n     */\n    @ContentChildren(IgxRowIslandComponent, { read: IgxRowIslandComponent, descendants: false })\n    public childLayoutList!: QueryList<IgxRowIslandComponent>;\n\n    /**\n     * @hidden\n     */\n    @ContentChildren(IgxRowIslandComponent, { read: IgxRowIslandComponent, descendants: true })\n    public allLayoutList!: QueryList<IgxRowIslandComponent>;\n\n    /** @hidden @internal */\n    @ContentChildren(IgxPaginatorToken, { descendants: true })\n    public paginatorList!: QueryList<IgxPaginatorComponent>;\n\n    /** @hidden @internal */\n    @ViewChild('toolbarOutlet', { read: ViewContainerRef })\n    public toolbarOutlet!: ViewContainerRef;\n\n    /** @hidden @internal */\n    @ViewChild('paginatorOutlet', { read: ViewContainerRef })\n    public paginatorOutlet!: ViewContainerRef;\n    /**\n     * @hidden\n     */\n    @ViewChildren(IgxTemplateOutletDirective, { read: IgxTemplateOutletDirective })\n    public templateOutlets!: QueryList<any>;\n\n    /**\n     * @hidden\n     */\n    @ViewChildren(IgxChildGridRowComponent)\n    public hierarchicalRows!: QueryList<IgxChildGridRowComponent>;\n\n    @ViewChild('hierarchical_record_template', { read: TemplateRef, static: true })\n    protected hierarchicalRecordTemplate!: TemplateRef<any>;\n\n    @ViewChild('child_record_template', { read: TemplateRef, static: true })\n    protected childTemplate!: TemplateRef<any>;\n\n    @ViewChild('lifecyclePlaceholder', { read: ElementRef, static: true })\n    protected lifecyclePlaceholder?: ElementRef<IgxLifecyclePlaceholderElement>;\n\n    // @ViewChild('headerHierarchyExpander', { read: ElementRef, static: true })\n    protected get headerHierarchyExpander() {\n        return this.theadRow?.headerHierarchyExpander;\n    }\n\n    /**\n     * @hidden\n     */\n    public childLayoutKeys: any[] = [];\n\n    /** @hidden @internal */\n    public dataSetByUser = false;\n\n    /**\n     * @hidden\n     */\n    public highlightedRowID = null;\n\n    /**\n     * @hidden\n     */\n    public updateOnRender = false;\n\n    /**\n     * @hidden\n     */\n    public parent: IgxHierarchicalGridComponent = null!;\n\n    /**\n     * @hidden @internal\n     */\n    public childRow!: IgxChildGridRowComponent;\n\n    /** @hidden @internal */\n    public override get actionStrip() {\n        return this.parentIsland ? this.parentIsland.actionStrip : super.actionStrip;\n    }\n\n    /** @hidden @internal */\n    /* blazorCSSuppress */\n    public override get advancedFilteringExpressionsTree(): IFilteringExpressionsTree {\n        return super.advancedFilteringExpressionsTree;\n    }\n    /** @hidden @internal */\n    public override set advancedFilteringExpressionsTree(value: IFilteringExpressionsTree) {\n        if (!this._hGridSchema) {\n            this._hGridSchema = this.generateSchema();\n        }\n        super.advancedFilteringExpressionsTree = value;\n    }\n\n    private _data: any;\n    private _schemaSetByUser = false;\n    private h_id = `igx-hierarchical-grid-${NEXT_ID++}`;\n    private childGridTemplates: Map<any, any> = new Map();\n\n    /**\n     * Gets/Sets the value of the `id` attribute.\n     *\n     * @remarks\n     * If not provided it will be automatically generated.\n     * @example\n     * ```html\n     * <igx-hierarchical-grid [id]=\"'igx-hgrid-1'\" [data]=\"Data\" [autoGenerate]=\"true\"></igx-hierarchical-grid>\n     * ```\n     */\n    @HostBinding('attr.id')\n    @Input()\n    public get id(): string {\n        return this.h_id;\n    }\n    public set id(value: string) {\n        this.h_id = value;\n    }\n\n    /* treatAsRef */\n    /**\n     * Gets/Sets the array of data that populates the component.\n     * ```html\n     * <igx-hierarchical-grid [data]=\"Data\" [autoGenerate]=\"true\"></igx-hierarchical-grid>\n     * ```\n     *\n     * @memberof IgxHierarchicalGridComponent\n     */\n    @Input()\n    public set data(value: any[] | null) {\n        this.setDataInternal(value);\n        this.dataSetByUser = true;\n        this.checkPrimaryKeyField();\n    }\n\n    /**\n     * Returns an array of data set to the hierarchical grid.\n     * ```typescript\n     * let filteredData = this.grid.filteredData;\n     * ```\n     *\n     * @memberof IgxHierarchicalGridComponent\n     */\n    public get data(): any[] | null {\n        return this._data;\n    }\n\n    /** @hidden @internal */\n    public override get paginator() {\n        // Child grid paginators are rendered in the grid footer from the row island template.\n        // Match them by DOM containment rather than layout, as child grids scrolled out of view are detached from the DOM.\n        const footer = this.footer?.nativeElement as HTMLElement | undefined;\n        return (!this.parentIsland && this.paginationComponents?.first) || this.rootGrid.paginatorList?.find((pg) =>\n            !!footer?.contains(pg.nativeElement));\n    }\n\n    /** @hidden @internal */\n    public override get excelStyleFilteringComponent(): IgxGridExcelStyleFilteringComponent {\n        return this.parentIsland ?\n            this.parentIsland.excelStyleFilteringComponents.first :\n            super.excelStyleFilteringComponent;\n    }\n\n    /**\n     * Gets/Sets the total number of records in the data source.\n     *\n     * @remarks\n     * This property is required for remote grid virtualization to function when it is bound to remote data.\n     * @example\n     * ```typescript\n     * const itemCount = this.grid1.totalItemCount;\n     * this.grid1.totalItemCount = 55;\n     * ```\n     */\n    @Input()\n    public set totalItemCount(count) {\n        this.verticalScrollContainer.totalItemCount = count;\n    }\n\n    public get totalItemCount() {\n        return this.verticalScrollContainer.totalItemCount;\n    }\n\n    /**\n     * Sets if all immediate children of the hierarchical grid should be expanded/collapsed.\n     * Default value is false.\n     * ```html\n     * <igx-hierarchical-grid [id]=\"'igx-grid-1'\" [data]=\"Data\" [autoGenerate]=\"true\" [expandChildren]=\"true\"></igx-hierarchical-grid>\n     * ```\n     *\n     * @memberof IgxHierarchicalGridComponent\n     */\n    @Input({ transform: booleanAttribute })\n    public set expandChildren(value: boolean) {\n        this._defaultExpandState = value;\n        this.expansionStates = new Map<any, boolean>();\n    }\n\n    /**\n     * Gets if all immediate children of the hierarchical grid previously have been set to be expanded/collapsed.\n     * If previously set and some rows have been manually expanded/collapsed it will still return the last set value.\n     * ```typescript\n     * const expanded = this.grid.expandChildren;\n     * ```\n     *\n     * @memberof IgxHierarchicalGridComponent\n     */\n    public get expandChildren(): boolean {\n        return this._defaultExpandState;\n    }\n\n    /* blazorSuppress */\n    /**\n     * Gets/Sets the schema for the hierarchical grid.\n     * This schema defines the structure and properties of the data displayed in the grid.\n     * @Input()\n     * @param {EntityType[]} entities - An array of EntityType objects representing the grid's schema.\n     * @remarks\n     * When not set, the schema is generated from the filterable columns of the grid and from the row islands.\n     * The fields of auto-generated row islands are resolved from the child data and are updated when\n     * the child grids generate their columns, e.g. when the child data is loaded on demand.\n     * @example\n     * ```typescript\n     * const schema = this.grid.schema;\n     * this.grid.schema = [{ name: 'Products', fields: [...], childEntities: [...] }];\n     * ```\n     * @deprecated in version 22.3.0. Define the columns and the row islands of the grid instead,\n     * the schema is generated from them.\n     */\n    @Input()\n    public set schema(entities: EntityType[]) {\n        this._hGridSchema = entities;\n        this._schemaSetByUser = !!entities;\n    }\n\n    /* blazorSuppress */\n    public get schema() {\n        if (!this._hGridSchema) {\n            this._hGridSchema = this.generateSchema();\n        }\n\n        return this._hGridSchema;\n    }\n\n    /* blazorSuppress */\n    /**\n     * Gets/Sets the resource strings.\n     *\n     * @remarks\n     * By default it uses EN resources.\n     */\n    @Input()\n    public override set resourceStrings(value: IGridResourceStrings) {\n        super.resourceStrings = value;\n        if (!this.parent) {\n            this.gridAPI.getChildGrids(true).forEach((grid) => {\n                grid.resourceStrings = value;\n            });\n        }\n    }\n\n    /* blazorSuppress */\n    public override get resourceStrings(): IGridResourceStrings {\n        return super.resourceStrings;\n    }\n\n    /**\n     * Gets the unique identifier of the parent row. It may be a `string` or `number` if `primaryKey` of the\n     * parent grid is set or an object reference of the parent record otherwise.\n     * ```typescript\n     * const foreignKey = this.grid.foreignKey;\n     * ```\n     *\n     * @memberof IgxHierarchicalGridComponent\n     */\n    public get foreignKey() {\n        if (!this.parent) {\n            return null;\n        }\n        return this.parent.gridAPI.getParentRowId(this);\n    }\n\n    /**\n     * @hidden\n     */\n    public get hasExpandableChildren() {\n        return !!this.childLayoutKeys.length;\n    }\n\n    /**\n     * @hidden\n     */\n    public get resolveRowEditContainer() {\n        if (this.parentIsland && this.parentIsland.rowEditCustom) {\n            return this.parentIsland.rowEditContainer;\n        }\n        return this.rowEditContainer;\n    }\n\n    /**\n     * @hidden\n     */\n    public get resolveRowEditActions() {\n        return this.parentIsland ? this.parentIsland.rowEditActionsTemplate : this.rowEditActionsTemplate;\n    }\n\n    /**\n     * @hidden\n     */\n    public get resolveRowEditText() {\n        return this.parentIsland ? this.parentIsland.rowEditTextTemplate : this.rowEditTextTemplate;\n    }\n\n    /** @hidden */\n    public override hideActionStrip() {\n        if (!this.parent) {\n            // hide child layout actions strips when\n            // moving outside root grid.\n            super.hideActionStrip();\n            this.allLayoutList.forEach(ri => {\n                ri.actionStrip?.hide();\n            });\n        }\n    }\n\n    /**\n     * @hidden\n     */\n    public override ngOnInit() {\n        if (this.platform.isBrowser) {\n            registerLifecyclePlaceholderElement();\n            this.attachLifecyclePlaceholderCallbacks();\n        }\n        // this.expansionStatesChange.pipe(takeUntil(this.destroy$)).subscribe((value: Map<any, boolean>) => {\n        //     const res = Array.from(value.entries()).filter(({1: v}) => v === true).map(([k]) => k);\n        // });\n        this.batchEditing = !!this.rootGrid.batchEditing;\n        if (this.rootGrid !== this) {\n            this.rootGrid.batchEditingChange!.pipe(takeUntil(this.destroy$)).subscribe((val: boolean) => {\n                this.batchEditing = val;\n            });\n        }\n        super.ngOnInit();\n    }\n\n    // Invoked when the grid gets connected back to the DOM.\n    // Used to determine when to reopen a previously closed row editing overlay.\n    protected onLifecyclePlaceholderConnected(): void {\n        if (this.rowEditable && this.crudService.rowInEditMode && this.rowEditingOverlay &&\n            this.rowEditingOverlay.collapsed) {\n            // Row is in edit mode, but overlay is closed - reopen.\n            this.openRowOverlay(this.crudService.rowInEditMode.key);\n            this.cdr.markForCheck();\n        }\n    }\n\n    // Invoked when the grid gets disconnected from the DOM, for example as a result of virtualization or caching.\n    // Used to determine when to close the row editing overlay.\n    protected onLifecyclePlaceholderDisconnected(): void {\n        if (this.rowEditable && this.crudService.rowInEditMode && this.rowEditingOverlay) {\n            // disconnected from DOM (possibly cached) & row was in edit mode - close overlay.\n            this.closeRowEditingOverlay();\n            this.cdr.markForCheck();\n        }\n    }\n\n    /**\n     * Connects the lifecycle placeholder to the grid through direct callbacks rather than template\n     * event bindings. The placeholder gets connected while the grid view is inserted in the DOM, which\n     * happens during change detection (e.g. when a child grid is created by its child row). A zone.js\n     * wrapped event listener invoked at that point runs as a new outermost zone task, which drains the\n     * microtask queue and synchronously ticks the application, re-entering change detection.\n     */\n    private attachLifecyclePlaceholderCallbacks(): void {\n        const placeholder = this.lifecyclePlaceholder?.nativeElement;\n        if (!placeholder) {\n            return;\n        }\n        placeholder.onConnected = () => this.onLifecyclePlaceholderConnected();\n        placeholder.onDisconnected = () => this.onLifecyclePlaceholderDisconnected();\n    }\n\n    /**\n     * @hidden\n     */\n    public override ngAfterViewInit() {\n        super.ngAfterViewInit();\n        this.verticalScrollContainer.beforeViewDestroyed.pipe(takeUntil(this.destroy$)).subscribe((view) => {\n            const rowData = view.context.$implicit;\n            if (this.isChildGridRecord(rowData)) {\n                const cachedData = this.childGridTemplates.get(rowData.rowID);\n                if (cachedData) {\n                    const tmlpOutlet = cachedData.owner;\n                    tmlpOutlet._viewContainerRef.detach(0);\n                }\n            }\n        });\n\n        if (this.parent) {\n            this.childLayoutKeys = this.parentIsland.children.map((item) => item.key);\n            this._resourceStrings = this.rootGrid._resourceStrings;\n        }\n\n        this.headSelectorsTemplates = this.parentIsland ?\n            this.parentIsland.headSelectorsTemplates :\n            this.headSelectorsTemplates;\n\n        this.rowSelectorsTemplates = this.parentIsland ?\n            this.parentIsland.rowSelectorsTemplates :\n            this.rowSelectorsTemplates;\n        this.dragIndicatorIconTemplate = this.parentIsland ?\n            this.parentIsland.dragIndicatorIconTemplate :\n            this.dragIndicatorIconTemplate;\n        this.rowExpandedIndicatorTemplate = this.rootGrid.rowExpandedIndicatorTemplate;\n        this.rowCollapsedIndicatorTemplate = this.rootGrid.rowCollapsedIndicatorTemplate;\n        this.headerCollapsedIndicatorTemplate = this.rootGrid.headerCollapsedIndicatorTemplate;\n        this.headerExpandedIndicatorTemplate = this.rootGrid.headerExpandedIndicatorTemplate;\n        this.excelStyleHeaderIconTemplate = this.rootGrid.excelStyleHeaderIconTemplate;\n        this.sortAscendingHeaderIconTemplate = this.rootGrid.sortAscendingHeaderIconTemplate;\n        this.sortDescendingHeaderIconTemplate = this.rootGrid.sortDescendingHeaderIconTemplate;\n        this.sortHeaderIconTemplate = this.rootGrid.sortHeaderIconTemplate;\n        this.hasChildrenKey = this.parentIsland ?\n            this.parentIsland.hasChildrenKey || this.rootGrid.hasChildrenKey :\n            this.rootGrid.hasChildrenKey;\n        this.showExpandAll = this.parentIsland ?\n            this.parentIsland.showExpandAll : this.rootGrid.showExpandAll!;\n    }\n\n    /**\n     * @hidden\n     */\n    public override ngAfterContentInit() {\n        this.updateColumnList(false);\n        this.childLayoutKeys = this.parent ?\n            this.parentIsland.children.map((item) => item.key) :\n            this.childLayoutKeys = this.childLayoutList.map((item) => item.key);\n        this.childLayoutList.notifyOnChanges();\n        this.childLayoutList.changes.pipe(takeUntil(this.destroy$)).subscribe(() =>\n            this.onRowIslandChange()\n        );\n        super.ngAfterContentInit();\n    }\n\n    /**\n     * Returns the `RowType` by index.\n     *\n     * @example\n     * ```typescript\n     * const myRow = this.grid1.getRowByIndex(1);\n     * ```\n     * @param index\n     */\n    public getRowByIndex(index: number): RowType {\n        if (index < 0 || index >= this.dataView.length) {\n            return undefined!;\n        }\n        return this.createRow(index);\n    }\n\n    /**\n     * Returns the `RowType` by key.\n     *\n     * @example\n     * ```typescript\n     * const myRow = this.grid1.getRowByKey(1);\n     * ```\n     * @param key\n     */\n    public getRowByKey(key: any): RowType {\n        const data = this.dataView;\n        const rec = this.primaryKey ?\n            data.find(record => record[this.primaryKey] === key) :\n            data.find(record => record === key);\n        const index = data.indexOf(rec);\n        if (index < 0 || index > data.length) {\n            return undefined!;\n        }\n\n        return new IgxHierarchicalGridRow(this, index, rec);\n    }\n\n    /**\n     * @hidden @internal\n     */\n    public allRows(): RowType[] {\n        return this.dataView.map((_rec, index) => this.createRow(index));\n    }\n\n    /**\n     * Returns the collection of hierarchical grid rows for current page.\n     *\n     * @hidden @internal\n     */\n    public dataRows(): RowType[] {\n        return this.allRows().filter(row => row instanceof IgxHierarchicalGridRow);\n    }\n\n    /**\n     * Returns an array of the selected grid cells.\n     *\n     * @example\n     * ```typescript\n     * const selectedCells = this.grid.selectedCells;\n     * ```\n     */\n    public get selectedCells(): CellType[] {\n        return this.dataRows().map((row) => row.cells!.filter((cell) => cell.selected))\n            .reduce((a, b) => a.concat(b), []);\n    }\n\n    /**\n     *\n     * Returns an array of the current cell selection in the form of `[{ column.field: cell.value }, ...]`.\n     *\n     * @remarks\n     * If `formatters` is enabled, the cell value will be formatted by its respective column formatter (if any).\n     * If `headers` is enabled, it will use the column header (if any) instead of the column field.\n     */\n    public override getSelectedData(formatters = false, headers = false): any[] {\n        const source: any[] = [];\n\n        const process = (record: any) => {\n            if (this.isChildGridRecord(record)) {\n                source.push(null);\n                return;\n            }\n            source.push(this.isGhostRecord(record) || this.isRecordMerged(record) ? record.recordRef : record);\n        };\n\n        this.dataView.forEach(process);\n        return this.extractDataFromSelection(source, formatters, headers);\n    }\n\n    /**\n     * Returns a `CellType` object that matches the conditions.\n     *\n     * @example\n     * ```typescript\n     * const myCell = this.grid1.getCellByColumn(2, \"UnitPrice\");\n     * ```\n     * @param rowIndex\n     * @param columnField\n     */\n    public getCellByColumn(rowIndex: number, columnField: string): CellType {\n        const row = this.getRowByIndex(rowIndex);\n        const column = this.columns.find((col) => col.field === columnField);\n        if (row && row instanceof IgxHierarchicalGridRow && column) {\n            return new IgxGridCell(this, rowIndex, column);\n        }\n        return undefined!;\n    }\n\n    /**\n     * Returns a `CellType` object that matches the conditions.\n     *\n     * @remarks\n     * Requires that the primaryKey property is set.\n     * @example\n     * ```typescript\n     * grid.getCellByKey(1, 'index');\n     * ```\n     * @param rowSelector match any rowID\n     * @param columnField\n     */\n    public getCellByKey(rowSelector: any, columnField: string): CellType {\n        const row = this.getRowByKey(rowSelector);\n        const column = this.columns.find((col) => col.field === columnField);\n        if (row && column) {\n            return new IgxGridCell(this, row.index, column);\n        }\n        return undefined!;\n    }\n\n    public override pinRow(rowID: any, index?: number): boolean {\n        const row = this.getRowByKey(rowID);\n        return super.pinRow(rowID, index, row);\n    }\n\n    /** @hidden @internal */\n    public setDataInternal(value: any) {\n        const oldData = this._data;\n        this._data = value || [];\n        this.summaryService.clearSummaryCache();\n        if (!this._init) {\n            this.validation.updateAll(this._data);\n        }\n        if (this.autoGenerate && this._data.length > 0 && this.shouldRecreateColumns(oldData, this._data) && this.gridAPI.grid) {\n            this.setupColumns();\n            this.reflow();\n        }\n        this.cdr.markForCheck();\n        if (this.parent && (this.height === null || this.height.indexOf('%') !== -1)) {\n            // If the height will change based on how much data there is, recalculate sizes in igxForOf.\n            this.notifyChanges(true);\n        }\n    }\n\n    public override unpinRow(rowID: any): boolean {\n        const row = this.getRowByKey(rowID);\n        return super.unpinRow(rowID, row);\n    }\n\n    /**\n     * @hidden @internal\n     */\n    public dataLoading(event: IForOfState) {\n        this.dataPreLoad.emit(event);\n    }\n\n    /** @hidden */\n    public override featureColumnsWidth() {\n        return super.featureColumnsWidth(this.headerHierarchyExpander);\n    }\n\n    /**\n     * @hidden\n     */\n    public onRowIslandChange() {\n        if (this.parent) {\n            this.childLayoutKeys = this.parentIsland.children.filter(item => !(item as any)._destroyed).map((item) => item.key);\n        } else {\n            this.childLayoutKeys = this.childLayoutList.filter(item => !(item as any)._destroyed).map((item) => item.key);\n        }\n        if (!(this.cdr as any).destroyed) {\n            this.cdr.detectChanges();\n        }\n    }\n\n    /** @hidden @internal **/\n    public override ngOnDestroy() {\n        if (!this.parent) {\n            this.gridAPI.getChildGrids(true).forEach((grid) => {\n                if (!grid.childRow.cdr.destroyed) {\n                    grid.childRow.cdr.destroy();\n                }\n            });\n        }\n        if (this.parent && this.selectionService.activeElement) {\n            // in case selection is in destroyed child grid, selection should be cleared.\n            this._clearSeletionHighlights();\n        }\n        const placeholder = this.lifecyclePlaceholder?.nativeElement;\n        if (placeholder) {\n            placeholder.onConnected = undefined;\n            placeholder.onDisconnected = undefined;\n        }\n        super.ngOnDestroy();\n    }\n\n    /**\n     * @hidden\n     */\n    public isRowHighlighted(rowData: any) {\n        return this.highlightedRowID === rowData.rowID;\n    }\n\n    /**\n     * @hidden\n     */\n    public isHierarchicalRecord(record: any): boolean {\n        if (this.isGhostRecord(record)) {\n            record = record.recordRef;\n        }\n        return this.childLayoutList.length !== 0 && record[this.childLayoutList.first.key];\n    }\n\n    /**\n     * @hidden\n     */\n    public override isChildGridRecord(record: any): boolean {\n        // Can be null when there is defined layout but no child data was found\n        return record?.childGridsData !== undefined;\n    }\n\n    /**\n     * @hidden\n     */\n    public trackChanges(_index: number, rec: any) {\n        if (rec.childGridsData !== undefined) {\n            // if is child rec\n            return rec.rowID;\n        }\n        return rec;\n    }\n\n    /**\n     * @hidden\n     */\n    public getContext(rowData: any, rowIndex: number, pinned: boolean): any {\n        if (this.isChildGridRecord(rowData)) {\n            const cachedData = this.childGridTemplates.get(rowData.rowID);\n            if (cachedData) {\n                const view = cachedData.view;\n                const tmlpOutlet = cachedData.owner;\n                return {\n                    $implicit: rowData,\n                    moveView: view,\n                    owner: tmlpOutlet,\n                    index: this.dataView.indexOf(rowData)\n                };\n            } else {\n                // child rows contain unique grids, hence should have unique templates\n                return {\n                    $implicit: rowData,\n                    templateID: {\n                        type: 'childRow',\n                        id: rowData.rowID\n                    },\n                    index: this.dataView.indexOf(rowData)\n                };\n            }\n        } else {\n            return {\n                $implicit: this.isGhostRecord(rowData) || this.isRecordMerged(rowData) ? rowData.recordRef : rowData,\n                templateID: {\n                    type: 'dataRow',\n                    id: null\n                },\n                index: this.getDataViewIndex(rowIndex, pinned),\n                disabled: this.isGhostRecord(rowData),\n                metaData: this.isRecordMerged(rowData) ? rowData : null\n            };\n        }\n    }\n\n    /**\n     * @hidden\n     */\n    public get rootGrid(): GridType {\n        let currGrid = this as IgxHierarchicalGridComponent;\n        while (currGrid.parent) {\n            currGrid = currGrid.parent;\n        }\n        return currGrid;\n    }\n\n    /**\n     * @hidden\n     */\n    public get iconTemplate() {\n        const expanded = this.hasExpandedRecords() && this.hasExpandableChildren;\n        if (!expanded && this.showExpandAll) {\n            return this.headerCollapsedIndicatorTemplate || this.defaultCollapsedTemplate;\n        } else {\n            return this.headerExpandedIndicatorTemplate || this.defaultExpandedTemplate;\n        }\n    }\n\n    /**\n     * @hidden\n     * @internal\n     */\n    public override getDragGhostCustomTemplate(): TemplateRef<any> {\n        if (this.parentIsland) {\n            return this.parentIsland.getDragGhostCustomTemplate();\n        }\n        return super.getDragGhostCustomTemplate();\n    }\n\n    /**\n     * @hidden\n     * Gets the visible content height that includes header + tbody + footer.\n     * For hierarchical child grid it may be scrolled and not fully visible.\n     */\n    public override getVisibleContentHeight() {\n        let height = super.getVisibleContentHeight();\n        if (this.parent) {\n            const rootHeight = this.rootGrid.getVisibleContentHeight();\n            const topDiff = this.nativeElement.getBoundingClientRect().top - this.rootGrid.nativeElement.getBoundingClientRect().top;\n            height = rootHeight - topDiff > height ? height : rootHeight - topDiff;\n        }\n        return height;\n    }\n\n    /**\n     * @hidden\n     */\n    public toggleAll() {\n        const expanded = this.hasExpandedRecords() && this.hasExpandableChildren;\n        if (!expanded && this.showExpandAll) {\n            this.expandAll();\n        } else {\n            this.collapseAll();\n        }\n    }\n\n\n    /**\n     * @hidden\n     * @internal\n     */\n    public hasExpandedRecords() {\n        if (this.expandChildren) {\n            return true;\n        }\n        let hasExpandedEntry = false;\n        this.expansionStates.forEach(value => {\n            if (value) {\n                hasExpandedEntry = value;\n            }\n        });\n        return hasExpandedEntry;\n    }\n\n    public override getDefaultExpandState(record: any): boolean {\n        if (this.hasChildrenKey && !record[this.hasChildrenKey]) {\n            return false;\n        }\n        return this.expandChildren;\n\n    }\n\n    /**\n     * @hidden\n     */\n    public isExpanded(record: any): boolean {\n        return this.gridAPI.get_row_expansion_state(record);\n    }\n\n    /**\n     * @hidden\n     */\n    public viewCreatedHandler(args: IViewChangeEventArgs) {\n        if (this.isChildGridRecord(args.context.$implicit)) {\n            const key = args.context.$implicit.rowID;\n            this.childGridTemplates.set(key, args);\n        }\n    }\n\n    /**\n     * @hidden\n     */\n    public viewMovedHandler(args: IViewChangeEventArgs) {\n        if (this.isChildGridRecord(args.context.$implicit)) {\n            // view was moved, update owner in cache\n            const key = args.context.$implicit.rowID;\n            const cachedData = this.childGridTemplates.get(key);\n            cachedData.owner = args.owner;\n\n            this.childLayoutList.forEach((layout) => {\n                const relatedGrid = this.gridAPI.getChildGridByID(layout.key, args.context.$implicit.rowID);\n                if (relatedGrid && relatedGrid.updateOnRender) {\n                    // Detect changes if `expandChildren` has changed when the grid wasn't visible. This is for performance reasons.\n                    relatedGrid.notifyChanges(true);\n                    relatedGrid.updateOnRender = false;\n                }\n            });\n        }\n    }\n\n    /** @hidden @internal **/\n    public onContainerScroll() {\n        this.hideOverlays();\n    }\n\n    /**\n     * @hidden\n     */\n    public createRow(index: number, data?: any): RowType {\n        let row!: RowType;\n        const dataIndex = this._getDataViewIndex(index);\n        const rec: any = data ?? this.dataView[dataIndex];\n\n        if (!row && rec && !rec.childGridsData) {\n            row = new IgxHierarchicalGridRow(this as any, index, rec);\n        }\n\n        return row;\n    }\n\n    /** @hidden @internal */\n    public getChildGrids(inDeph?: boolean) {\n        return this.gridAPI.getChildGrids(inDeph);\n    }\n\n    protected override generateDataFields(data: any[]): string[] {\n        return super.generateDataFields(data).filter((field) => {\n            const layoutsList = this.parentIsland ? this.parentIsland.children : this.childLayoutList;\n            const keys = layoutsList.map((item) => item.key);\n            return keys.indexOf(field) === -1;\n        });\n    }\n\n    /**\n     * @hidden\n     */\n    protected override initColumns(collection: IgxColumnComponent[], cb: (args: any) => void = null!) {\n        if (collection.some((col) => col.columnLayout)) {\n            // invalid configuration - hierarchical grid should not allow column layouts\n            // remove column layouts\n            collection = collection.filter((col) => !col.columnLayout && !col.columnLayoutChild);\n        }\n        super.initColumns(collection, cb);\n    }\n\n    protected override setupColumns() {\n        if (this.parentIsland && this.parentIsland.childColumns.length > 0 && !this.autoGenerate) {\n            this.createColumnsList(this.parentIsland.childColumns.toArray());\n        } else {\n            super.setupColumns();\n            if (this.autoGenerate && this.columns.length > 0) {\n                this.updateGeneratedSchemaFields();\n            }\n        }\n    }\n\n    protected override getColumnList() {\n        const childLayouts = this.parent ? this.childLayoutList : this.allLayoutList;\n        const nestedColumns = childLayouts.map((layout) => layout.columnList.toArray());\n        const colsArray = ([] as IgxColumnComponent[]).concat.apply([], nestedColumns);\n        if (colsArray.length > 0) {\n            const topCols = this.columnList.filter((item) => colsArray.indexOf(item) === -1);\n            return topCols;\n        } else {\n            return this.columnList.toArray()\n        }\n    }\n\n    protected override onColumnsChanged() {\n        Promise.resolve().then(() => {\n            this.updateColumnList();\n            if (!this.parent) {\n                this.updateGeneratedSchemaFields();\n            }\n        });\n    }\n\n    protected override _shouldAutoSize(renderedHeight: number): boolean {\n        if (this.isPercentHeight && this.parent) {\n            return true;\n        }\n        return super._shouldAutoSize(renderedHeight);\n    }\n\n    private updateColumnList(recalcColSizes = true) {\n        const childLayouts = this.parent ? this.childLayoutList : this.allLayoutList;\n        const nestedColumns = childLayouts.map((layout) => layout.columnList.toArray());\n        const colsArray = ([] as IgxColumnComponent[]).concat.apply([], nestedColumns);\n        const colLength = this.columns.length;\n        const topCols = this.columnList.filter((item) => colsArray.indexOf(item) === -1);\n        if (topCols.length > 0) {\n            this.initColumns(topCols, (col: IgxColumnComponent) => this.columnInit.emit(col));\n            if (recalcColSizes && this.columns.length !== colLength) {\n                this.calculateGridSizes(false);\n            }\n        }\n    }\n\n    private _clearSeletionHighlights() {\n        [this.rootGrid, ...this.rootGrid.getChildGrids!(true)].forEach(grid => {\n            grid.selectionService.clear();\n            grid.selectionService.activeElement = null;\n            grid.nativeElement.classList.remove('igx-grid__tr--highlighted');\n            grid.highlightedRowID = null;\n            grid.cdr.markForCheck();\n        });\n    }\n\n    private generateSchema() {\n        const filterableFields = this.getFilterableFields(this.columns);\n        let entities!: EntityType[];\n\n        if(filterableFields.length !== 0) {\n            entities = [\n                {\n                    name: null!,\n                    fields: filterableFields\n                }\n            ];\n\n            entities[0].childEntities = this.childLayoutList.reduce((acc, rowIsland) => {\n                const childFirstRowData = this.data?.length! > 0 && this.data![0][rowIsland.key]?.length > 0 ?\n                    this.data![0][rowIsland.key][0] : null;\n                return acc.concat(this.generateChildEntity(rowIsland, childFirstRowData));\n            }\n                , [] as any);\n        }\n\n        return entities;\n    }\n\n    private getFilterableFields(columns: IgxColumnComponent[]): FieldType[] {\n        return this.toFieldTypes(columns.filter((column) => !column.columnGroup && column.filterable));\n    }\n\n    private toFieldTypes(columns: IgxColumnComponent[]): FieldType[] {\n        return columns.map(f => ({\n            field: f.field,\n            dataType: f.dataType,\n            header: f.header,\n            editorOptions: f.editorOptions,\n            filters: f.filters,\n            pipeArgs: f.pipeArgs,\n            defaultTimeFormat: f.defaultTimeFormat,\n            defaultDateTimeFormat: f.defaultDateTimeFormat\n        })) as FieldType[];\n    }\n\n    /**\n     * Updates the fields of the generated schema entity that corresponds to this grid with its current columns,\n     * so that columns auto-generated after the schema was created (e.g. for child data loaded on demand)\n     * become available in the advanced filtering dialog. A schema set by the user is not modified.\n     */\n    private updateGeneratedSchemaFields() {\n        const root = this.rootGrid as IgxHierarchicalGridComponent;\n        const entity = root.getGeneratedSchemaEntity(this.parentIsland);\n        if (entity) {\n            entity.fields = this.parentIsland ?\n                this.mergeChildGridFields(entity.fields ?? []) : this.getFilterableFields(this.columns);\n        }\n        const firstRecord = this.data?.[0];\n        if (entity && this.parentIsland && firstRecord) {\n            // nested row islands that have no fields yet (e.g. their parent data is loaded on demand)\n            // are resolved from the first record of this grid, as they are when the schema is generated\n            root.fillEmptySchemaFields(entity, root.generateChildEntity(this.parentIsland, firstRecord));\n        }\n    }\n\n    /** Sets the fields of the entities that have none from the matching entities of another entity tree. */\n    private fillEmptySchemaFields(target: EntityType, source: EntityType) {\n        if (!target.fields?.length) {\n            target.fields = source.fields;\n        }\n        source.childEntities?.forEach(sourceChild => {\n            const targetChild = target.childEntities?.find(e => e.name === sourceChild.name);\n            if (targetChild) {\n                this.fillEmptySchemaFields(targetChild, sourceChild);\n            }\n        });\n    }\n\n    /**\n     * Resolves the fields of an auto-generated row island from the columns of one of its child grids.\n     * Columns that are not filterable are kept, so that expression trees that already use them can still be recreated.\n     */\n    private getChildGridFields(columns: IgxColumnComponent[]): FieldType[] {\n        return this.toFieldTypes(columns.filter((column) => !column.columnGroup && column.field));\n    }\n\n    /**\n     * Whether the data type of a field of this grid is the default one, resolved from an empty value in its first record.\n     * Such a type says nothing about the actual values of the field in the other records and child grids.\n     */\n    private hasUnresolvedDataType(field: FieldType): boolean {\n        const value = this.data?.[0]?.[field.field];\n        return (value === null || value === undefined) && field.dataType === this.resolveDataTypes(value);\n    }\n\n    /**\n     * Merges the fields of the columns of this child grid into the fields of its row island entity.\n     * All child grids of a row island share one entity, so the fields that this grid has no columns for are kept,\n     * as is the data type of a field that this grid cannot resolve from its own data.\n     */\n    private mergeChildGridFields(entityFields: FieldType[]): FieldType[] {\n        const gridFields = this.getChildGridFields(this.columns);\n        const merged = entityFields.map(entityField => {\n            const gridField = gridFields.find(f => f.field === entityField.field);\n            if (!gridField) {\n                return entityField;\n            }\n            // the filtering operand and the formatting of the column are the ones for its data type, so only the header is taken\n            return this.hasUnresolvedDataType(gridField) ? { ...entityField, header: gridField.header } : gridField;\n        });\n        return merged.concat(gridFields.filter(gridField => !entityFields.some(f => f.field === gridField.field)));\n    }\n\n    /**\n     * Updates the fields of the generated schema entity that corresponds to a row island with declared columns,\n     * so that columns added, removed or changed after the schema was created are reflected\n     * in the advanced filtering dialog. A schema set by the user is not modified.\n     *\n     * @hidden @internal\n     */\n    public updateRowIslandSchemaFields(rowIsland: IgxRowIslandComponent) {\n        const entity = !rowIsland.autoGenerate && this.getGeneratedSchemaEntity(rowIsland);\n        if (entity) {\n            entity.fields = this.getRowIslandFields(rowIsland);\n        }\n    }\n\n    /**\n     * Returns the generated schema entity of a row island, or the root entity when no row island is passed.\n     * Returns nothing when the schema is set by the user or is not generated yet.\n     */\n    private getGeneratedSchemaEntity(rowIsland?: IgxRowIslandComponent | null): EntityType | undefined {\n        if (this._schemaSetByUser || !this._hGridSchema?.length) {\n            return undefined;\n        }\n\n        const path: string[] = [];\n        let island = rowIsland;\n        while (island) {\n            path.unshift(island.key);\n            island = island.parentIsland;\n        }\n\n        let entity: EntityType | undefined = this._hGridSchema[0];\n        for (const key of path) {\n            entity = entity?.childEntities?.find(e => e.name === key);\n        }\n\n        return entity;\n    }\n\n    /**\n     * Resolves the fields of a row island with declared columns, including the ones in column groups.\n     * Columns that are not filterable are kept, so that expression trees that already use them can still be recreated.\n     */\n    private getRowIslandFields(rowIsland: IgxRowIslandComponent): FieldType[] {\n        return this.toFieldTypes(flatten(rowIsland.childColumns.toArray()).filter(col => col.field));\n    }\n\n    private generateChildEntity(rowIsland: IgxRowIslandComponent, firstRowData: any): EntityType {\n        const entityName = rowIsland.key;\n        let fields: any[] = [];\n        let childEntities;\n        // a child grid that is already created has its columns auto-generated from the actual child data,\n        // with the header, data type and formatting options set in columnInit\n        const childGrid = rowIsland.autoGenerate ?\n            rowIsland.rowIslandAPI.getChildGrids().find(grid => grid.columns.length > 0) as IgxHierarchicalGridComponent : undefined;\n        const childGridFields = childGrid ? this.getChildGridFields(childGrid.columns) : [];\n        if (!rowIsland.autoGenerate) {\n            fields = this.getRowIslandFields(rowIsland);\n        } else if (firstRowData) {\n            const rowIslandFields = Object.keys(firstRowData).map(key => {\n                if (firstRowData[key] instanceof Array) {\n                    return null;\n                }\n\n                const dataType = this.resolveDataTypes(firstRowData[key]);\n                const childGridField = childGridFields.find(f => f.field === key);\n                if (!childGridField) {\n                    return { field: key, dataType };\n                }\n                // the child grid may belong to another record and have an empty value for the field\n                return childGrid?.hasUnresolvedDataType(childGridField) ?\n                    { field: key, dataType, header: childGridField.header } : childGridField;\n            });\n            fields = rowIslandFields.filter(f => f !== null) as FieldType[];\n        } else {\n            fields = childGridFields;\n        }\n\n        // the child entities are generated from the row islands even if there is no child data yet (e.g. load on demand)\n        const rowIslandChildEntities = rowIsland.childLayoutList.reduce((acc, childRowIsland) => {\n            const childFirstRowData = firstRowData?.[childRowIsland.key]?.length > 0 ?\n                firstRowData[childRowIsland.key][0] : null;\n            return acc.concat(this.generateChildEntity(childRowIsland, childFirstRowData));\n        }, [] as EntityType[]);\n\n        if (rowIslandChildEntities.length > 0) {\n            childEntities = rowIslandChildEntities;\n        }\n\n        return {\n            name: entityName,\n            fields: fields,\n            childEntities: childEntities\n        }\n    }\n}\n","<div class=\"igx-grid__hierarchical-indent\" [ngClass]=\"{'igx-grid__hierarchical-indent--scroll': parentHasScroll}\">\n    <ng-container #container></ng-container>\n</div>\n","<ng-content select=\"igx-grid-toolbar,igc-grid-toolbar\"></ng-content>\n<ng-container #toolbarOutlet></ng-container>\n\n<igx-grid-header-row class=\"igx-grid-thead\" tabindex=\"0\"\n    [grid]=\"this\"\n    [hasMRL]=\"hasColumnLayouts\"\n    [width]=\"calcWidth\"\n    [pinnedStartColumnCollection]=\"pinnedStartColumns\"\n    [pinnedEndColumnCollection]=\"pinnedEndColumns\"\n    [unpinnedColumnCollection]=\"unpinnedColumns\"\n    (copy)=\"copyHandler($event)\"\n    (keydown)=\"navigation.headerNavigation($event)\"\n    (focus)=\"navigation.focusFirstCell()\"\n>\n</igx-grid-header-row>\n\n<div igxGridBody (copy)=\"copyHandler($event)\" class=\"igx-grid__tbody\" role=\"presentation\">\n    <div class=\"igx-grid__tbody-content\"  tabindex=\"0\" (focus)=\"navigation.focusTbody($event)\"\n        (keydown)=\"navigation.handleNavigation($event)\" (dragStop)=\"selectionService.dragMode = $event\"\n        (dragScroll)=\"dragScroll($event)\" [igxGridDragSelect]=\"selectionService.dragMode\" [attr.aria-activedescendant]=\"activeDescendant\" [attr.role]=\"dataView.length ? 'rowgroup' : 'row'\"\n        [style.height.px]=\"totalHeight\" [style.width.px]=\"totalCalcWidth\" [style.width]=\"!platform.isBrowser ? '100%' : undefined\" #tbody (scroll)=\"preventContainerScroll($event)\">\n        @if (moving && columnInDrag && pinnedColumns.length <= 0) {\n            <span\n                [igxColumnMovingDrop]=\"headerContainer\" [attr.droppable]=\"true\" id=\"left\"\n                class=\"igx-grid__scroll-on-drag-left\"></span>\n        }\n        @if (moving && columnInDrag && pinnedColumns.length > 0) {\n            <span\n                [igxColumnMovingDrop]=\"headerContainer\" [attr.droppable]=\"true\" id=\"left\"\n                class=\"igx-grid__scroll-on-drag-pinned\" [style.left.px]=\"pinnedStartWidth\"></span>\n        }\n        @if (mergedDataInView && mergedDataInView.length > 0) {\n            <div igxScrollInertia\n            [IgxScrollInertiaScrollContainer]=\"this.verticalScrollContainer.dc.instance.scrollContainer\"\n            [IgxScrollInertiaDirection]=\"this.verticalScrollContainer.dc.instance.scrollDirection\">\n                @for (rowData of mergedDataInView; track rowData.record;) {\n                    <igx-hierarchical-grid-row class=\"igx-grid__tr--merged-top\" [gridID]=\"id\" [index]=\"rowData.index\" [data]=\"rowData.record.recordRef\" [metaData]=\"rowData.record\" [style.top.px]=\"getMergeCellOffset(rowData)\"\n                    [ngClass]=\"rowClasses | igxGridRowClasses:row:row.inEditMode:row.selected:row.dirty:row.deleted:row.dragging:rowData.index:hasColumnLayouts:hasCellsToMerge:false:rowData.record:pipeTrigger\"\n                    [ngStyle]=\"rowStyles | igxGridRowStyles:rowData.record:rowData.index:pipeTrigger\" #row>\n                    </igx-hierarchical-grid-row>\n                }\n        </div>\n        }\n        <ng-template #pinnedRecordsTemplate>\n            @if (data!\n                | gridTransaction:id:pipeTrigger\n                | visibleColumns:hasVisibleColumns\n                | gridAddRow:true:pipeTrigger\n                | gridRowPinning:id:true:pipeTrigger\n                | gridFiltering:filteringExpressionsTree:filterStrategy:advancedFilteringExpressionsTree:id:pipeTrigger:filteringPipeTrigger:true\n                | gridSort:sortingExpressions:[]:sortStrategy:id:pipeTrigger:true\n                | gridCellMerge:columnsToMerge:cellMergeMode:mergeStrategy:pipeTrigger\n                | gridUnmergeActive:columnsToMerge:activeRowIndexes:true:pipeTrigger; as pinnedData\n            ) {\n                @if (pinnedData.length > 0) {\n                    <div #pinContainer class=\"igx-grid__tr--pinned\"\n                        [ngClass]=\"{ 'igx-grid__tr--pinned-bottom':  !isRowPinningToTop, 'igx-grid__tr--pinned-top': isRowPinningToTop }\"\n                        [style.width.px]=\"calcWidth\">\n                        @for (rowData of pinnedData; track (rowData.recordRef || rowData); let rowIndex = $index) {\n                            <ng-container *ngTemplateOutlet=\"pinned_hierarchical_record_template; context: getContext(rowData, rowIndex, true)\">\n                            </ng-container>\n                        }\n                    </div>\n                }\n            }\n        </ng-template>\n        <ng-container *ngTemplateOutlet=\"hasPinnedRecords && isRowPinningToTop ? pinnedRecordsTemplate : null\">\n        </ng-container>\n        <ng-template igxGridFor let-rowData let-rowIndex=\"index\" [igxGridForOf]=\"renderData!\n        | gridTransaction:id:pipeTrigger\n        | visibleColumns:hasVisibleColumns\n        | gridFiltering:filteringExpressionsTree:filterStrategy:advancedFilteringExpressionsTree:id:pipeTrigger:filteringPipeTrigger\n        | gridSort:sortingExpressions:[]:sortStrategy:id:pipeTrigger\n        | gridHierarchicalPaging:!!paginator:page:perPage:id:pipeTrigger\n        | gridHierarchical:expansionStates:id:primaryKey:childLayoutKeys:pipeTrigger\n        | gridAddRow:false:pipeTrigger\n        | gridRowPinning:id:false:pipeTrigger\n        | gridCellMerge:columnsToMerge:cellMergeMode:mergeStrategy:pipeTrigger\n        | gridUnmergeActive:columnsToMerge:activeRowIndexes:false:pipeTrigger\"\n            [igxForScrollOrientation]=\"'vertical'\" [igxForScrollContainer]=\"verticalScroll\"\n            [igxForContainerSize]=\"calcHeight\" [igxForItemSize]=\"renderedRowHeight\" [igxForTrackBy]=\"trackChanges\"\n            #verticalScrollContainer (chunkPreload)=\"dataLoading($event)\" (dataChanging)=\"dataRebinding($event)\" (dataChanged)=\"dataRebound($event)\">\n            <div [attr.data-index]=\"rowIndex\">\n            <ng-template\n                [igxTemplateOutlet]=\"(isHierarchicalRecord(rowData) ? hierarchical_record_template : (isChildGridRecord(rowData) ? child_record_template : hierarchical_record_template))\"\n                [igxTemplateOutletContext]=\"getContext(rowData, rowIndex, false)\" (viewCreated)=\"viewCreatedHandler($event)\"\n                (viewMoved)=\"viewMovedHandler($event)\" (cachedViewLoaded)=\"cachedViewLoaded($event)\" (beforeViewDetach)=\"viewDetachHandler($event)\">\n            </ng-template>\n            </div>\n            <!-- <ng-container *igxTemplateOutlet=\"(isHierarchicalRecord(rowData) ? hierarchical_record_template : (isChildGridRecord(rowData) && isExpanded(rowData) ? child_record_template : hierarchical_record_template)); context: getContext(rowData)\"></ng-container> -->\n        </ng-template>\n        <ng-template #hierarchical_record_template let-rowIndex=\"index\" let-disabledRow=\"disabled\" let-rowData let-metaData=\"metaData\">\n            <igx-hierarchical-grid-row [gridID]=\"id\" [index]=\"rowIndex\" [disabled]=\"disabledRow\" [data]=\"rowData\" [metaData]=\"metaData\"\n                [ngClass]=\"rowClasses | igxGridRowClasses:row:row.inEditMode:row.selected:row.dirty:row.deleted:row.dragging:rowIndex:hasColumnLayouts:hasCellsToMerge:false:rowData:pipeTrigger\"\n                [ngStyle]=\"rowStyles | igxGridRowStyles:rowData:rowIndex:pipeTrigger\" #row>\n            </igx-hierarchical-grid-row>\n        </ng-template>\n\n        <ng-template #pinned_hierarchical_record_template let-rowIndex=\"index\" let-rowData let-metaData=\"metaData\">\n            <igx-hierarchical-grid-row [gridID]=\"id\" [index]=\"rowIndex\" [data]=\"rowData\" [metaData]=\"metaData\"\n                [ngClass]=\"rowClasses | igxGridRowClasses:row:row.inEditMode:row.selected:row.dirty:row.deleted:row.dragging:rowIndex:hasColumnLayouts:hasCellsToMerge:false:rowData:pipeTrigger\"\n                [ngStyle]=\"rowStyles | igxGridRowStyles:rowData:rowIndex:pipeTrigger\" #row #pinnedRow>\n            </igx-hierarchical-grid-row>\n        </ng-template>\n        <ng-template #child_record_template let-rowIndex=\"index\" let-rowData>\n            <div [attr.data-rowindex]=\"rowIndex\" (scroll)=\"onContainerScroll()\"\n                [ngClass]=\"{\n                'igx-grid__tr-container': true,\n                'igx-grid__tr--highlighted':isRowHighlighted(rowData)\n            }\">\n                @for (layout of childLayoutList; track layout) {\n                    <igx-child-grid-row [parentGridID]=\"id\" [index]=\"rowIndex\"\n                        [data]=\"rowData\" [layout]=\"layout\" #row>\n                    </igx-child-grid-row>\n                }\n            </div>\n        </ng-template>\n        <ng-container *ngTemplateOutlet=\"hasPinnedRecords && !isRowPinningToTop ? pinnedRecordsTemplate : null\">\n        </ng-container>\n        <ng-container *ngTemplateOutlet=\"template; context: { $implicit: this }\"></ng-container>\n        @if (moving && columnInDrag) {\n            <span [igxColumnMovingDrop]=\"headerContainer\" [attr.droppable]=\"true\"\n                id=\"right\" class=\"igx-grid__scroll-on-drag-right\"></span>\n        }\n        <ng-container #bodyViewContainerRef></ng-container>\n        @if (!this.parent) {\n            <igc-trial-watermark></igc-trial-watermark>\n        }\n    </div>\n    <div igxToggle #loadingOverlay>\n        @if (shouldOverlayLoading) {\n            <igx-circular-bar [indeterminate]=\"true\"></igx-circular-bar>\n        }\n    </div>\n    @if (moving && columnInDrag) {\n        <span [igxColumnMovingDrop]=\"headerContainer\" [attr.droppable]=\"true\"\n            id=\"right\" class=\"igx-grid__scroll-on-drag-right\"></span>\n    }\n    <div [hidden]=\"!hasVerticalScroll()\" class=\"igx-grid__tbody-scrollbar\" [style.width.px]=\"scrollSize\" (pointerdown)=\"$event.preventDefault()\">\n        <div class=\"igx-grid__tbody-scrollbar-start\" [style.height.px]=\"isRowPinningToTop ? pinnedRowHeight : 0\"></div>\n        <div class=\"igx-grid__tbody-scrollbar-main\" [style.height.px]=\"calcHeight\">\n            <ng-template igxGridFor [igxGridForOf]=\"[]\" #verticalScrollHolder></ng-template>\n        </div>\n        <div class=\"igx-grid__tbody-scrollbar-end\" [style.height.px]=\"!isRowPinningToTop ? pinnedRowHeight : 0\"></div>\n    </div>\n    <div class=\"igx-grid__addrow-snackbar\">\n        <igx-snackbar #addRowSnackbar [actionText]=\"resourceStrings.igx_grid_snackbar_addrow_actiontext\" [displayTime]=\"snackbarDisplayTime\">{{resourceStrings.igx_grid_snackbar_addrow_label}}</igx-snackbar>\n    </div>\n</div>\n\n<div class=\"igx-grid__tfoot\" role=\"presentation\" [style.height.px]=\"summaryRowHeight\" #tfoot>\n    <div tabindex=\"0\" role=\"rowgroup\" (focus)=\"navigation.focusFirstCell(false)\" [attr.aria-activedescendant]=\"activeDescendant\"\n        (keydown)=\"navigation.summaryNav($event)\">\n        @if (hasSummarizedColumns && rootSummariesEnabled) {\n            <igx-grid-summary-row [style.width.px]=\"calcWidth\" [style.height.px]=\"summaryRowHeight\"\n                [gridID]=\"id\" role=\"row\"\n                [summaries]=\"id | igxGridSummaryDataPipe:summaryService.retriggerRootPipe\" [index]=\"dataView.length\"\n                class=\"igx-grid__summaries\" #summaryRow>\n            </igx-grid-summary-row>\n        }\n        <div class=\"igx-grid__tfoot-thumb\" [hidden]=\"!hasVerticalScroll()\" [style.height.px]=\"summaryRowHeight\"\n            [style.width.px]=\"scrollSize\"></div>\n    </div>\n</div>\n\n<div class=\"igx-grid__scroll\" role=\"presentation\" [style.height.px]=\"scrollSize\" #scr [hidden]=\"isHorizontalScrollHidden\" (pointerdown)=\"$event.preventDefault()\">\n    <div class=\"igx-grid__scroll-start\"\n        [class.igx-grid__scroll-start--pinned]=\"pinnedStartColumns.length > 0\"\n        [class.igx-grid__scroll-start--column-selection]=\"columnSelection !== 'none'\"\n        [style.width.px]=\"pinnedStartWidth\" [style.min-width.px]=\"pinnedStartWidth\"></div>\n    <div class=\"igx-grid__scroll-main\" [style.width.px]=\"unpinnedWidth\">\n        <ng-template igxGridFor [igxGridForOf]=\"[]\" #scrollContainer>\n        </ng-template>\n    </div>\n    <div class=\"igx-grid__scroll-end\" [style.width.px]=\"pinnedEndWidth\" [style.min-width.px]=\"pinnedEndWidth\" [hidden]=\"pinnedEndWidth === 0\"></div>\n</div>\n\n<div class=\"igx-grid__footer\" role=\"presentation\" #footer>\n    <ng-content select=\"igx-grid-footer,igc-grid-footer\"></ng-content>\n    <ng-content select=\"igx-paginator,igc-paginator\"></ng-content>\n    <ng-container #paginatorOutlet></ng-container>\n</div>\n\n<ng-template #emptyFilteredGrid>\n    <span class=\"igx-grid__tbody-message\" role=\"cell\">\n        <span>{{emptyFilteredGridMessage}}</span>\n        @if (showAddButton) {\n            <span>\n                <ng-container *ngTemplateOutlet=\"addRowEmptyTemplate || defaultAddRowEmptyTemplate\"></ng-container>\n            </span>\n        }\n    </span>\n</ng-template>\n\n<ng-template #defaultEmptyGrid>\n    <span class=\"igx-grid__tbody-message\" role=\"cell\">\n        <span>{{emptyGridMessage}}</span>\n        @if (showAddButton) {\n            <span>\n                <ng-container *ngTemplateOutlet=\"addRowEmptyTemplate || defaultAddRowEmptyTemplate\"></ng-container>\n            </span>\n        }\n    </span>\n</ng-template>\n\n<ng-template #defaultAddRowEmptyTemplate>\n    <button type=\"button\" igxButton=\"contained\" igxRipple (click)=\"this.crudService.enterAddRowMode(null, false, $event)\">\n        {{resourceStrings.igx_grid_add_row_label}}\n    </button>\n</ng-template>\n\n<ng-template #defaultLoadingGrid>\n    <div class=\"igx-grid__loading\">\n        <igx-circular-bar [indeterminate]=\"true\">\n        </igx-circular-bar>\n    </div>\n</ng-template>\n\n<ng-template #defaultCollapsedTemplate>\n    <igx-icon family=\"default\" name=\"unfold_more\" role=\"button\"></igx-icon>\n</ng-template>\n\n<ng-template #defaultExpandedTemplate>\n    <igx-icon\n        family=\"default\"\n        name=\"unfold_less\"\n        role=\"button\"\n        [active]=\"hasExpandedRecords() && hasExpandableChildren\">\n    </igx-icon>\n</ng-template>\n\n@if (rowEditable) {\n    <div igxToggle #rowEditingOverlay>\n        <div [className]=\"bannerClass\">\n            <ng-container\n                *ngTemplateOutlet=\"resolveRowEditContainer; context: { rowChangesCount: rowChangesCount, endEdit: this.crudService.endEdit.bind(this), $implicit: $any(this) }\">\n            </ng-container>\n        </div>\n    </div>\n}\n<ng-template #defaultRowEditText>\n    {{ this.resourceStrings.igx_grid_row_edit_text! | igxStringReplace:'{0}':rowChangesCount.toString() | igxStringReplace:'{1}':hiddenColumnsCount.toString() }}\n</ng-template>\n<ng-template #defaultRowEditActions>\n    <button type=\"button\" igxButton igxRowEditTabStop (click)=\"this.endRowEditTabStop(false, $event)\">{{ this.resourceStrings.igx_grid_row_edit_btn_cancel }}</button>\n    <button type=\"button\" igxButton igxRowEditTabStop (click)=\"this.endRowEditTabStop(true, $event)\">{{ this.resourceStrings.igx_grid_row_edit_btn_done }}</button>\n</ng-template>\n<ng-template #defaultRowEditTemplate>\n    <div class=\"igx-banner__message\">\n        <span class=\"igx-banner__text\">\n            <ng-container\n                *ngTemplateOutlet=\"$any(this.crudService.row?.isAddRow ? rowAddTextTemplate : resolveRowEditText || defaultRowEditText);\n                context: { $implicit: $any(!this.crudService.row?.isAddRow ? rowChangesCount : null) }\">\n            </ng-container>\n        </span>\n    </div>\n    <div class=\"igx-banner__actions\">\n        <div class=\"igx-banner__row\">\n            <ng-container\n                *ngTemplateOutlet=\"resolveRowEditActions || defaultRowEditActions; context: { $implicit: this.endEdit.bind(this) }\">\n            </ng-container>\n        </div>\n    </div>\n</ng-template>\n\n<ng-template #dragIndicatorIconBase>\n    <igx-icon family=\"default\" name=\"drag_indicator\"></igx-icon>\n</ng-template>\n\n@if (colResizingService.showResizer) {\n    <igx-grid-column-resizer></igx-grid-column-resizer>\n}\n<div class=\"igx-grid__outlet\" #igxFilteringOverlayOutlet igxOverlayOutlet></div>\n@if (platform.isElements) {\n    <ng-content select=\"igx-grid-state,igc-grid-state\"></ng-content>\n    <ng-content select=\"igx-column,igc-column,igx-column-group,igc-column-group,igx-action-strip,igc-action-strip\"></ng-content>\n    <ng-content select=\"igx-row-island,igc-row-island\"></ng-content>\n}\n\n <!-- Lifecycle placeholder used to determine when the grid gets connected/disconnected from the DOM, for example as a result of virtualization or caching. -->\n<igc-lifecycle-placeholder #lifecyclePlaceholder></igc-lifecycle-placeholder>\n","import { NgModule } from '@angular/core';\nimport { IgxHierarchicalGridComponent } from './hierarchical-grid.component';\nimport { IgxRowIslandComponent } from './row-island.component';\n\n/* Imports that cannot be resolved from IGX_GRID_COMMON_DIRECTIVES spread\n    NOTE: Do not remove! Issue: https://github.com/IgniteUI/igniteui-angular/issues/13310\n*/\nimport {\n    IgxRowDirective,\n    IgxRowEditTextDirective,\n    IgxRowAddTextDirective,\n    IgxRowEditActionsDirective,\n    IgxRowEditTabStopDirective,\n    IgxGridFooterComponent,\n    IgxAdvancedFilteringDialogComponent,\n    IgxHeaderCollapsedIndicatorDirective,\n    IgxHeaderExpandedIndicatorDirective,\n    IgxRowCollapsedIndicatorDirective,\n    IgxRowExpandedIndicatorDirective,\n    IgxSortAscendingHeaderIconDirective,\n    IgxSortDescendingHeaderIconDirective,\n    IgxSortHeaderIconDirective,\n    IgxExcelStyleHeaderIconDirective,\n    IgxDragIndicatorIconDirective,\n    IgxRowDragGhostDirective,\n    IgxGridStateDirective,\n    IgxGridHeaderComponent,\n    IgxGridHeaderGroupComponent,\n    IgxGridHeaderRowComponent,\n    IgxFilterCellTemplateDirective,\n    IgxSummaryTemplateDirective,\n    IgxCellTemplateDirective,\n    IgxCellValidationErrorDirective,\n    IgxCellHeaderTemplateDirective,\n    IgxCellFooterTemplateDirective,\n    IgxCellEditorTemplateDirective,\n    IgxCollapsibleIndicatorTemplateDirective,\n    IgxColumnComponent,\n    IgxColumnGroupComponent,\n    IgxColumnLayoutComponent,\n    IgxColumnRequiredValidatorDirective,\n    IgxColumnMinValidatorDirective,\n    IgxColumnMaxValidatorDirective,\n    IgxColumnEmailValidatorDirective,\n    IgxColumnMinLengthValidatorDirective,\n    IgxColumnMaxLengthValidatorDirective,\n    IgxColumnPatternValidatorDirective,\n    IgxColumnActionsComponent,\n    IgxColumnHidingDirective,\n    IgxColumnPinningDirective,\n    IgxRowSelectorDirective,\n    IgxGroupByRowSelectorDirective,\n    IgxHeadSelectorDirective,\n    IgxCSVTextDirective,\n    IgxExcelTextDirective,\n    IgxGridToolbarActionsComponent,\n    IgxGridToolbarAdvancedFilteringComponent,\n    IgxGridToolbarComponent,\n    IgxGridToolbarExporterComponent,\n    IgxGridToolbarHidingComponent,\n    IgxGridToolbarPinningComponent,\n    IgxGridToolbarTitleComponent,\n    IgxGridToolbarDirective,\n    IgxGridExcelStyleFilteringComponent,\n    IgxExcelStyleHeaderComponent,\n    IgxExcelStyleSortingComponent,\n    IgxExcelStylePinningComponent,\n    IgxExcelStyleHidingComponent,\n    IgxExcelStyleSelectingComponent,\n    IgxExcelStyleClearFiltersComponent,\n    IgxExcelStyleConditionalFilterComponent,\n    IgxExcelStyleMovingComponent,\n    IgxExcelStyleSearchComponent,\n    IgxExcelStyleColumnOperationsTemplateDirective,\n    IgxExcelStyleFilterOperationsTemplateDirective,\n    IgxExcelStyleLoadingValuesTemplateDirective,\n    IgxGridActionButtonComponent,\n    IgxGridActionsBaseDirective,\n    IgxGridEditingActionsComponent,\n    IgxGridPinningActionsComponent\n} from \"igniteui-angular/grids/core\";\nimport {\n    IgxPaginatorComponent,\n    IgxPageNavigationComponent,\n    IgxPageSizeSelectorComponent,\n    IgxPaginatorContentDirective,\n    IgxPaginatorDirective\n} from 'igniteui-angular/paginator';\n\n/* NOTE: Hierarchical grid directives collection for ease-of-use import in standalone components scenario */\nexport const IGX_HIERARCHICAL_GRID_DIRECTIVES = [\n    IgxHierarchicalGridComponent,\n    IgxRowIslandComponent,\n    IgxRowAddTextDirective,\n    IgxRowEditActionsDirective,\n    IgxRowEditTextDirective,\n    IgxRowEditTabStopDirective,\n    // IGX_GRID_COMMON_DIRECTIVES:\n    IgxRowDirective,\n    IgxGridFooterComponent,\n    IgxAdvancedFilteringDialogComponent,\n    IgxRowExpandedIndicatorDirective,\n    IgxRowCollapsedIndicatorDirective,\n    IgxHeaderExpandedIndicatorDirective,\n    IgxHeaderCollapsedIndicatorDirective,\n    IgxExcelStyleHeaderIconDirective,\n    IgxSortAscendingHeaderIconDirective,\n    IgxSortDescendingHeaderIconDirective,\n    IgxSortHeaderIconDirective,\n    IgxDragIndicatorIconDirective,\n    IgxRowDragGhostDirective,\n    IgxGridStateDirective,\n    // IGX_GRID_ACTIONS\n    IgxGridPinningActionsComponent,\n    IgxGridEditingActionsComponent,\n    IgxGridActionsBaseDirective,\n    IgxGridActionButtonComponent,\n    // IGX_GRID_HEADERS_DIRECTIVES:\n    IgxGridHeaderComponent,\n    IgxGridHeaderGroupComponent,\n    IgxGridHeaderRowComponent,\n    // IGX_GRID_COLUMN_DIRECTIVES:\n    IgxFilterCellTemplateDirective,\n    IgxSummaryTemplateDirective,\n    IgxCellTemplateDirective,\n    IgxCellValidationErrorDirective,\n    IgxCellHeaderTemplateDirective,\n    IgxCellFooterTemplateDirective,\n    IgxCellEditorTemplateDirective,\n    IgxCollapsibleIndicatorTemplateDirective,\n    IgxColumnComponent,\n    IgxColumnGroupComponent,\n    IgxColumnLayoutComponent,\n    // IGX_GRID_COLUMN_ACTIONS_DIRECTIVES:\n    IgxColumnActionsComponent,\n    IgxColumnHidingDirective,\n    IgxColumnPinningDirective,\n    // IGX_GRID_SELECTION_DIRECTIVES:\n    IgxRowSelectorDirective,\n    IgxGroupByRowSelectorDirective,\n    IgxHeadSelectorDirective,\n    // IGX_GRID_TOOLBAR_DIRECTIVES:\n    IgxCSVTextDirective,\n    IgxExcelTextDirective,\n    IgxGridToolbarActionsComponent,\n    IgxGridToolbarAdvancedFilteringComponent,\n    IgxGridToolbarComponent,\n    IgxGridToolbarExporterComponent,\n    IgxGridToolbarHidingComponent,\n    IgxGridToolbarPinningComponent,\n    IgxGridToolbarTitleComponent,\n    IgxGridToolbarDirective,\n    // IGX_GRID_EXCEL_STYLE_FILTER_DIRECTIVES:\n    IgxGridExcelStyleFilteringComponent,\n    IgxExcelStyleHeaderComponent,\n    IgxExcelStyleSortingComponent,\n    IgxExcelStylePinningComponent,\n    IgxExcelStyleHidingComponent,\n    IgxExcelStyleSelectingComponent,\n    IgxExcelStyleClearFiltersComponent,\n    IgxExcelStyleConditionalFilterComponent,\n    IgxExcelStyleMovingComponent,\n    IgxExcelStyleSearchComponent,\n    IgxExcelStyleColumnOperationsTemplateDirective,\n    IgxExcelStyleFilterOperationsTemplateDirective,\n    IgxExcelStyleLoadingValuesTemplateDirective,\n    // IGX_GRID_VALIDATION_DIRECTIVES:\n    IgxColumnRequiredValidatorDirective,\n    IgxColumnMinValidatorDirective,\n    IgxColumnMaxValidatorDirective,\n    IgxColumnEmailValidatorDirective,\n    IgxColumnMinLengthValidatorDirective,\n    IgxColumnMaxLengthValidatorDirective,\n    IgxColumnPatternValidatorDirective,\n    // IGX_PAGINATOR_DIRECTIVES:\n    IgxPaginatorComponent,\n    IgxPageNavigationComponent,\n    IgxPageSizeSelectorComponent,\n    IgxPaginatorContentDirective,\n    IgxPaginatorDirective\n] as const;\n\n/**\n * @hidden\n * IMPORTANT: The following is NgModule exported for backwards-compatibility before standalone components\n */\n@NgModule({\n    imports: [\n        ...IGX_HIERARCHICAL_GRID_DIRECTIVES\n    ],\n    exports: [\n        ...IGX_HIERARCHICAL_GRID_DIRECTIVES\n    ]\n})\nexport class IgxHierarchicalGridModule {\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAOA,IAAa,gCAAb,MAAa,sCAAsC,mBAA4B;CAD/E,cAAA;;EAEc,KAAA,kCAAsD,IAAI,IAAG;EAC7D,KAAA,6BACN,IAAI,IAAG;CAqHd;CAnHU,uBAAuB,WAAgC;EAC1D,KAAK,gBAAgB,IAAI,UAAU,KAAK,SAAS;EACjD,KAAK,WAAW,IAAI,UAAU,KAAK,IAAI,QAAO,CAAW;CAC7D;CAEO,oBAAoB,WAAgC;EACvD,KAAK,WAAW,OAAO,UAAU,GAAG;EACpC,KAAK,gBAAgB,OAAO,UAAU,GAAG;EACzC,KAAK,WAAW,OAAO,UAAU,GAAG;CACxC;CAEO,kBAAkB,KAAW;EAChC,OAAO,KAAK,gBAAgB,IAAI,GAAG;CACvC;CAEO,aAAa,MAAyB;EACzC,MAAM,WAAW;EACjB,IAAI;EACJ,MAAM,WAAW,SAAS,MAAK;EAC/B,MAAM,oBAAoB,KAAK,WAAW,IAAI,SAAU,YAAY;EACpE,IAAI,mBAAmB;GACnB,MAAM,YAAY,kBAAkB,IAAI,SAAU,MAAM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AAA,MAAA,MAAA,CAAA;EAsBA,iBAAA,CAAA,EAAA,MAAA,MAAA,CAAA;;;AG/gBL,MAAa,mCAAmC;CAC5C;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CAEA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CAEA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;AACM;AAcV,IAAa,4BAAb,MAAa,0BAAyB;CAAzB;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAyB,MAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAAzB;EAAA,KAAA,OAAA,GAAA,oBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAyB,SAAA;IAvGlC;IACA;IACA;IACA;IACA;IACA;IAEA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IAEA;IACA;IACA;IACA;IAEA;IACA;IACA;IAEA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IAEA;IACA;IACA;IAEA;IACA;IACA;IAEA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IAEA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IAEA;IACA;IACA;IACA;IACA;IACA;IACA;IAEA;IACA;IACA;IACA;IACA;GAAqB;GAAA,SAAA;IAxFrB;IACA;IACA;IACA;IACA;IACA;IAEA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IAEA;IACA;IACA;IACA;IAEA;IACA;IACA;IAEA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IAEA;IACA;IACA;IAEA;IACA;IACA;IAEA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IAEA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IAEA;IACA;IACA;IACA;IACA;IACA;IACA;IAEA;IACA;IACA;IACA;IACA;GAAqB;EAAA,CAAA;CAAA;CAeZ;EAAA,KAAA,OAAA,GAAA,oBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAyB,SAAA;IAvGlC;IAQA;IACA;IAaA;IACA;IAEA;IAEA;IACA;IACA;IAUA;IACA;IACA;IAEA;IAUA;IACA;IACA;IACA;IACA;IACA;IACA;IAGA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IAaA;IACA;IACA;GAA4B;EAAA,CAAA;CAAA;;AAiBnB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAyB,YAAA,CAAA;EARrC,MAAA;EAAS,MAAA,CAAA;GACN,SAAS,CACL,GAAG,gCACN;GACD,SAAS,CACL,GAAG,gCACN;EACJ,CAAA"}