{ "version": 3, "sources": ["libs/va-filter2-table/src/lib/paginator-override/no-total-displayed.ts"], "sourcesContent": ["import { MatPaginatorIntl } from '@angular/material/paginator';\nimport { Injectable } from '@angular/core';\n\n/*\nDisplays the paginator range string without showing \"of {total}\".\nUseful for APIs that don't return the full total results amount in the API response.\nNOTE: adding this as a provider in common modules will cause the paginator to behave this way in any\ncomponents that import that module, which is probably not desired.\n*/\n@Injectable()\nexport class MatPaginatorNoTotalDisplayed extends MatPaginatorIntl {\n getRangeLabel = (page: number, pageSize: number, totalResults: number) => {\n const minPageAmount = page * pageSize + 1;\n let maxPageAmount = (page + 1) * pageSize;\n if (maxPageAmount > totalResults) {\n maxPageAmount = totalResults;\n }\n return `Showing items ${minPageAmount} - ${maxPageAmount}`;\n };\n}\n"], "mappings": "yFAUA,IAAaA,GAA6B,IAAA,CAApC,IAAOA,EAAP,MAAOA,UAAqCC,CAAgB,CADlEC,aAAA,qBAEE,KAAAC,cAAgB,CAACC,EAAcC,EAAkBC,IAAwB,CACvE,IAAMC,EAAgBH,EAAOC,EAAW,EACpCG,GAAiBJ,EAAO,GAAKC,EACjC,OAAIG,EAAgBF,IAClBE,EAAgBF,GAEX,iBAAiBC,CAAa,MAAMC,CAAa,EAC1D,8DARWR,CAA4B,IAAAS,GAA5BT,CAA4B,CAAA,CAAA,GAAA,wBAA5BA,EAA4BU,QAA5BV,EAA4BW,SAAA,CAAA,EAAnC,IAAOX,EAAPY,SAAOZ,CAA6B,GAAA", "names": ["MatPaginatorNoTotalDisplayed", "MatPaginatorIntl", "constructor", "getRangeLabel", "page", "pageSize", "totalResults", "minPageAmount", "maxPageAmount", "t", "factory", "\u0275fac", "_MatPaginatorNoTotalDisplayed"] }