├── .editorconfig ├── .eslintrc.cjs ├── .github └── workflows │ └── test.yml ├── .gitignore ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── composer.json ├── demo.png ├── jest-setup.js ├── jest.config.js ├── package.json ├── src ├── FormToObject.ts ├── dom.ts ├── index.ts ├── types.ts └── utils.ts ├── test ├── e2e │ ├── fixtures │ │ ├── files │ │ │ ├── a.txt │ │ │ └── b.txt │ │ ├── form-multiple-choice-fields.html │ │ └── form-single-choice-fields.html │ └── smoke.test.ts ├── helpers.ts ├── integration │ ├── complexForms.test.ts │ └── fixtures │ │ ├── input │ │ ├── input-color.html │ │ ├── input-date.html │ │ ├── input-datetime-local.html │ │ ├── input-datetime.html │ │ ├── input-email.html │ │ ├── input-hidden.html │ │ ├── input-month.html │ │ ├── input-number.html │ │ ├── input-range.html │ │ ├── input-search.html │ │ ├── input-tel.html │ │ ├── input-text.html │ │ ├── input-time.html │ │ ├── input-url.html │ │ ├── input-week.html │ │ └── input2.html │ │ ├── other │ │ ├── complex_form1.html │ │ ├── complex_form2.html │ │ ├── demo.html │ │ ├── exceptions │ │ │ └── empty-form.html │ │ ├── facebook_signup.html │ │ ├── input_file.html │ │ ├── input_radio.html │ │ ├── special_elements.html │ │ ├── temporary_tests.html │ │ ├── test.jpg │ │ ├── test_recursive.html │ │ └── unexpected │ │ │ ├── unexpected1.html │ │ │ ├── unexpected2.html │ │ │ └── unexpected3.html │ │ ├── radio │ │ ├── radio1.html │ │ └── radio2.html │ │ ├── select │ │ ├── select1.html │ │ ├── select2.html │ │ ├── select3.html │ │ ├── select4.html │ │ ├── select5.html │ │ └── select6.html │ │ └── textarea │ │ └── textarea1.html ├── manual │ ├── file.html │ ├── playground.html │ └── sample-example.html └── unit │ ├── checkForLastNumericKey.test.ts │ ├── checkbox.test.ts │ ├── constructor.test.ts │ ├── convertFieldNameToArrayOfKeys.test.ts │ ├── dom.test.ts │ ├── extend.test.ts │ ├── getLastIntegerKey.test.ts │ ├── getNextIntegerKey.test.ts │ ├── getObjLength.test.ts │ ├── input.test.ts │ ├── radio.test.ts │ ├── select.test.ts │ ├── settings.test.ts │ ├── submit.test.ts │ ├── textarea.test.ts │ └── unexpected.test.ts ├── tsconfig.json ├── wdio.conf.ts ├── webpack.common.js ├── webpack.dev.js └── webpack.prod.js /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintrc.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/.eslintrc.cjs -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/.gitignore -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/composer.json -------------------------------------------------------------------------------- /demo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/demo.png -------------------------------------------------------------------------------- /jest-setup.js: -------------------------------------------------------------------------------- 1 | require('@testing-library/jest-dom'); 2 | 3 | -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/package.json -------------------------------------------------------------------------------- /src/FormToObject.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/src/FormToObject.ts -------------------------------------------------------------------------------- /src/dom.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/src/dom.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/src/types.ts -------------------------------------------------------------------------------- /src/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/src/utils.ts -------------------------------------------------------------------------------- /test/e2e/fixtures/files/a.txt: -------------------------------------------------------------------------------- 1 | a content -------------------------------------------------------------------------------- /test/e2e/fixtures/files/b.txt: -------------------------------------------------------------------------------- 1 | b content -------------------------------------------------------------------------------- /test/e2e/fixtures/form-multiple-choice-fields.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/e2e/fixtures/form-multiple-choice-fields.html -------------------------------------------------------------------------------- /test/e2e/fixtures/form-single-choice-fields.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/e2e/fixtures/form-single-choice-fields.html -------------------------------------------------------------------------------- /test/e2e/smoke.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/e2e/smoke.test.ts -------------------------------------------------------------------------------- /test/helpers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/helpers.ts -------------------------------------------------------------------------------- /test/integration/complexForms.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/integration/complexForms.test.ts -------------------------------------------------------------------------------- /test/integration/fixtures/input/input-color.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/integration/fixtures/input/input-color.html -------------------------------------------------------------------------------- /test/integration/fixtures/input/input-date.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/integration/fixtures/input/input-date.html -------------------------------------------------------------------------------- /test/integration/fixtures/input/input-datetime-local.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/integration/fixtures/input/input-datetime-local.html -------------------------------------------------------------------------------- /test/integration/fixtures/input/input-datetime.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/integration/fixtures/input/input-datetime.html -------------------------------------------------------------------------------- /test/integration/fixtures/input/input-email.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/integration/fixtures/input/input-email.html -------------------------------------------------------------------------------- /test/integration/fixtures/input/input-hidden.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/integration/fixtures/input/input-hidden.html -------------------------------------------------------------------------------- /test/integration/fixtures/input/input-month.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/integration/fixtures/input/input-month.html -------------------------------------------------------------------------------- /test/integration/fixtures/input/input-number.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/integration/fixtures/input/input-number.html -------------------------------------------------------------------------------- /test/integration/fixtures/input/input-range.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/integration/fixtures/input/input-range.html -------------------------------------------------------------------------------- /test/integration/fixtures/input/input-search.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/integration/fixtures/input/input-search.html -------------------------------------------------------------------------------- /test/integration/fixtures/input/input-tel.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/integration/fixtures/input/input-tel.html -------------------------------------------------------------------------------- /test/integration/fixtures/input/input-text.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/integration/fixtures/input/input-text.html -------------------------------------------------------------------------------- /test/integration/fixtures/input/input-time.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/integration/fixtures/input/input-time.html -------------------------------------------------------------------------------- /test/integration/fixtures/input/input-url.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/integration/fixtures/input/input-url.html -------------------------------------------------------------------------------- /test/integration/fixtures/input/input-week.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/integration/fixtures/input/input-week.html -------------------------------------------------------------------------------- /test/integration/fixtures/input/input2.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/integration/fixtures/input/input2.html -------------------------------------------------------------------------------- /test/integration/fixtures/other/complex_form1.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/integration/fixtures/other/complex_form1.html -------------------------------------------------------------------------------- /test/integration/fixtures/other/complex_form2.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/integration/fixtures/other/complex_form2.html -------------------------------------------------------------------------------- /test/integration/fixtures/other/demo.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/integration/fixtures/other/demo.html -------------------------------------------------------------------------------- /test/integration/fixtures/other/exceptions/empty-form.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/integration/fixtures/other/exceptions/empty-form.html -------------------------------------------------------------------------------- /test/integration/fixtures/other/facebook_signup.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/integration/fixtures/other/facebook_signup.html -------------------------------------------------------------------------------- /test/integration/fixtures/other/input_file.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/integration/fixtures/other/input_file.html -------------------------------------------------------------------------------- /test/integration/fixtures/other/input_radio.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/integration/fixtures/other/input_radio.html -------------------------------------------------------------------------------- /test/integration/fixtures/other/special_elements.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/integration/fixtures/other/special_elements.html -------------------------------------------------------------------------------- /test/integration/fixtures/other/temporary_tests.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/integration/fixtures/other/temporary_tests.html -------------------------------------------------------------------------------- /test/integration/fixtures/other/test.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/integration/fixtures/other/test.jpg -------------------------------------------------------------------------------- /test/integration/fixtures/other/test_recursive.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/integration/fixtures/other/test_recursive.html -------------------------------------------------------------------------------- /test/integration/fixtures/other/unexpected/unexpected1.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/integration/fixtures/other/unexpected/unexpected1.html -------------------------------------------------------------------------------- /test/integration/fixtures/other/unexpected/unexpected2.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/integration/fixtures/other/unexpected/unexpected2.html -------------------------------------------------------------------------------- /test/integration/fixtures/other/unexpected/unexpected3.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/integration/fixtures/other/unexpected/unexpected3.html -------------------------------------------------------------------------------- /test/integration/fixtures/radio/radio1.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/integration/fixtures/radio/radio1.html -------------------------------------------------------------------------------- /test/integration/fixtures/radio/radio2.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/integration/fixtures/radio/radio2.html -------------------------------------------------------------------------------- /test/integration/fixtures/select/select1.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/integration/fixtures/select/select1.html -------------------------------------------------------------------------------- /test/integration/fixtures/select/select2.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/integration/fixtures/select/select2.html -------------------------------------------------------------------------------- /test/integration/fixtures/select/select3.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/integration/fixtures/select/select3.html -------------------------------------------------------------------------------- /test/integration/fixtures/select/select4.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/integration/fixtures/select/select4.html -------------------------------------------------------------------------------- /test/integration/fixtures/select/select5.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/integration/fixtures/select/select5.html -------------------------------------------------------------------------------- /test/integration/fixtures/select/select6.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/integration/fixtures/select/select6.html -------------------------------------------------------------------------------- /test/integration/fixtures/textarea/textarea1.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/integration/fixtures/textarea/textarea1.html -------------------------------------------------------------------------------- /test/manual/file.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/manual/file.html -------------------------------------------------------------------------------- /test/manual/playground.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/manual/playground.html -------------------------------------------------------------------------------- /test/manual/sample-example.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/manual/sample-example.html -------------------------------------------------------------------------------- /test/unit/checkForLastNumericKey.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/unit/checkForLastNumericKey.test.ts -------------------------------------------------------------------------------- /test/unit/checkbox.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/unit/checkbox.test.ts -------------------------------------------------------------------------------- /test/unit/constructor.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/unit/constructor.test.ts -------------------------------------------------------------------------------- /test/unit/convertFieldNameToArrayOfKeys.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/unit/convertFieldNameToArrayOfKeys.test.ts -------------------------------------------------------------------------------- /test/unit/dom.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/unit/dom.test.ts -------------------------------------------------------------------------------- /test/unit/extend.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/unit/extend.test.ts -------------------------------------------------------------------------------- /test/unit/getLastIntegerKey.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/unit/getLastIntegerKey.test.ts -------------------------------------------------------------------------------- /test/unit/getNextIntegerKey.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/unit/getNextIntegerKey.test.ts -------------------------------------------------------------------------------- /test/unit/getObjLength.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/unit/getObjLength.test.ts -------------------------------------------------------------------------------- /test/unit/input.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/unit/input.test.ts -------------------------------------------------------------------------------- /test/unit/radio.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/unit/radio.test.ts -------------------------------------------------------------------------------- /test/unit/select.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/unit/select.test.ts -------------------------------------------------------------------------------- /test/unit/settings.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/unit/settings.test.ts -------------------------------------------------------------------------------- /test/unit/submit.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/unit/submit.test.ts -------------------------------------------------------------------------------- /test/unit/textarea.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/unit/textarea.test.ts -------------------------------------------------------------------------------- /test/unit/unexpected.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/test/unit/unexpected.test.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/tsconfig.json -------------------------------------------------------------------------------- /wdio.conf.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/wdio.conf.ts -------------------------------------------------------------------------------- /webpack.common.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/webpack.common.js -------------------------------------------------------------------------------- /webpack.dev.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/webpack.dev.js -------------------------------------------------------------------------------- /webpack.prod.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serbanghita/form-to-object/HEAD/webpack.prod.js --------------------------------------------------------------------------------