{"_id":"@alfonmga/material-table","_rev":"1-6f6c3df78307ed5fc57afa63aa35e450","name":"@alfonmga/material-table","dist-tags":{"latest":"1.56.0"},"versions":{"1.56.0":{"name":"@alfonmga/material-table","version":"1.56.0","description":"Datatable for React based on https://material-ui.com/api/table/ with additional features","main":"dist/index.js","types":"types/index.d.ts","babel":{"extends":"./configs/.babelrc"},"scripts":{"start":"webpack-dev-server --config ./demo/webpack.config.js --mode development","build":"babel src --out-dir dist","lint":"npm run eslint && npm run tsc","eslint":"eslint src/** -c ./configs/.eslintrc","tsc":"tsc --noEmit --lib es6,dom --skipLibCheck types/index.d.ts","lint:fix":"eslint src/** --fix"},"husky":{"hooks":{"pre-commit":"npm run lint"}},"repository":{"type":"git","url":"git+https://github.com/mbrn/material-table.git"},"keywords":["react","material-ui","material","datatable","table"],"author":{"name":"Mehmet Baran"},"license":"MIT","bugs":{"url":"https://github.com/mbrn/material-table/issues"},"homepage":"https://github.com/mbrn/material-table#readme","devDependencies":{"@babel/cli":"7.1.2","@babel/core":"7.4.4","@babel/plugin-proposal-class-properties":"7.1.0","@babel/plugin-proposal-object-rest-spread":"7.0.0","@babel/plugin-transform-runtime":"7.1.0","@babel/preset-env":"^7.2.0","@babel/preset-react":"7.0.0","@material-ui/core":"^4.0.1","babel-eslint":"10.0.1","babel-loader":"^8.0.4","babel-polyfill":"^6.26.0","buble":"0.19.3","eslint":"5.7.0","eslint-config-defaults":"9.0.0","eslint-config-standard":"12.0.0","eslint-plugin-import":"2.14.0","eslint-plugin-node":"7.0.1","eslint-plugin-promise":"4.0.1","eslint-plugin-react":"7.11.1","eslint-plugin-standard":"4.0.0","husky":"^1.2.0","react":"^16.8.6","react-dom":"^16.8.6","react-hot-loader":"^4.3.12","typescript":"^3.2.2","webpack":"^4.27.1","webpack-cli":"^3.1.2","webpack-dev-server":"^3.1.10"},"dependencies":{"@date-io/date-fns":"^1.1.0","@material-ui/pickers":"^3.2.2","classnames":"^2.2.6","date-fns":"^2.0.0-alpha.27","debounce":"^1.2.0","fast-deep-equal":"2.0.1","filefy":"0.1.10","prop-types":"^15.6.2","react-beautiful-dnd":"11.0.3","react-double-scrollbar":"0.0.15"},"peerDependencies":{"@date-io/core":"^1.3.6","@material-ui/core":"^4.0.1","react":"^16.8.4","react-dom":"^16.8.4"},"gitHead":"d6a4b6de74fc86698696669ff698fb72e1bf25c3","_id":"@alfonmga/material-table@1.56.0","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"integrity":"sha512-EPOItjj6B8rsU/swnGo5dpcTRmmak7z1kAXGfAt5R35czTfSDTP6r1ZrJaiOfHtR10ZsFv2b7JpPYvyH2huUIg==","shasum":"fbd33c1a7bc65a5a59252e2efd1c9c9e4568ecd1","tarball":"https://registry.npmjs.org/@alfonmga/material-table/-/material-table-1.56.0.tgz","fileCount":27,"unpackedSize":249411,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeIiMhCRA9TVsSAnZWagAAgkAP/0dTGYFUUGzrL2x+hnr/\ns5pWhZ/8JLJdGpFN+ufL+h6pGTr8zry8aNCJgy7wAjnaR8Mkc7OQEy0rCMPn\ncavEE5iE8Ba1K6kvnvZ9FfCvRmV7dSG+Pidair9+CEA+JSLrsVLLPl3mJDCZ\nDQh1stnIn3MaNbSAR4PAn+qEQktj3qvPa48V4D1dOHjVw+TBNWM0/26IfA7C\nch35Wo70K9twXfS2IhGFf8i9IbC8SsG5UmVgq5KoIrlaYzTlQNkM9eHCNFwg\ns0kOglyWjtVixoDnu40qGf6uiCWfQhnnjeem0tpOslJ5IPk/0sxnCXkKYCrC\nV5/fbBrly4Tj0DbzNkTyjLeMVC0sc2+9XZftiLteg/I++FKKEAFRW+xA0CRm\nLZFSNTe/FWQJEq5CoI+yHtg7qhpD14ktmF/XHE6uHlfr1KfvVe5jyAVGmyXL\nae1vdBXHWPp2kNV7BQ3zbd5xgT5skPZBYazWSffWZ0l9jRTJ8LLcBqWBY40P\nFDIhvwEoP/A0V0wgFo27XFtFO2+rNzks9vL8dDM0EHDLhE1PTDsMZa5Hbtxk\nh5PLynGoLWQ9FqsH28llSmbG/j7yvx+SrgslPugFyLpxPO2xcHmZAfz5CZuS\nE2iNxd1ZIOwQm96EbYr3S39/GJSMFQAOzC9W4oaGRKWCxIxBOwEEa3cQlarY\nAhJW\r\n=jkTf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFw1h8Ez/UCqBqWf1U46Idph6BFFup+sGDjwr5x2hYjEAiAtMKr5PoqXgscbEvgGJo5/8T5HD/HUpwoYNJcGhlmk3g=="}]},"maintainers":[{"name":"alfonmga","email":"me@alfon.io"}],"_npmUser":{"name":"alfonmga","email":"me@alfon.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/material-table_1.56.0_1579295520914_0.23292996670762878"},"_hasShrinkwrap":false}},"time":{"created":"2020-01-17T21:12:00.874Z","1.56.0":"2020-01-17T21:12:01.034Z","modified":"2022-04-04T12:49:08.066Z"},"maintainers":[{"name":"alfonmga","email":"me@alfon.io"}],"description":"Datatable for React based on https://material-ui.com/api/table/ with additional features","homepage":"https://github.com/mbrn/material-table#readme","keywords":["react","material-ui","material","datatable","table"],"repository":{"type":"git","url":"git+https://github.com/mbrn/material-table.git"},"author":{"name":"Mehmet Baran"},"bugs":{"url":"https://github.com/mbrn/material-table/issues"},"license":"MIT","readme":"<p align=\"center\" style=\"box-shadow: 2px 2px;\">\r\n  <a href=\"https://material-table.com\" rel=\"noopener\" target=\"_blank\" ><img width=\"200\" src=\"https://raw.githubusercontent.com/mbrn/material-table.com/master/docs/assets/logo-back.png\" alt=\"material-table\"></a></p>\r\n</p>\r\n\r\n<h1 align=\"center\">material-table</h1>\r\n\r\n<div align=\"center\">\r\n\r\nA simple and powerful Datatable for React based on [Material-UI Table](https://material-ui.com/api/table/) with some additional features.\r\n\r\n[![Build Status](https://travis-ci.org/mbrn/material-table.svg?branch=master)](https://travis-ci.org/mbrn/material-table)\r\n[![npm package](https://img.shields.io/npm/v/material-table/latest.svg)](https://www.npmjs.com/package/material-table)\r\n[![NPM Downloads](https://img.shields.io/npm/dm/material-table.svg?style=flat)](https://npmcharts.com/compare/material-table?minimal=true)\r\n[![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/mbrn/material-table.svg)](http://isitmaintained.com/project/mbrn/material-table \"Average time to resolve an issue\")\r\n[![Follow on Twitter](https://img.shields.io/twitter/follow/baranmehmet.svg?label=follow+baranmehmet)](https://twitter.com/baranmehmet)\r\n[![Gitter chat](https://badges.gitter.im/gitterHQ/gitter.png)](https://gitter.im/material-table/Lobby)\r\n\r\n</div>\r\n\r\n## Key features\r\n\r\n- [Actions](https://material-table.com/#/docs/features/actions)\r\n- [Component overriding](https://material-table.com/#/docs/features/component-overriding)\r\n- [Custom column rendering](https://material-table.com/#/docs/features/custom-column-rendering)\r\n- [Detail Panel](https://material-table.com/#/docs/features/detail-panel)\r\n- [Editable](https://material-table.com/#/docs/features/editable)\r\n- [Export](https://material-table.com/#/docs/features/export)\r\n- [Filtering](https://material-table.com/#/docs/features/filtering)\r\n- [Grouping](https://material-table.com/#/docs/features/grouping)\r\n- [Localization](https://material-table.com/#/docs/features/localization)\r\n- [Remote Data](https://material-table.com/#/docs/features/remote-data)\r\n- [Search](https://material-table.com/#/docs/features/search)\r\n- [Selection](https://material-table.com/#/docs/features/selection)\r\n- [Sorting](https://material-table.com/#/docs/features/sorting)\r\n- [Styling](https://material-table.com/#/docs/features/styling)\r\n- [Tree Data](https://material-table.com/#/docs/features/tree-data)\r\n- and more\r\n\r\n## Demo and documentation\r\n\r\nYou can access all code examples and documentation on our site [**material-table.com**](https://material-table.com/).\r\n\r\n## Support material-table\r\n\r\nTo support material-table visit [SUPPORT](https://www.patreon.com/mbrn) page.\r\n\r\n## Prerequisites\r\n\r\nThe minimum `React` version material-table supports is `^16.8.5` since material-table `v1.36.1`. This is due to utilising [`react-beautiful-dnd`](https://github.com/atlassian/react-beautiful-dnd) for drag & drop functionality which uses hooks.\r\n\r\nIf you use an older version of react we suggest to upgrade your dependencies or use material-table `1.36.0`.\r\n\r\n## Installation\r\n\r\n#### 1.Install package\r\n\r\nTo install material-table with `npm`:\r\n\r\n    npm install material-table --save\r\n    npm install @material-ui/core --save\r\n\r\nTo install material-table with `yarn`:\r\n\r\n    yarn add material-table\r\n    yarn add @material-ui/core\r\n\r\n#### 2.Add material icons\r\n\r\nThere are two ways to use icons in material-table either import the material icons font via html OR import material icons and use the material-table `icons` prop.\r\n\r\n##### HTML\r\n\r\n```html\r\n<link\r\n  rel=\"stylesheet\"\r\n  href=\"https://fonts.googleapis.com/icon?family=Material+Icons\"\r\n/>\r\n```\r\n\r\nOR\r\n\r\n##### Import Material icons\r\n\r\nIcons can be imported to be used in material-table offering more flexibility for customising the look and feel of material table over using a font library.\r\n\r\nTo install @material-ui/icons with `npm`:\r\n\r\n    npm install @material-ui/icons --save\r\n\r\nTo install @material-ui/icons with `yarn`:\r\n\r\n    yarn add @material-ui/icons\r\n\r\nIf your environment doesn't support tree-shaking, the **recommended** way to import the icons is the following:\r\n\r\n```jsx\r\nimport AddBox from \"@material-ui/icons/AddBox\";\r\nimport ArrowDownward from \"@material-ui/icons/ArrowDownward\";\r\n```\r\n\r\nIf your environment support tree-shaking you can also import the icons this way:\r\n\r\n```jsx\r\nimport { AddBox, ArrowDownward } from \"@material-ui/icons\";\r\n```\r\n\r\nNote: Importing named exports in this way will result in the code for _every icon_ being included in your project, so is not recommended unless you configure [tree-shaking](https://webpack.js.org/guides/tree-shaking/). It may also impact Hot Module Reload performance. Source: [@material-ui/icons](https://github.com/mui-org/material-ui/blob/master/packages/material-ui-icons/README.md#imports)\r\n\r\nExample\r\n\r\n```jsx\r\nimport { forwardRef } from 'react';\r\n\r\nimport AddBox from '@material-ui/icons/AddBox';\r\nimport ArrowDownward from '@material-ui/icons/ArrowDownward';\r\nimport Check from '@material-ui/icons/Check';\r\nimport ChevronLeft from '@material-ui/icons/ChevronLeft';\r\nimport ChevronRight from '@material-ui/icons/ChevronRight';\r\nimport Clear from '@material-ui/icons/Clear';\r\nimport DeleteOutline from '@material-ui/icons/DeleteOutline';\r\nimport Edit from '@material-ui/icons/Edit';\r\nimport FilterList from '@material-ui/icons/FilterList';\r\nimport FirstPage from '@material-ui/icons/FirstPage';\r\nimport LastPage from '@material-ui/icons/LastPage';\r\nimport Remove from '@material-ui/icons/Remove';\r\nimport SaveAlt from '@material-ui/icons/SaveAlt';\r\nimport Search from '@material-ui/icons/Search';\r\nimport ViewColumn from '@material-ui/icons/ViewColumn';\r\n\r\nconst tableIcons = {\r\n    Add: forwardRef((props, ref) => <AddBox {...props} ref={ref} />),\r\n    Check: forwardRef((props, ref) => <Check {...props} ref={ref} />),\r\n    Clear: forwardRef((props, ref) => <Clear {...props} ref={ref} />),\r\n    Delete: forwardRef((props, ref) => <DeleteOutline {...props} ref={ref} />),\r\n    DetailPanel: forwardRef((props, ref) => <ChevronRight {...props} ref={ref} />),\r\n    Edit: forwardRef((props, ref) => <Edit {...props} ref={ref} />),\r\n    Export: forwardRef((props, ref) => <SaveAlt {...props} ref={ref} />),\r\n    Filter: forwardRef((props, ref) => <FilterList {...props} ref={ref} />),\r\n    FirstPage: forwardRef((props, ref) => <FirstPage {...props} ref={ref} />),\r\n    LastPage: forwardRef((props, ref) => <LastPage {...props} ref={ref} />),\r\n    NextPage: forwardRef((props, ref) => <ChevronRight {...props} ref={ref} />),\r\n    PreviousPage: forwardRef((props, ref) => <ChevronLeft {...props} ref={ref} />),\r\n    ResetSearch: forwardRef((props, ref) => <Clear {...props} ref={ref} />),\r\n    Search: forwardRef((props, ref) => <Search {...props} ref={ref} />),\r\n    SortArrow: forwardRef((props, ref) => <ArrowDownward {...props} ref={ref} />),\r\n    ThirdStateCheck: forwardRef((props, ref) => <Remove {...props} ref={ref} />),\r\n    ViewColumn: forwardRef((props, ref) => <ViewColumn {...props} ref={ref} />)\r\n  };\r\n\r\n<MaterialTable\r\n  icons={tableIcons}\r\n  ...\r\n/>\r\n```\r\n\r\n## Usage\r\n\r\nHere is a basic example of using material-table within a react application.\r\n\r\n```jsx\r\nimport React, { Component } from \"react\";\r\nimport ReactDOM from \"react-dom\";\r\nimport MaterialTable from \"material-table\";\r\n\r\nclass App extends Component {\r\n  render() {\r\n    return (\r\n      <div style={{ maxWidth: \"100%\" }}>\r\n        <MaterialTable\r\n          columns={[\r\n            { title: \"Adı\", field: \"name\" },\r\n            { title: \"Soyadı\", field: \"surname\" },\r\n            { title: \"Doğum Yılı\", field: \"birthYear\", type: \"numeric\" },\r\n            {\r\n              title: \"Doğum Yeri\",\r\n              field: \"birthCity\",\r\n              lookup: { 34: \"İstanbul\", 63: \"Şanlıurfa\" }\r\n            }\r\n          ]}\r\n          data={[\r\n            { name: \"Mehmet\", surname: \"Baran\", birthYear: 1987, birthCity: 63 }\r\n          ]}\r\n          title=\"Demo Title\"\r\n        />\r\n      </div>\r\n    );\r\n  }\r\n}\r\n\r\nReactDOM.render(<App />, document.getElementById(\"react-div\"));\r\n```\r\n\r\n## Contributing\r\n\r\nWe'd love to have your helping hand on `material-table`! See [CONTRIBUTING.md](https://github.com/mbrn/material-table/blob/master/.github/CONTRIBUTING.md) for more information on what we're looking for and how to get started.\r\n\r\nIf you have any sort of doubt, idea or just want to talk about the project, feel free to join [our chat on Gitter](https://gitter.im/material-table/Lobby) :)\r\n\r\n## License\r\n\r\nThis project is licensed under the terms of the [MIT license](/LICENSE).\r\n","readmeFilename":"README.md"}