{"version":3,"file":"igniteui-angular-grids-lite.mjs","names":[],"sources":["../../../projects/igniteui-angular/grids/lite/src/grid-lite.component.ts","../../../projects/igniteui-angular/grids/lite/src/grid-lite-column.component.ts","../../../projects/igniteui-angular/grids/lite/src/grid-lite-column.component.html"],"sourcesContent":["import { booleanAttribute, ChangeDetectionStrategy, Component, CUSTOM_ELEMENTS_SCHEMA, effect, ElementRef, inject, input, model, OnInit } from '@angular/core';\nimport { DataPipelineConfiguration, FilterExpression, GridLiteSortingOptions, IgcGridLite, Keys, NavigateToOptions, SortingExpression } from 'igniteui-grid-lite';\nimport { isEqual } from 'lodash-es';\nimport { IgxGridLiteColumnConfiguration } from './grid-lite-column.component';\n\nexport type IgxGridLiteSortingOptions = GridLiteSortingOptions;\nexport type IgxGridLiteDataPipelineConfiguration<T extends object = any> = DataPipelineConfiguration<T>;\nexport type IgxGridLiteSortingExpression<T extends object = any> = SortingExpression<T>;\nexport type IgxGridLiteFilteringExpression<T extends object = any> = FilterExpression<T>;\nexport type IgxGridLiteNavigateToOptions<T extends object = any> = NavigateToOptions<T>;\n\n\nclass IgxGridLite<T extends object = any> extends IgcGridLite<T> {\n    public static override get tagName() {\n        return 'igx-grid-lite' as any;\n    }\n    public static override register(): void {\n        // still call super for child components:\n        super.register();\n\n        if (!customElements.get(IgxGridLite.tagName)) {\n            customElements.define(IgxGridLite.tagName, IgxGridLite);\n        }\n    }\n}\n\n/**\n * The Grid Lite is a web component for displaying data in a tabular format quick and easy.\n *\n * Out of the box it provides row virtualization, sort and filter operations (client and server side),\n * the ability to template cells and headers and column hiding.\n *\n * @fires sorting - Emitted when sorting is initiated through the UI.\n * @fires sorted - Emitted when a sort operation initiated through the UI has completed.\n * @fires filtering - Emitted when filtering is initiated through the UI.\n * @fires filtered - Emitted when a filter operation initiated through the UI has completed.\n *\n * @developerPreview 21.1.0\n */\n@Component({\n    selector: 'igx-grid-lite',\n    standalone: true,\n    changeDetection: ChangeDetectionStrategy.OnPush,\n    schemas: [CUSTOM_ELEMENTS_SCHEMA],\n    host: {\n        '[data]': \"data()\",\n        '[autoGenerate]': \"autoGenerate()\",\n        '[sortingOptions]': \"sortingOptions()\",\n        '[dataPipelineConfiguration]': \"dataPipelineConfiguration()\",\n        '(sorted)': \"onSorted($any($event))\",\n        '(filtered)': \"onFiltered($any($event))\",\n        'adopt-root-styles': '',\n    },\n    template: `<ng-content></ng-content>`\n})\n\nexport class IgxGridLiteComponent<T extends object = any> implements OnInit {\n\n    //#region Internal state\n\n    private readonly gridRef = inject(ElementRef) as ElementRef<IgxGridLite<T>>;\n\n    //#endregion\n\n    //#region Inputs\n\n    /** The data source for the grid. */\n    public readonly data = input<T[]>([]);\n\n    /**\n     * Whether the grid will try to \"resolve\" its column configuration based on the passed\n     * data source.\n     *\n     * @remarks\n     * This property is ignored if any existing column configuration already exists in the grid.\n     */\n    public readonly autoGenerate = input(false, { transform: booleanAttribute });\n\n    /** Sort configuration property for the grid. */\n    public readonly sortingOptions = input<IgxGridLiteSortingOptions>({\n        mode: 'multiple'\n    });\n\n    /**\n     * Configuration object which controls remote data operations for the grid.\n     */\n    public readonly dataPipelineConfiguration = input<IgxGridLiteDataPipelineConfiguration>();\n\n    /**\n     * The sort state for the grid.\n     *\n     * @remarks\n     * This is a two-way bindable property. It will be updated when sort operations\n     * complete through the UI.\n     */\n    public readonly sortingExpressions = model<IgxGridLiteSortingExpression<T>[]>([]);\n\n    /**\n     * The filter state for the grid.\n     *\n     * @remarks\n     * This is a two-way bindable property. It will be updated when filter operations\n     * complete through the UI.\n     */\n    public readonly filteringExpressions = model<IgxGridLiteFilteringExpression<T>[]>([]);\n\n    //#endregion\n\n    //#region Getters / Setters\n\n    /**\n     * Get the column configuration of the grid.\n     */\n    public get columns(): IgxGridLiteColumnConfiguration<T>[] {\n        return this.gridRef.nativeElement.columns ?? [];\n    }\n\n    /**\n     * Returns the collection of rendered row elements in the grid.\n     *\n     * @remarks\n     * Since the grid has virtualization, this property returns only the currently rendered\n     * chunk of elements in the DOM.\n     */\n    public get rows(): IgcGridLite<T>['rows'] {\n        return this.gridRef.nativeElement.rows ?? [];\n    }\n\n    /**\n     * Returns the state of the data source after sort/filter operations\n     * have been applied.\n     */\n    public get dataView(): ReadonlyArray<T> {\n        return this.gridRef.nativeElement.dataView ?? [];\n    }\n\n    //#endregion\n\n    constructor() {\n        // D.P. Temporary guarded assign instead of binding to prevent WC issue with setter logic re-doing sort/filter\n        effect(() => {\n            const grid = this.gridRef.nativeElement\n            if (!grid) return;\n            const newValue = this.filteringExpressions();\n            // Compared by value, as the grid returns fresh copies of its expressions on every read\n            if (!isEqual(newValue, grid.filterExpressions ?? [])) {\n                grid.clearFilter();\n                grid.filterExpressions = newValue;\n            }\n        });\n        effect(() => {\n            const grid = this.gridRef.nativeElement\n            if (!grid) return;\n            const newValue = this.sortingExpressions();\n            if (!isEqual(newValue, grid.sortingExpressions ?? [])) {\n                grid.clearSort();\n                grid.sortingExpressions = newValue;\n            }\n        });\n    }\n\n    /**\n     * @hidden @internal\n     */\n    public ngOnInit(): void {\n        IgxGridLite.register();\n    }\n\n    //#region Public API\n\n    /**\n     * Performs a filter operation in the grid based on the passed expression(s).\n     */\n    public filter(config: IgxGridLiteFilteringExpression | IgxGridLiteFilteringExpression[]): void {\n        this.gridRef.nativeElement.filter(config as unknown as FilterExpression<T> | FilterExpression<T>[]);\n    }\n\n    /**\n     * Performs a sort operation in the grid based on the passed expression(s).\n     */\n    public sort(expressions: IgxGridLiteSortingExpression<T> | IgxGridLiteSortingExpression<T>[]) {\n        this.gridRef.nativeElement.sort(expressions);\n    }\n\n    /**\n     * Resets the current sort state of the control.\n     */\n    public clearSort(key?: Keys<T>): void {\n        this.gridRef.nativeElement.clearSort(key);\n    }\n\n    /**\n     * Resets the current filter state of the control.\n     */\n    public clearFilter(key?: Keys<T>): void {\n        this.gridRef.nativeElement.clearFilter(key);\n    }\n\n    /**\n     * Navigates to a position in the grid based on provided row index and column field.\n     * @param row The row index to navigate to\n     * @param options The column field to navigate to and whether to activate the cell\n     * @returns A promise that resolves when navigation completes.\n     */\n    public navigateTo(row: number, options?: IgxGridLiteNavigateToOptions<T>): Promise<void>;\n    /**\n     * Navigates to a position in the grid based on provided row index and column field.\n     * @param row The row index to navigate to\n     * @param column The column field to navigate to, if any\n     * @param activate Optionally also activate the navigated cell\n     * @deprecated Use `navigateTo(row, options)` instead.\n     */\n    public navigateTo(row: number, column?: Keys<T>, activate?: boolean): Promise<void>;\n    public async navigateTo(row: number, columnOrOptions?: Keys<T> | IgxGridLiteNavigateToOptions<T>, activate?: boolean): Promise<void> {\n        await this.gridRef.nativeElement.navigateTo(row, columnOrOptions as Keys<T>, activate);\n    }\n\n    /**\n     * Returns a {@link IgxGridLiteColumnConfiguration} for a given column.\n     */\n    public getColumn(id: Keys<T> | number): IgxGridLiteColumnConfiguration<T> | undefined {\n        return this.gridRef.nativeElement.getColumn(id);\n    }\n\n    //#endregion\n\n    //#region Event handlers\n\n    protected onSorted(_event: CustomEvent<SortingExpression<T>>): void {\n        this.sortingExpressions.set(this.gridRef.nativeElement.sortingExpressions ?? []);\n    }\n\n    protected onFiltered(_event: CustomEvent<FilterExpression<T>>): void {\n        this.filteringExpressions.set(this.gridRef.nativeElement.filterExpressions ?? []);\n    }\n\n    //#endregion\n\n}\n\ndeclare global {\n  interface HTMLElementTagNameMap {\n    [IgxGridLite.tagName]: IgxGridLite;\n  }\n\n    interface HTMLElementEventMap {\n        'sorting': CustomEvent<IgxGridLiteSortingExpression<any>>;\n        'sorted': CustomEvent<IgxGridLiteSortingExpression<any>>;\n        'filtering': CustomEvent<IgxGridLiteFilteringExpression<any>>;\n        'filtered': CustomEvent<IgxGridLiteFilteringExpression<any>>;\n    }\n}\n\n// see https://github.com/ng-packagr/ng-packagr/issues/3233\nexport {};\n","import { booleanAttribute, ChangeDetectionStrategy, Component, contentChild, CUSTOM_ELEMENTS_SCHEMA, Directive, effect, EmbeddedViewRef, inject, input, TemplateRef, ViewContainerRef } from '@angular/core';\nimport { ColumnConfiguration, ColumnSortConfiguration, IgcCellContext, IgcHeaderContext, Keys, DataType } from 'igniteui-grid-lite';\n\n/** Configuration object for grid columns. */\nexport type IgxGridLiteColumnConfiguration<T extends object = any> = ColumnConfiguration<T>;\n\nexport type IgxGridLiteColumnSortConfiguration<T extends object = any> = ColumnSortConfiguration<T>;\n\n\n/**\n * Directive providing type information for header template contexts.\n * Use this directive on ng-template elements that render header templates.\n *\n * @example\n * ```html\n * <ng-template igxGridLiteHeader let-column>\n *   <div>{{column.header}}</div>\n * </ng-template>\n * ```\n */\n@Directive({ selector: '[igxGridLiteHeader]' })\nexport class IgxGridLiteHeaderTemplateDirective<T extends object = any> {\n    public template = inject<TemplateRef<IgxGridLiteHeaderTemplateContext<T>>>(TemplateRef);\n\n    // eslint-disable-next-line @typescript-eslint/no-unused-vars\n    public static ngTemplateContextGuard<T extends object = any>(_: IgxGridLiteHeaderTemplateDirective<T>, ctx: any): ctx is IgxGridLiteHeaderTemplateContext<T> {\n        return true;\n    }\n}\n\n/**\n * Directive providing type information for cell template contexts.\n * Use this directive on ng-template elements that render cell templates.\n *\n * @example\n * ```html\n * <ng-template igxGridLiteCell let-value let-column=\"column\" let-rowIndex=\"rowIndex\" let-data=\"data\">\n *   <div>{{value}}</div>\n * </ng-template>\n * ```\n */\n@Directive({ selector: '[igxGridLiteCell]' })\nexport class IgxGridLiteCellTemplateDirective<T extends object = any> {\n    public template = inject<TemplateRef<IgxGridLiteCellTemplateContext<T>>>(TemplateRef);\n\n    // eslint-disable-next-line @typescript-eslint/no-unused-vars\n    public static ngTemplateContextGuard<T extends object = any>(_: IgxGridLiteCellTemplateDirective<T>, ctx: unknown): ctx is IgxGridLiteCellTemplateContext<T> {\n        return true;\n    }\n}\n\n@Component({\n    selector: 'igx-grid-lite-column',\n    changeDetection: ChangeDetectionStrategy.OnPush,\n    schemas: [CUSTOM_ELEMENTS_SCHEMA],\n    templateUrl: './grid-lite-column.component.html'\n})\nexport class IgxGridLiteColumnComponent<T extends object = any> {\n\n    //#region Internal state\n\n    private readonly _view = inject(ViewContainerRef);\n\n    /** Reference to the embedded view for the header template and its template function. */\n    private headerViewRef?: EmbeddedViewRef<IgxGridLiteHeaderTemplateContext<T>>;\n    protected headerTemplateFunc?: (ctx: IgcHeaderContext<T>) => Node[];\n\n    /**\n     * Embedded views for the cell template, one per cell element, and the template function.\n     * Keyed by cell, not by row data: the virtualizer recycles rows by index, so a cell can\n     * show another record without re-rendering, while a view keyed by data would move away.\n     */\n    private cellViewRefs? = new Map<IgcCellContext<T>['parent'], EmbeddedViewRef<IgxGridLiteCellTemplateContext<T>>>();\n    protected cellTemplateFunc?: (ctx: IgcCellContext<T>) => Node[];\n\n    /** Template directives used for inline templating */\n    private readonly headerTemplateDirective = contentChild(IgxGridLiteHeaderTemplateDirective<T>);\n    private readonly cellTemplateDirective = contentChild(IgxGridLiteCellTemplateDirective<T>);\n\n    //#endregion\n\n    //#region Inputs\n\n    /** The field from the data for this column. */\n    public readonly field = input<NoInfer<Keys<T>>>();\n\n    /** The data type of the column's values. */\n    public readonly dataType = input<DataType>('string');\n\n    /** The header text of the column. */\n    public readonly header = input<string>();\n\n    /** The width of the column. */\n    public readonly width = input<string>();\n\n    /** Indicates whether the column is hidden. */\n    public readonly hidden = input(false, { transform: booleanAttribute });\n\n    /** Indicates whether the column is resizable. */\n    public readonly resizable = input(false, { transform: booleanAttribute });\n\n    /** Indicates whether the column is sortable. */\n    public readonly sortable = input(false, { transform: booleanAttribute });\n\n    /** Whether sort operations will be case sensitive. */\n    public readonly sortingCaseSensitive = input(false, { transform: booleanAttribute });\n\n    /** Sort configuration for the column (e.g., custom comparer). */\n    public readonly sortConfiguration = input<IgxGridLiteColumnSortConfiguration<T>>();\n\n    /** Indicates whether the column is filterable. */\n    public readonly filterable = input(false, { transform: booleanAttribute });\n\n    /** Whether filter operations will be case sensitive. */\n    public readonly filteringCaseSensitive = input(false, { transform: booleanAttribute });\n\n    /** Custom header template for the column. */\n    public readonly headerTemplate = input<TemplateRef<IgxGridLiteHeaderTemplateContext<T>>>();\n\n    /** Custom cell template for the column. */\n    public readonly cellTemplate = input<TemplateRef<IgxGridLiteCellTemplateContext<T>>>();\n\n    //#endregion\n\n    constructor() {\n        effect((onCleanup) => {\n            const directive = this.headerTemplateDirective();\n            const template = this.headerTemplate() ?? directive?.template;\n            if (template) {\n                this.headerTemplateFunc = (ctx: IgcHeaderContext<T>) => {\n                    if (!this.headerViewRef) {\n                        const angularContext = {\n                            ...ctx,\n                            $implicit: ctx.column\n                        }\n                        this.headerViewRef = this._view.createEmbeddedView(template, angularContext);\n                    }\n                    return this.headerViewRef.rootNodes;\n                };\n            }\n            onCleanup(() => {\n                if (this.headerViewRef) {\n                    this.headerViewRef.destroy();\n                    this.headerViewRef = undefined;\n                }\n            })\n        });\n\n        effect((onCleanup) => {\n            const directive = this.cellTemplateDirective();\n            const template = this.cellTemplate() ?? directive?.template;\n            if (template) {\n                this.cellTemplateFunc = (ctx: IgcCellContext<T>) => {\n                    const oldViewRef = this.cellViewRefs!.get(ctx.parent);\n                    const angularContext = {\n                        ...ctx,\n                        $implicit: ctx.value,\n                    } as IgxGridLiteCellTemplateContext<T>;\n                    if (!oldViewRef) {\n                        const newViewRef = this._view.createEmbeddedView(template, angularContext);\n                        this.cellViewRefs!.set(ctx.parent, newViewRef);\n                        return newViewRef.rootNodes;\n                    }\n\n                    // Recycled cell: refresh its view now, the OnPush column won't do it\n                    Object.assign(oldViewRef.context, angularContext);\n                    oldViewRef.detectChanges();\n                    return oldViewRef.rootNodes;\n                };\n            }\n            onCleanup(() => {\n                this.cellViewRefs!.forEach((viewRef) => {\n                    viewRef.destroy();\n                });\n                this.cellViewRefs?.clear();\n            });\n        });\n    }\n}\n\n/**\n * Context provided to the header template.\n */\nexport type IgxGridLiteHeaderTemplateContext<T extends object = any> = IgcHeaderContext<T> & {\n    /**\n     * The current configuration for the column.\n     */\n    $implicit: IgcHeaderContext<T>['column'];\n}\n\n/**\n * Context provided to the header template.\n */\nexport type IgxGridLiteCellTemplateContext<T extends object = any> = IgcCellContext<T> & {\n    /**\n     * The value from the data source for this cell.\n     */\n    $implicit: IgcCellContext<T>['value'];\n};\n","<igc-grid-lite-column\n  [field]=\"field()\"\n  [dataType]=\"dataType()\"\n  [header]=\"header()\"\n  [width]=\"width()\"\n  [hidden]=\"hidden()\"\n  [resizable]=\"resizable()\"\n  [sortable]=\"sortable()\"\n  [sortingCaseSensitive]=\"sortingCaseSensitive()\"\n  [sortConfiguration]=\"sortConfiguration()\"\n  [filterable]=\"filterable()\"\n  [filteringCaseSensitive]=\"filteringCaseSensitive()\"\n  [headerTemplate]=\"headerTemplateFunc\"\n  [cellTemplate]=\"cellTemplateFunc\"\n></igc-grid-lite-column>\n"],"mappings":";;;;AAYA,IAAM,cAAN,MAAM,oBAA4C,YAAc;CACrD,WAAoB,UAAO;EAC9B,OAAO;CACX;CACO,OAAgB,WAAQ;EAE3B,MAAM,SAAQ;EAEd,IAAI,CAAC,eAAe,IAAI,YAAY,OAAO,GACvC,eAAe,OAAO,YAAY,SAAS,WAAW;CAE9D;AACH;AAgCD,IAAa,uBAAb,MAAa,qBAAoB;CAyD7B,IAAW,UAAO;EACd,OAAO,KAAK,QAAQ,cAAc,WAAW,CAAA;CACjD;CASA,IAAW,OAAI;EACX,OAAO,KAAK,QAAQ,cAAc,QAAQ,CAAA;CAC9C;CAMA,IAAW,WAAQ;EACf,OAAO,KAAK,QAAQ,cAAc,YAAY,CAAA;CAClD;CAIA,cAAA;EA9EiB,KAAA,UAAU,OAAO,UAAU;EAO5B,KAAA,OAAO,MAAW,CAAA,GAAG,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;EASrB,KAAA,eAAe,MAAM,OAAK;GAAA,GAAA,YAAA,EAAA,WAAA,eAAA,+BAAA,CAAA;GAAI,WAAW;EAAgB,CAAA;EAGzD,KAAA,iBAAiB,MAAiC,EAC9D,MAAM,WACT,GAAC,GAAA,YAAA,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