Completely updated React, fixed #11, (hopefully)
This commit is contained in:
1 parent
6e0afd6e2a
commit
34e5f5139a
13674 files changed
+333460
-473219
No files matched your search
+1772
-1895
File diff suppressed because it is too large.
Load diff
Generated
Vendored
+1
-1
@@ -1 +1 @@
|
||||
{"version":3,"file":"dx-react-grid.es.js","sources":["../src/plugins/grid-core.jsx","../src/grid.jsx","../src/column-chooser.jsx","../src/plugins/filtering-state.jsx","../src/plugins/local-filtering.jsx","../src/plugins/editing-state.jsx","../src/plugins/paging-state.jsx","../src/plugins/local-paging.jsx","../src/plugins/grouping-state.jsx","../src/plugins/local-grouping.jsx","../src/plugins/custom-grouping.jsx","../src/plugins/selection-state.jsx","../src/plugins/sorting-state.jsx","../src/plugins/local-sorting.jsx","../src/plugins/drag-drop-context.jsx","../src/plugins/table-column-reordering.jsx","../src/plugins/table-view.jsx","../src/plugins/table-selection.jsx","../src/plugins/row-detail-state.jsx","../src/plugins/table-row-detail.jsx","../src/plugins/table-group-row.jsx","../src/plugins/table-header-row.jsx","../src/plugins/table-filter-row.jsx","../src/plugins/table-edit-row.jsx","../src/plugins/table-edit-column.jsx","../src/plugins/table-column-resizing.jsx","../src/plugins/paging-panel.jsx","../src/plugins/grouping-panel.jsx","../src/plugins/data-type-provider.jsx","../src/plugins/table-column-visibility.jsx","../src/components/table-layout.jsx","../src/components/table-layout/column-group.jsx","../src/components/table-layout/row-layout.jsx","../src/components/table-layout/virtual-table-utils.js","../src/components/table-layout/virtual-table-layout.jsx","../src/components/table-layout/rows-block-layout.jsx","../src/components/table-layout/static-table-layout.jsx","../src/components/group-panel-layout.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { PluginContainer, Getter, Template, TemplatePlaceholder } from '@devexpress/dx-react-core';\nimport { rowIdGetter, cellValueGetter } from '@devexpress/dx-grid-core';\n\nexport class GridCore extends React.PureComponent {\n render() {\n const {\n rows,\n columns,\n getRowId,\n getCellValue,\n rootTemplate,\n headerPlaceholderTemplate,\n footerPlaceholderTemplate,\n } = this.props;\n\n return (\n <PluginContainer>\n <Getter name=\"rows\" value={rows} />\n <Getter name=\"getRowId\" value={rowIdGetter(getRowId, rows)} />\n <Getter name=\"columns\" value={columns} />\n <Getter name=\"getCellValue\" value={cellValueGetter(getCellValue, columns)} />\n <Template name=\"header\" />\n <Template name=\"body\" />\n <Template name=\"footer\" />\n <Template name=\"root\">\n {() => rootTemplate({\n headerTemplate: () => (\n <TemplatePlaceholder name=\"header\">\n {content => (headerPlaceholderTemplate\n ? headerPlaceholderTemplate({ children: content })\n : content)}\n </TemplatePlaceholder>\n ),\n bodyTemplate: () => <TemplatePlaceholder name=\"body\" />,\n footerTemplate: () => (\n <TemplatePlaceholder name=\"footer\">\n {content => (footerPlaceholderTemplate\n ? footerPlaceholderTemplate({ children: content })\n : content)}\n </TemplatePlaceholder>\n ),\n })}\n </Template>\n </PluginContainer>\n );\n }\n}\n\nGridCore.propTypes = {\n rows: PropTypes.array.isRequired,\n getRowId: PropTypes.func,\n getCellValue: PropTypes.func,\n columns: PropTypes.array.isRequired,\n rootTemplate: PropTypes.func.isRequired,\n headerPlaceholderTemplate: PropTypes.func,\n footerPlaceholderTemplate: PropTypes.func,\n};\n\nGridCore.defaultProps = {\n getRowId: null,\n getCellValue: null,\n headerPlaceholderTemplate: null,\n footerPlaceholderTemplate: null,\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { PluginHost } from '@devexpress/dx-react-core';\nimport { GridCore } from './plugins/grid-core';\n\nexport const Grid = ({\n rows,\n columns,\n getRowId,\n getCellValue,\n rootTemplate,\n headerPlaceholderTemplate,\n footerPlaceholderTemplate,\n children,\n}) => (\n <PluginHost>\n <GridCore\n rows={rows}\n columns={columns}\n getRowId={getRowId}\n getCellValue={getCellValue}\n rootTemplate={rootTemplate}\n headerPlaceholderTemplate={headerPlaceholderTemplate}\n footerPlaceholderTemplate={footerPlaceholderTemplate}\n />\n {children}\n </PluginHost>\n);\n\nGrid.propTypes = {\n rows: PropTypes.array.isRequired,\n getRowId: PropTypes.func,\n getCellValue: PropTypes.func,\n columns: PropTypes.array.isRequired,\n rootTemplate: PropTypes.func.isRequired,\n headerPlaceholderTemplate: PropTypes.func,\n footerPlaceholderTemplate: PropTypes.func,\n children: PropTypes.oneOfType([\n PropTypes.arrayOf(PropTypes.node),\n PropTypes.node,\n ]),\n};\n\nGrid.defaultProps = {\n getRowId: null,\n getCellValue: null,\n headerPlaceholderTemplate: null,\n footerPlaceholderTemplate: null,\n children: null,\nLine truncated
|
||||
{"version":3,"file":"dx-react-grid.es.js","sources":["../src/plugins/grid-core.jsx","../src/grid.jsx","../src/plugins/column-chooser.jsx","../src/utils/state-helper.js","../src/plugins/filtering-state.jsx","../src/plugins/integrated-filtering.jsx","../src/plugins/editing-state.jsx","../src/plugins/paging-state.jsx","../src/plugins/integrated-paging.jsx","../src/plugins/custom-paging.jsx","../src/plugins/grouping-state.jsx","../src/plugins/integrated-grouping.jsx","../src/plugins/custom-grouping.jsx","../src/plugins/selection-state.jsx","../src/plugins/integrated-selection.jsx","../src/plugins/sorting-state.jsx","../src/plugins/integrated-sorting.jsx","../src/plugins/drag-drop-provider.jsx","../src/plugins/table-column-reordering.jsx","../src/plugins/table.jsx","../src/plugins/table-selection.jsx","../src/plugins/row-detail-state.jsx","../src/plugins/table-row-detail.jsx","../src/plugins/table-group-row.jsx","../src/plugins/table-header-row.jsx","../src/plugins/table-filter-row.jsx","../src/plugins/table-edit-row.jsx","../src/plugins/table-edit-column.jsx","../src/plugins/table-column-resizing.jsx","../src/plugins/paging-panel.jsx","../src/plugins/grouping-panel.jsx","../src/plugins/data-type-provider.jsx","../src/plugins/table-column-visibility.jsx","../src/components/table-layout.jsx","../src/components/table-layout/column-group.jsx","../src/components/table-layout/row-layout.jsx","../src/components/table-layout/virtual-table-utils.js","../src/components/table-layout/virtual-table-layout.jsx","../src/components/table-layout/rows-block-layout.jsx","../src/components/table-layout/static-table-layout.jsx","../src/components/group-panel-layout/item-layout.jsx","../src/components/group-panel-layout.jsx","../src/plugins/toolbar.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { Plugin, Getter, Template, TemplatePlaceholder } from '@devexpress/dx-react-core';\nimport { rowIdGetter, cellValueGetter } from '@devexpress/dx-grid-core';\n\nexport class GridCore extends React.PureComponent {\n render() {\n const {\n rows,\n columns,\n getRowId,\n getCellValue,\n rootComponent: Root,\n } = this.props;\n\n return (\n <Plugin>\n <Getter name=\"rows\" value={rows} />\n <Getter name=\"getRowId\" value={rowIdGetter(getRowId, rows)} />\n <Getter name=\"columns\" value={columns} />\n <Getter name=\"getCellValue\" value={cellValueGetter(getCellValue, columns)} />\n <Template name=\"header\" />\n <Template name=\"body\" />\n <Template name=\"footer\" />\n <Template name=\"root\">\n <Root>\n <TemplatePlaceholder name=\"header\" />\n <TemplatePlaceholder name=\"body\" />\n <TemplatePlaceholder name=\"footer\" />\n </Root>\n </Template>\n </Plugin>\n );\n }\n}\n\nGridCore.propTypes = {\n rows: PropTypes.array.isRequired,\n getRowId: PropTypes.func,\n getCellValue: PropTypes.func,\n columns: PropTypes.array.isRequired,\n rootComponent: PropTypes.func.isRequired,\n};\n\nGridCore.defaultProps = {\n getRowId: undefined,\n getCellValue: undefined,\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { PluginHost } from '@devexpress/dx-react-core';\nimport { GridCore } from './plugins/grid-core';\n\nexport const Grid = ({\n rows,\n columns,\n getRowId,\n getCellValue,\n rootComponent,\n children,\n}) => (\n <PluginHost>\n <GridCore\n rows={rows}\n columns={columns}\n getRowId={getRowId}\n getCellValue={getCellValue}\n rootComponent={rootComponent}\n />\n {children}\n </PluginHost>\n);\n\nGrid.propTypes = {\n rows: PropTypes.array.isRequired,\n getRowId: PropTypes.func,\n getCellValue: PropTypes.func,\n columns: PropTypes.array.isRequired,\n rootComponent: PropTypes.func.isRequired,\n children: PropTypes.oneOfType([\n PropTypes.arrayOf(PropTypes.node),\n PropTypes.node,\n ]),\n};\n\nGrid.defaultProps = {\n getRowId: undefined,\n getCellValue: undefined,\n children: undefined,\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport {\n Template, TemplatePlaceholder, Plugin, TemplateConnector,\n} from '@devexpress/dx-react-core';\n\nimport { getMessagesFormatter, columnChooserItems } from '@devexpress/dx-grid-core';\n\nconst pluginDependencies = [\n { name: 'TableColumnVisibility' },\n { name: 'Toolbar' },\n];\nexport class ColumnChooser extends React.PureComponent {\n constructor(props) {\n super(props);\n\n this.state = {\n visible: false,\n };\n\n this.handleToggle = this.handleToggle.bind(this);\n this.handleHide = this.handleHide.bind(this);\n this.buttonRef = this.buttonRef.bind(this);\n }\n buttonRef(button) {\n this.button = button;\n }\n handleToggle() {\n this.setState({ visible: !this.state.visible });\n }\n handleHide() {\n this.setState({ visible: false });\n }\n Line truncated
|
||||
+1778
-1898
File diff suppressed because it is too large.
Load diff
Generated
Vendored
+1
-1
@@ -1 +1 @@
|
||||
{"version":3,"file":"dx-react-grid.umd.js","sources":["../src/plugins/grid-core.jsx","../src/grid.jsx","../src/column-chooser.jsx","../src/plugins/filtering-state.jsx","../src/plugins/local-filtering.jsx","../src/plugins/editing-state.jsx","../src/plugins/paging-state.jsx","../src/plugins/local-paging.jsx","../src/plugins/grouping-state.jsx","../src/plugins/local-grouping.jsx","../src/plugins/custom-grouping.jsx","../src/plugins/selection-state.jsx","../src/plugins/sorting-state.jsx","../src/plugins/local-sorting.jsx","../src/plugins/drag-drop-context.jsx","../src/plugins/table-column-reordering.jsx","../src/plugins/table-view.jsx","../src/plugins/table-selection.jsx","../src/plugins/row-detail-state.jsx","../src/plugins/table-row-detail.jsx","../src/plugins/table-group-row.jsx","../src/plugins/table-header-row.jsx","../src/plugins/table-filter-row.jsx","../src/plugins/table-edit-row.jsx","../src/plugins/table-edit-column.jsx","../src/plugins/table-column-resizing.jsx","../src/plugins/paging-panel.jsx","../src/plugins/grouping-panel.jsx","../src/plugins/data-type-provider.jsx","../src/plugins/table-column-visibility.jsx","../src/components/table-layout.jsx","../src/components/table-layout/column-group.jsx","../src/components/table-layout/row-layout.jsx","../src/components/table-layout/virtual-table-utils.js","../src/components/table-layout/virtual-table-layout.jsx","../src/components/table-layout/rows-block-layout.jsx","../src/components/table-layout/static-table-layout.jsx","../src/components/group-panel-layout.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { PluginContainer, Getter, Template, TemplatePlaceholder } from '@devexpress/dx-react-core';\nimport { rowIdGetter, cellValueGetter } from '@devexpress/dx-grid-core';\n\nexport class GridCore extends React.PureComponent {\n render() {\n const {\n rows,\n columns,\n getRowId,\n getCellValue,\n rootTemplate,\n headerPlaceholderTemplate,\n footerPlaceholderTemplate,\n } = this.props;\n\n return (\n <PluginContainer>\n <Getter name=\"rows\" value={rows} />\n <Getter name=\"getRowId\" value={rowIdGetter(getRowId, rows)} />\n <Getter name=\"columns\" value={columns} />\n <Getter name=\"getCellValue\" value={cellValueGetter(getCellValue, columns)} />\n <Template name=\"header\" />\n <Template name=\"body\" />\n <Template name=\"footer\" />\n <Template name=\"root\">\n {() => rootTemplate({\n headerTemplate: () => (\n <TemplatePlaceholder name=\"header\">\n {content => (headerPlaceholderTemplate\n ? headerPlaceholderTemplate({ children: content })\n : content)}\n </TemplatePlaceholder>\n ),\n bodyTemplate: () => <TemplatePlaceholder name=\"body\" />,\n footerTemplate: () => (\n <TemplatePlaceholder name=\"footer\">\n {content => (footerPlaceholderTemplate\n ? footerPlaceholderTemplate({ children: content })\n : content)}\n </TemplatePlaceholder>\n ),\n })}\n </Template>\n </PluginContainer>\n );\n }\n}\n\nGridCore.propTypes = {\n rows: PropTypes.array.isRequired,\n getRowId: PropTypes.func,\n getCellValue: PropTypes.func,\n columns: PropTypes.array.isRequired,\n rootTemplate: PropTypes.func.isRequired,\n headerPlaceholderTemplate: PropTypes.func,\n footerPlaceholderTemplate: PropTypes.func,\n};\n\nGridCore.defaultProps = {\n getRowId: null,\n getCellValue: null,\n headerPlaceholderTemplate: null,\n footerPlaceholderTemplate: null,\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { PluginHost } from '@devexpress/dx-react-core';\nimport { GridCore } from './plugins/grid-core';\n\nexport const Grid = ({\n rows,\n columns,\n getRowId,\n getCellValue,\n rootTemplate,\n headerPlaceholderTemplate,\n footerPlaceholderTemplate,\n children,\n}) => (\n <PluginHost>\n <GridCore\n rows={rows}\n columns={columns}\n getRowId={getRowId}\n getCellValue={getCellValue}\n rootTemplate={rootTemplate}\n headerPlaceholderTemplate={headerPlaceholderTemplate}\n footerPlaceholderTemplate={footerPlaceholderTemplate}\n />\n {children}\n </PluginHost>\n);\n\nGrid.propTypes = {\n rows: PropTypes.array.isRequired,\n getRowId: PropTypes.func,\n getCellValue: PropTypes.func,\n columns: PropTypes.array.isRequired,\n rootTemplate: PropTypes.func.isRequired,\n headerPlaceholderTemplate: PropTypes.func,\n footerPlaceholderTemplate: PropTypes.func,\n children: PropTypes.oneOfType([\n PropTypes.arrayOf(PropTypes.node),\n PropTypes.node,\n ]),\n};\n\nGrid.defaultProps = {\n getRowId: null,\n getCellValue: null,\n headerPlaceholderTemplate: null,\n footerPlaceholderTemplate: null,\n children: null,\Line truncated
|
||||
{"version":3,"file":"dx-react-grid.umd.js","sources":["../src/plugins/grid-core.jsx","../src/grid.jsx","../src/plugins/column-chooser.jsx","../src/utils/state-helper.js","../src/plugins/filtering-state.jsx","../src/plugins/integrated-filtering.jsx","../src/plugins/editing-state.jsx","../src/plugins/paging-state.jsx","../src/plugins/integrated-paging.jsx","../src/plugins/custom-paging.jsx","../src/plugins/grouping-state.jsx","../src/plugins/integrated-grouping.jsx","../src/plugins/custom-grouping.jsx","../src/plugins/selection-state.jsx","../src/plugins/integrated-selection.jsx","../src/plugins/sorting-state.jsx","../src/plugins/integrated-sorting.jsx","../src/plugins/drag-drop-provider.jsx","../src/plugins/table-column-reordering.jsx","../src/plugins/table.jsx","../src/plugins/table-selection.jsx","../src/plugins/row-detail-state.jsx","../src/plugins/table-row-detail.jsx","../src/plugins/table-group-row.jsx","../src/plugins/table-header-row.jsx","../src/plugins/table-filter-row.jsx","../src/plugins/table-edit-row.jsx","../src/plugins/table-edit-column.jsx","../src/plugins/table-column-resizing.jsx","../src/plugins/paging-panel.jsx","../src/plugins/grouping-panel.jsx","../src/plugins/data-type-provider.jsx","../src/plugins/table-column-visibility.jsx","../src/components/table-layout.jsx","../src/components/table-layout/column-group.jsx","../src/components/table-layout/row-layout.jsx","../src/components/table-layout/virtual-table-utils.js","../src/components/table-layout/virtual-table-layout.jsx","../src/components/table-layout/rows-block-layout.jsx","../src/components/table-layout/static-table-layout.jsx","../src/components/group-panel-layout/item-layout.jsx","../src/components/group-panel-layout.jsx","../src/plugins/toolbar.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { Plugin, Getter, Template, TemplatePlaceholder } from '@devexpress/dx-react-core';\nimport { rowIdGetter, cellValueGetter } from '@devexpress/dx-grid-core';\n\nexport class GridCore extends React.PureComponent {\n render() {\n const {\n rows,\n columns,\n getRowId,\n getCellValue,\n rootComponent: Root,\n } = this.props;\n\n return (\n <Plugin>\n <Getter name=\"rows\" value={rows} />\n <Getter name=\"getRowId\" value={rowIdGetter(getRowId, rows)} />\n <Getter name=\"columns\" value={columns} />\n <Getter name=\"getCellValue\" value={cellValueGetter(getCellValue, columns)} />\n <Template name=\"header\" />\n <Template name=\"body\" />\n <Template name=\"footer\" />\n <Template name=\"root\">\n <Root>\n <TemplatePlaceholder name=\"header\" />\n <TemplatePlaceholder name=\"body\" />\n <TemplatePlaceholder name=\"footer\" />\n </Root>\n </Template>\n </Plugin>\n );\n }\n}\n\nGridCore.propTypes = {\n rows: PropTypes.array.isRequired,\n getRowId: PropTypes.func,\n getCellValue: PropTypes.func,\n columns: PropTypes.array.isRequired,\n rootComponent: PropTypes.func.isRequired,\n};\n\nGridCore.defaultProps = {\n getRowId: undefined,\n getCellValue: undefined,\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { PluginHost } from '@devexpress/dx-react-core';\nimport { GridCore } from './plugins/grid-core';\n\nexport const Grid = ({\n rows,\n columns,\n getRowId,\n getCellValue,\n rootComponent,\n children,\n}) => (\n <PluginHost>\n <GridCore\n rows={rows}\n columns={columns}\n getRowId={getRowId}\n getCellValue={getCellValue}\n rootComponent={rootComponent}\n />\n {children}\n </PluginHost>\n);\n\nGrid.propTypes = {\n rows: PropTypes.array.isRequired,\n getRowId: PropTypes.func,\n getCellValue: PropTypes.func,\n columns: PropTypes.array.isRequired,\n rootComponent: PropTypes.func.isRequired,\n children: PropTypes.oneOfType([\n PropTypes.arrayOf(PropTypes.node),\n PropTypes.node,\n ]),\n};\n\nGrid.defaultProps = {\n getRowId: undefined,\n getCellValue: undefined,\n children: undefined,\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport {\n Template, TemplatePlaceholder, Plugin, TemplateConnector,\n} from '@devexpress/dx-react-core';\n\nimport { getMessagesFormatter, columnChooserItems } from '@devexpress/dx-grid-core';\n\nconst pluginDependencies = [\n { name: 'TableColumnVisibility' },\n { name: 'Toolbar' },\n];\nexport class ColumnChooser extends React.PureComponent {\n constructor(props) {\n super(props);\n\n this.state = {\n visible: false,\n };\n\n this.handleToggle = this.handleToggle.bind(this);\n this.handleHide = this.handleHide.bind(this);\n this.buttonRef = this.buttonRef.bind(this);\n }\n buttonRef(button) {\n this.button = button;\n }\n handleToggle() {\n this.setState({ visible: !this.state.visible });\n }\n handleHide() {\n this.setState({ visible: false });\n }\nLine truncated
|
||||
Reference in new issue
Block a user