{"version":3,"file":"ngx-datatables-net-material.mjs","sources":["../../../projects/ngx-datatables-net/material/src/with-material.ts","../../../projects/ngx-datatables-net/material/src/public-api.ts","../../../projects/ngx-datatables-net/material/src/ngx-datatables-net-material.ts"],"sourcesContent":["import DataTable from 'datatables.net';\nimport { DATA_TABLE, DT_STYLE_SCOPE, type DataTablesFeature } from 'ngx-datatables-net';\n\n/** Options for the Material styling adapter. */\nexport interface MaterialStylingOptions {\n  /**\n   * Extra class(es) to scope the adapter stylesheet under. Defaults to `'ngxdt-material'`.\n   * Override only if you ship a customized copy of the stylesheet under a different scope.\n   */\n  scopeClass?: string;\n}\n\n/**\n * Use the authored Material Design styling.\n *\n * DataTables ships no official Material package, so this adapter uses the core constructor and a\n * self-contained, scoped stylesheet (`ngx-datatables-net/material/styles/...css`). The directive\n * adds the `ngxdt-material` scope class to the container automatically.\n *\n * @example\n * provideDataTables(withMaterial())\n */\nexport function withMaterial(options: MaterialStylingOptions = {}): DataTablesFeature {\n  return {\n    providers: [\n      { provide: DATA_TABLE, useValue: DataTable },\n      { provide: DT_STYLE_SCOPE, useValue: options.scopeClass ?? 'ngxdt-material' },\n    ],\n  };\n}\n","/*\n * ngx-datatables-net/material, Material Design styling adapter.\n *\n * DataTables has NO official Material styling package, this adapter is authored by us. It uses the\n * core (unstyled-markup) constructor and ships a self-contained stylesheet scoped under\n * `.ngxdt-material` (added to the container automatically via the `DT_STYLE_SCOPE` token).\n *\n * Include the stylesheet in your app, e.g. angular.json styles:\n *   \"node_modules/ngx-datatables-net/material/styles/ngx-datatables-net.material.css\"\n */\nexport * from './with-material';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;AAYA;;;;;;;;;AASG;AACG,SAAU,YAAY,CAAC,OAAA,GAAkC,EAAE,EAAA;IAC/D,OAAO;AACL,QAAA,SAAS,EAAE;AACT,YAAA,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE;YAC5C,EAAE,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,OAAO,CAAC,UAAU,IAAI,gBAAgB,EAAE;AAC9E,SAAA;KACF;AACH;;AC7BA;;;;;;;;;AASG;;ACTH;;AAEG;;;;"}