├── .editorconfig ├── .github └── workflows │ └── test.yml ├── .gitignore ├── .prettierrc ├── .storybook ├── main.js └── preview.js ├── LICENSE.md ├── README.md ├── demo-sandbox ├── .gitignore ├── .prettierrc ├── index.css ├── index.jsx └── package.json ├── package.json ├── react-csv-importer-demo-20200915.gif ├── src ├── .eslintrc.json ├── .stylelintrc ├── components │ ├── IconButton.scss │ ├── IconButton.tsx │ ├── Importer.scss │ ├── Importer.stories.tsx │ ├── Importer.tsx │ ├── ImporterField.tsx │ ├── ImporterFrame.scss │ ├── ImporterFrame.tsx │ ├── ImporterProps.ts │ ├── ProgressDisplay.scss │ ├── ProgressDisplay.tsx │ ├── TextButton.scss │ ├── TextButton.tsx │ ├── fields-step │ │ ├── ColumnDragCard.scss │ │ ├── ColumnDragCard.tsx │ │ ├── ColumnDragObject.scss │ │ ├── ColumnDragObject.tsx │ │ ├── ColumnDragSourceArea.scss │ │ ├── ColumnDragSourceArea.tsx │ │ ├── ColumnDragState.tsx │ │ ├── ColumnDragTargetArea.scss │ │ ├── ColumnDragTargetArea.tsx │ │ ├── ColumnPreview.tsx │ │ └── FieldsStep.tsx │ └── file-step │ │ ├── FileSelector.scss │ │ ├── FileSelector.tsx │ │ ├── FileStep.scss │ │ ├── FileStep.tsx │ │ ├── FormatDataRowPreview.scss │ │ ├── FormatDataRowPreview.tsx │ │ ├── FormatErrorMessage.scss │ │ ├── FormatErrorMessage.tsx │ │ ├── FormatRawPreview.scss │ │ └── FormatRawPreview.tsx ├── index.ts ├── locale │ ├── ImporterLocale.ts │ ├── LocaleContext.tsx │ ├── index.ts │ ├── locale_daDK.ts │ ├── locale_deDE.ts │ ├── locale_enUS.ts │ ├── locale_itIT.ts │ ├── locale_ptBR.ts │ └── locale_trTR.ts ├── parser.ts └── theme.scss ├── test ├── .eslintrc.json ├── basics.test.ts ├── bom.test.ts ├── customConfig.test.ts ├── encoding.test.ts ├── fixtures │ ├── bom.csv │ ├── customDelimited.txt │ ├── encodingWindows1250.csv │ ├── noeof.csv │ └── simple.csv ├── noeof.test.ts ├── public │ └── index.html ├── testServer.ts ├── uiSetup.ts └── webdriver.ts ├── tsconfig.base.json ├── tsconfig.json ├── webpack.config.js └── yarn.lock /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/.editorconfig -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | /dist 3 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/.prettierrc -------------------------------------------------------------------------------- /.storybook/main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/.storybook/main.js -------------------------------------------------------------------------------- /.storybook/preview.js: -------------------------------------------------------------------------------- 1 | 2 | export const parameters = { 3 | actions: { argTypesRegex: "^on[A-Z].*" }, 4 | } -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/README.md -------------------------------------------------------------------------------- /demo-sandbox/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/demo-sandbox/.gitignore -------------------------------------------------------------------------------- /demo-sandbox/.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/demo-sandbox/.prettierrc -------------------------------------------------------------------------------- /demo-sandbox/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/demo-sandbox/index.css -------------------------------------------------------------------------------- /demo-sandbox/index.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/demo-sandbox/index.jsx -------------------------------------------------------------------------------- /demo-sandbox/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/demo-sandbox/package.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/package.json -------------------------------------------------------------------------------- /react-csv-importer-demo-20200915.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/react-csv-importer-demo-20200915.gif -------------------------------------------------------------------------------- /src/.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/src/.eslintrc.json -------------------------------------------------------------------------------- /src/.stylelintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/src/.stylelintrc -------------------------------------------------------------------------------- /src/components/IconButton.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/src/components/IconButton.scss -------------------------------------------------------------------------------- /src/components/IconButton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/src/components/IconButton.tsx -------------------------------------------------------------------------------- /src/components/Importer.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/src/components/Importer.scss -------------------------------------------------------------------------------- /src/components/Importer.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/src/components/Importer.stories.tsx -------------------------------------------------------------------------------- /src/components/Importer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/src/components/Importer.tsx -------------------------------------------------------------------------------- /src/components/ImporterField.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/src/components/ImporterField.tsx -------------------------------------------------------------------------------- /src/components/ImporterFrame.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/src/components/ImporterFrame.scss -------------------------------------------------------------------------------- /src/components/ImporterFrame.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/src/components/ImporterFrame.tsx -------------------------------------------------------------------------------- /src/components/ImporterProps.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/src/components/ImporterProps.ts -------------------------------------------------------------------------------- /src/components/ProgressDisplay.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/src/components/ProgressDisplay.scss -------------------------------------------------------------------------------- /src/components/ProgressDisplay.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/src/components/ProgressDisplay.tsx -------------------------------------------------------------------------------- /src/components/TextButton.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/src/components/TextButton.scss -------------------------------------------------------------------------------- /src/components/TextButton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/src/components/TextButton.tsx -------------------------------------------------------------------------------- /src/components/fields-step/ColumnDragCard.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/src/components/fields-step/ColumnDragCard.scss -------------------------------------------------------------------------------- /src/components/fields-step/ColumnDragCard.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/src/components/fields-step/ColumnDragCard.tsx -------------------------------------------------------------------------------- /src/components/fields-step/ColumnDragObject.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/src/components/fields-step/ColumnDragObject.scss -------------------------------------------------------------------------------- /src/components/fields-step/ColumnDragObject.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/src/components/fields-step/ColumnDragObject.tsx -------------------------------------------------------------------------------- /src/components/fields-step/ColumnDragSourceArea.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/src/components/fields-step/ColumnDragSourceArea.scss -------------------------------------------------------------------------------- /src/components/fields-step/ColumnDragSourceArea.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/src/components/fields-step/ColumnDragSourceArea.tsx -------------------------------------------------------------------------------- /src/components/fields-step/ColumnDragState.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/src/components/fields-step/ColumnDragState.tsx -------------------------------------------------------------------------------- /src/components/fields-step/ColumnDragTargetArea.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/src/components/fields-step/ColumnDragTargetArea.scss -------------------------------------------------------------------------------- /src/components/fields-step/ColumnDragTargetArea.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/src/components/fields-step/ColumnDragTargetArea.tsx -------------------------------------------------------------------------------- /src/components/fields-step/ColumnPreview.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/src/components/fields-step/ColumnPreview.tsx -------------------------------------------------------------------------------- /src/components/fields-step/FieldsStep.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/src/components/fields-step/FieldsStep.tsx -------------------------------------------------------------------------------- /src/components/file-step/FileSelector.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/src/components/file-step/FileSelector.scss -------------------------------------------------------------------------------- /src/components/file-step/FileSelector.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/src/components/file-step/FileSelector.tsx -------------------------------------------------------------------------------- /src/components/file-step/FileStep.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/src/components/file-step/FileStep.scss -------------------------------------------------------------------------------- /src/components/file-step/FileStep.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/src/components/file-step/FileStep.tsx -------------------------------------------------------------------------------- /src/components/file-step/FormatDataRowPreview.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/src/components/file-step/FormatDataRowPreview.scss -------------------------------------------------------------------------------- /src/components/file-step/FormatDataRowPreview.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/src/components/file-step/FormatDataRowPreview.tsx -------------------------------------------------------------------------------- /src/components/file-step/FormatErrorMessage.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/src/components/file-step/FormatErrorMessage.scss -------------------------------------------------------------------------------- /src/components/file-step/FormatErrorMessage.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/src/components/file-step/FormatErrorMessage.tsx -------------------------------------------------------------------------------- /src/components/file-step/FormatRawPreview.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/src/components/file-step/FormatRawPreview.scss -------------------------------------------------------------------------------- /src/components/file-step/FormatRawPreview.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/src/components/file-step/FormatRawPreview.tsx -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/locale/ImporterLocale.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/src/locale/ImporterLocale.ts -------------------------------------------------------------------------------- /src/locale/LocaleContext.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/src/locale/LocaleContext.tsx -------------------------------------------------------------------------------- /src/locale/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/src/locale/index.ts -------------------------------------------------------------------------------- /src/locale/locale_daDK.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/src/locale/locale_daDK.ts -------------------------------------------------------------------------------- /src/locale/locale_deDE.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/src/locale/locale_deDE.ts -------------------------------------------------------------------------------- /src/locale/locale_enUS.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/src/locale/locale_enUS.ts -------------------------------------------------------------------------------- /src/locale/locale_itIT.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/src/locale/locale_itIT.ts -------------------------------------------------------------------------------- /src/locale/locale_ptBR.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/src/locale/locale_ptBR.ts -------------------------------------------------------------------------------- /src/locale/locale_trTR.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/src/locale/locale_trTR.ts -------------------------------------------------------------------------------- /src/parser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/src/parser.ts -------------------------------------------------------------------------------- /src/theme.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/src/theme.scss -------------------------------------------------------------------------------- /test/.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/test/.eslintrc.json -------------------------------------------------------------------------------- /test/basics.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/test/basics.test.ts -------------------------------------------------------------------------------- /test/bom.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/test/bom.test.ts -------------------------------------------------------------------------------- /test/customConfig.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/test/customConfig.test.ts -------------------------------------------------------------------------------- /test/encoding.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/test/encoding.test.ts -------------------------------------------------------------------------------- /test/fixtures/bom.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/test/fixtures/bom.csv -------------------------------------------------------------------------------- /test/fixtures/customDelimited.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/test/fixtures/customDelimited.txt -------------------------------------------------------------------------------- /test/fixtures/encodingWindows1250.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/test/fixtures/encodingWindows1250.csv -------------------------------------------------------------------------------- /test/fixtures/noeof.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/test/fixtures/noeof.csv -------------------------------------------------------------------------------- /test/fixtures/simple.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/test/fixtures/simple.csv -------------------------------------------------------------------------------- /test/noeof.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/test/noeof.test.ts -------------------------------------------------------------------------------- /test/public/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/test/public/index.html -------------------------------------------------------------------------------- /test/testServer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/test/testServer.ts -------------------------------------------------------------------------------- /test/uiSetup.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/test/uiSetup.ts -------------------------------------------------------------------------------- /test/webdriver.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/test/webdriver.ts -------------------------------------------------------------------------------- /tsconfig.base.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/tsconfig.base.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/tsconfig.json -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/webpack.config.js -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beamworks/react-csv-importer/HEAD/yarn.lock --------------------------------------------------------------------------------