{"version":3,"file":"preset.cjs","names":["createAdapterStandardFeatures","bulkActions","columnMenu","densityChooser","exportCsv","filters","findInTable","fitColumns","fullscreen","grouping","headerFilters","multiSort","resizableColumns","savedViews","statusBar","standardFeatures"],"sources":["../src/preset.ts"],"sourcesContent":["/**\n * The standard preset — `@adapttable/mui/preset`.\n *\n * One import for the table most people want: every feature that is useful\n * with no configuration at all, drawn with MUI's own components. It is\n * assembled from the same public feature entries a caller would import by\n * hand, so nothing here is reachable only through the preset, and appending\n * or replacing an entry needs no escape hatch — the result is an ordinary\n * array.\n *\n * A feature that cannot work without input is NOT in the zero-argument list.\n * Grouping with no key, bulk actions with no actions and saved views with no\n * options are inert, and shipping an inert implementation is the cost this\n * whole architecture exists to avoid. Pass the option and the feature joins.\n *\n * Selection statistics is callable bare but still excluded: it needs a cell\n * range, which needs `cellNavigation`, while arming a row-selection column on\n * its own. Import it directly when you want it.\n *\n * Because this entry statically imports everything it can compose, its own\n * bundle contains the optional members whether or not you pass their options.\n * That is the trade the preset makes: one import instead of a list. A caller\n * counting every byte imports the individual features instead — see\n * `docs/features.md` for the measured difference.\n */\nimport { createAdapterStandardFeatures } from \"@adapttable/react/adapter\";\nexport type { StandardFeatureOptions } from \"@adapttable/react/adapter\";\n\nimport { bulkActions } from \"./bulk-actions\";\nimport { columnMenu } from \"./column-menu\";\nimport { densityChooser } from \"./density\";\nimport { exportCsv } from \"./export\";\nimport { filters } from \"./filters\";\nimport { findInTable } from \"./find-in-table\";\nimport { fitColumns } from \"./fit-columns\";\nimport { fullscreen } from \"./fullscreen\";\nimport { grouping } from \"./grouping\";\nimport { headerFilters } from \"./header-filters\";\nimport { multiSort } from \"./multi-sort\";\nimport { resizableColumns } from \"./resizable-columns\";\nimport { savedViews } from \"./saved-views\";\nimport { statusBar } from \"./status-bar\";\n\n/** The features a good table has by default. @public */\nexport const standardFeatures = createAdapterStandardFeatures({\n  columnMenu,\n  densityChooser,\n  exportCsv,\n  findInTable,\n  fitColumns,\n  fullscreen,\n  headerFilters,\n  multiSort,\n  resizableColumns,\n  statusBar,\n  grouping,\n  bulkActions,\n  filters,\n  savedViews,\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4CA,MAAae,oBAAAA,GAAmBf,0BAAAA,8BAAAA,CAA8B;CAC5DE,YAAAA,oBAAAA;CACAC,gBAAAA,gBAAAA;CACAC,WAAAA,eAAAA;CACAE,aAAAA,sBAAAA;CACAC,YAAAA,2BAAAA;CACAC,YAAAA,mBAAAA;CACAE,eAAAA,uBAAAA;CACAC,WAAAA,2BAAAA;CACAC,kBAAAA,2BAAAA;CACAE,WAAAA,mBAAAA;CACAL,UAAAA,iBAAAA;CACAR,aAAAA,qBAAAA;CACAI,SAAAA,gBAAAA;CACAQ,YAAAA,oBAAAA;AACF,CAAC"}