diff --git a/.babelrc b/.babelrc index f05d90d9..f1c00cea 100644 --- a/.babelrc +++ b/.babelrc @@ -1,5 +1,5 @@ { - "presets": ["es2015", "stage-0"], + "presets": ["es2015", "stage-2"], "plugins": ["transform-runtime"], "comments": false } \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 8278eac6..35c91456 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,8 +3,7 @@ cache: directories: - node_modules node_js: + - "7" - "6" - - "5" - - "4" after_success: - npm run coverall diff --git a/CHANGELOG.md b/CHANGELOG.md index 554e77ea..6e75ef33 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,63 @@ + +# 2.0.0-beta3 (2017-02-10) + +* :package: build ([dfe78a0](https://github.com/icebob/vue-form-generator/commit/dfe78a0)) +* bump version ([665d6c1](https://github.com/icebob/vue-form-generator/commit/665d6c1)) +* fix nested models ([3e8d1a1](https://github.com/icebob/vue-form-generator/commit/3e8d1a1)) +* remove unused codes ([ce999d0](https://github.com/icebob/vue-form-generator/commit/ce999d0)) +* update changelog ([8636178](https://github.com/icebob/vue-form-generator/commit/8636178)) + + + + +# 2.0.0-beta2 (2017-01-30) + +* :bug: fix examples ([b8c82c0](https://github.com/icebob/vue-form-generator/commit/b8c82c0)) +* :bug: fix examples ([86d2ef4](https://github.com/icebob/vue-form-generator/commit/86d2ef4)) +* :package: Build beta2 ([ab562bd](https://github.com/icebob/vue-form-generator/commit/ab562bd)) +* Add support for readonly and featured field functions ([065d0a7](https://github.com/icebob/vue-form-generator/commit/065d0a7)) +* Allow form fields required state to be controlled with a function, ([e08dbbb](https://github.com/icebob/vue-form-generator/commit/e08dbbb)) +* bump version to 2.0.0-beta2 ([94347e7](https://github.com/icebob/vue-form-generator/commit/94347e7)) +* fix checkbox tests ([593307b](https://github.com/icebob/vue-form-generator/commit/593307b)) +* Fix some CSS visual bugs ([7a786f7](https://github.com/icebob/vue-form-generator/commit/7a786f7)) +* fix some errors ([8d3ca97](https://github.com/icebob/vue-form-generator/commit/8d3ca97)) +* Fix vue version in examples ([ebfc4b0](https://github.com/icebob/vue-form-generator/commit/ebfc4b0)) +* fix vue-multiselect test errors ([2aacb57](https://github.com/icebob/vue-form-generator/commit/2aacb57)) +* remove console.log ([454fa0e](https://github.com/icebob/vue-form-generator/commit/454fa0e)) +* remove v4 from travis ([bbdcc0f](https://github.com/icebob/vue-form-generator/commit/bbdcc0f)) +* reorganize dev codes ([386fa3f](https://github.com/icebob/vue-form-generator/commit/386fa3f)) +* update deps ([f4e5709](https://github.com/icebob/vue-form-generator/commit/f4e5709)) +* update readme ([eb6328c](https://github.com/icebob/vue-form-generator/commit/eb6328c)) +* Update README.md ([ea91365](https://github.com/icebob/vue-form-generator/commit/ea91365)) +* update travis. Remove v5, add v7 ([1d85539](https://github.com/icebob/vue-form-generator/commit/1d85539)) +* update yarn lock ([e57725c](https://github.com/icebob/vue-form-generator/commit/e57725c)) +* update yarn lock ([df5aca0](https://github.com/icebob/vue-form-generator/commit/df5aca0)) + + + + +# 2.0.0-beta1 (2016-12-12) + +* docs: changelog updated ([9334ce6](https://github.com/icebob/vue-form-generator/commit/9334ce6)) +* :bug: fix $index ([80ecf31](https://github.com/icebob/vue-form-generator/commit/80ecf31)) +* :bug: fix examples ([8ab6894](https://github.com/icebob/vue-form-generator/commit/8ab6894)) +* :package: first build for Vue 2.x ([393461b](https://github.com/icebob/vue-form-generator/commit/393461b)) +* Fix a bug with v-model and dynamic type on input. ([1d090df](https://github.com/icebob/vue-form-generator/commit/1d090df)) +* fix validator error ([d671057](https://github.com/icebob/vue-form-generator/commit/d671057)) +* Update README.md ([52c1cb6](https://github.com/icebob/vue-form-generator/commit/52c1cb6)) +* Update README.md ([acd1e22](https://github.com/icebob/vue-form-generator/commit/acd1e22)) +* Update vuejs version to 2.1.3, and made change accordingly (added vue-template-compiler). Update vue ([61b76c1](https://github.com/icebob/vue-form-generator/commit/61b76c1)) +* test: fix checklist tests ([f3202fa](https://github.com/icebob/vue-form-generator/commit/f3202fa)) +* test: fix fieldCleave tests ([caae630](https://github.com/icebob/vue-form-generator/commit/caae630)) +* test: fix selectEx tests ([b240183](https://github.com/icebob/vue-form-generator/commit/b240183)) +* test: fix test cases ([8044f9e](https://github.com/icebob/vue-form-generator/commit/8044f9e)) + + + ## 0.6.1 (2016-11-28) +* docs: update changelog ([853228d](https://github.com/icebob/vue-form-generator/commit/853228d)) * :package: Build v0.6.1 ([79580a2](https://github.com/icebob/vue-form-generator/commit/79580a2)) * Add missing opening brace ([6842f1b](https://github.com/icebob/vue-form-generator/commit/6842f1b)) * bump version ([1976b4a](https://github.com/icebob/vue-form-generator/commit/1976b4a)) @@ -11,10 +68,13 @@ # 0.6.0 (2016-11-14) +* docs: fix npms.io badge url ([475eb91](https://github.com/icebob/vue-form-generator/commit/475eb91)) +* docs: update changelog ([6bd9c78](https://github.com/icebob/vue-form-generator/commit/6bd9c78)) * :bug: Fix options prop default #91 ([3d2e821](https://github.com/icebob/vue-form-generator/commit/3d2e821)), closes [#91](https://github.com/icebob/vue-form-generator/issues/91) * :package: build ([51abcca](https://github.com/icebob/vue-form-generator/commit/51abcca)) * :package: Build ([ce72dc4](https://github.com/icebob/vue-form-generator/commit/ce72dc4)) * :package: bump version & build ([d56f93c](https://github.com/icebob/vue-form-generator/commit/d56f93c)) +* [wip] modification to work with vuejs 2.0. ([0b1df2c](https://github.com/icebob/vue-form-generator/commit/0b1df2c)) * add bower ([ce44822](https://github.com/icebob/vue-form-generator/commit/ce44822)) * add number prop to input field ([a40e23c](https://github.com/icebob/vue-form-generator/commit/a40e23c)) * add step attribute to number field #92 ([ce64c4e](https://github.com/icebob/vue-form-generator/commit/ce64c4e)) @@ -22,18 +82,15 @@ * Fix #84 ([2c36001](https://github.com/icebob/vue-form-generator/commit/2c36001)), closes [#84](https://github.com/icebob/vue-form-generator/issues/84) * Fix #84 ([58093c7](https://github.com/icebob/vue-form-generator/commit/58093c7)), closes [#84](https://github.com/icebob/vue-form-generator/issues/84) * fix lints ([1f8f3d9](https://github.com/icebob/vue-form-generator/commit/1f8f3d9)) -* Implement #78 ([f92b193](https://github.com/icebob/vue-form-generator/commit/f92b193)) * quick fix for #85 ([cad76da](https://github.com/icebob/vue-form-generator/commit/cad76da)), closes [#85](https://github.com/icebob/vue-form-generator/issues/85) * remote customLabel prop from multiselect because give errors ([5dfc5bb](https://github.com/icebob/vue-form-generator/commit/5dfc5bb)) * remove commit message package ([682c6ab](https://github.com/icebob/vue-form-generator/commit/682c6ab)) * Update README.md ([8128a52](https://github.com/icebob/vue-form-generator/commit/8128a52)) -* docs: fix npms.io badge url ([475eb91](https://github.com/icebob/vue-form-generator/commit/475eb91)) -* test: add attr checker to switch field ([2ed434e](https://github.com/icebob/vue-form-generator/commit/2ed434e)) -* test: add file input attr test ([352fb20](https://github.com/icebob/vue-form-generator/commit/352fb20)) * test: add test to #82 ([aefdbac](https://github.com/icebob/vue-form-generator/commit/aefdbac)) -* test: attr test to submit field ([1627c71](https://github.com/icebob/vue-form-generator/commit/1627c71)) * test: lock multiselect version ([5b0a4d0](https://github.com/icebob/vue-form-generator/commit/5b0a4d0)) +* fix: aligned with issue #84 ([5d6c0c7](https://github.com/icebob/vue-form-generator/commit/5d6c0c7)) * fix: customLabel return a basic function when undefined instead of null ([9b3d51d](https://github.com/icebob/vue-form-generator/commit/9b3d51d)) +* fix: rewrite in jade and commenting problematic fields ([35be49e](https://github.com/icebob/vue-form-generator/commit/35be49e)) * bug: fix quotes ([13d6e0f](https://github.com/icebob/vue-form-generator/commit/13d6e0f)) * new: add form POST example ([08412c7](https://github.com/icebob/vue-form-generator/commit/08412c7)) @@ -42,6 +99,10 @@ # 0.5.0 (2016-09-28) +* docs: commenting methods ([0d7848e](https://github.com/icebob/vue-form-generator/commit/0d7848e)) +* docs: commenting methods ([dc17006](https://github.com/icebob/vue-form-generator/commit/dc17006)) +* docs: remove TODOS from readme ([76aeb52](https://github.com/icebob/vue-form-generator/commit/76aeb52)) +* docs: update changelog ([3f0db9f](https://github.com/icebob/vue-form-generator/commit/3f0db9f)) * :bug: fix: Fixed #75 ([f8db7b0](https://github.com/icebob/vue-form-generator/commit/f8db7b0)), closes [#75](https://github.com/icebob/vue-form-generator/issues/75) * :package: build ([af75ebc](https://github.com/icebob/vue-form-generator/commit/af75ebc)) * :package: Build v.0.5.0 ([b67ada9](https://github.com/icebob/vue-form-generator/commit/b67ada9)) @@ -54,6 +115,7 @@ * fix linting ([4bc0601](https://github.com/icebob/vue-form-generator/commit/4bc0601)) * format date related fields values ([cf2f577](https://github.com/icebob/vue-form-generator/commit/cf2f577)) * hideInput prop in dev schema ([b68f94f](https://github.com/icebob/vue-form-generator/commit/b68f94f)) +* Implement #78 ([f92b193](https://github.com/icebob/vue-form-generator/commit/f92b193)) * rename dateTime to dateTimePicker and slider to rangeSlider ([5830e85](https://github.com/icebob/vue-form-generator/commit/5830e85)) * rename field html5 to input ([323968e](https://github.com/icebob/vue-form-generator/commit/323968e)) * rename sliderOptions to noUiSliderOptions to follow schema logic ([7f4afa9](https://github.com/icebob/vue-form-generator/commit/7f4afa9)) @@ -73,9 +135,9 @@ * new: hideInput prop in fieldImage #77 ([deb4ec5](https://github.com/icebob/vue-form-generator/commit/deb4ec5)) * new: new "radios" field ([7106394](https://github.com/icebob/vue-form-generator/commit/7106394)) * new: new field html5 input ([5189b99](https://github.com/icebob/vue-form-generator/commit/5189b99)) -* docs: commenting methods ([0d7848e](https://github.com/icebob/vue-form-generator/commit/0d7848e)) -* docs: commenting methods ([dc17006](https://github.com/icebob/vue-form-generator/commit/dc17006)) -* docs: remove TODOS from readme ([76aeb52](https://github.com/icebob/vue-form-generator/commit/76aeb52)) +* test: add attr checker to switch field ([2ed434e](https://github.com/icebob/vue-form-generator/commit/2ed434e)) +* test: add file input attr test ([352fb20](https://github.com/icebob/vue-form-generator/commit/352fb20)) +* test: attr test to submit field ([1627c71](https://github.com/icebob/vue-form-generator/commit/1627c71)) * test: deactivate a unit test. Add a better check to avoid "undefined" warning on a condition. ([4afccd3](https://github.com/icebob/vue-form-generator/commit/4afccd3)) * enhancement: staticMap updated with more options for more flexibility. Test updated to reflect chang ([65c8ac2](https://github.com/icebob/vue-form-generator/commit/65c8ac2)) @@ -84,6 +146,7 @@ ## 0.4.1 (2016-09-08) +* docs: update changelog ([67ed6f3](https://github.com/icebob/vue-form-generator/commit/67ed6f3)) * :arrow_up: change fontawesome help icon to img #61 ([70baca6](https://github.com/icebob/vue-form-generator/commit/70baca6)) * :bug: bug: "Invalid date" message in pikaday field. Change dev schema for a simple one. Delete defau ([a45188a](https://github.com/icebob/vue-form-generator/commit/a45188a)) * :package: build ([60dda5f](https://github.com/icebob/vue-form-generator/commit/60dda5f)) @@ -109,6 +172,51 @@ # 0.4.0 (2016-08-30) * noUISlider: minor changes ([1f22d80](https://github.com/icebob/vue-form-generator/commit/1f22d80)) +* docs: update changelog ([672e656](https://github.com/icebob/vue-form-generator/commit/672e656)) +* fix: add a .jsbeautify to help with linting ([acfa264](https://github.com/icebob/vue-form-generator/commit/acfa264)) +* fix: add disabled option to noUiSlider field ([c169cb3](https://github.com/icebob/vue-form-generator/commit/c169cb3)) +* fix: add disabled option to noUiSlider field ([6d10687](https://github.com/icebob/vue-form-generator/commit/6d10687)) +* fix: added missing options for VueMultiselect. Removed `min` from dev schema (not used). ([a9bb8ae](https://github.com/icebob/vue-form-generator/commit/a9bb8ae)) +* fix: better selector for the main component and added latest build ([b2fcef1](https://github.com/icebob/vue-form-generator/commit/b2fcef1)) +* fix: buttonText instead of caption ([d4b25a9](https://github.com/icebob/vue-form-generator/commit/d4b25a9)) +* fix: buttonText instead of caption for unit test file ([f47f704](https://github.com/icebob/vue-form-generator/commit/f47f704)) +* fix: Cleavejs better mask definition ([34a6401](https://github.com/icebob/vue-form-generator/commit/34a6401)) +* fix: Cleavejs better mask definition ([e338e6d](https://github.com/icebob/vue-form-generator/commit/e338e6d)) +* fix: Fixed fragment instances #28 ([0f9863c](https://github.com/icebob/vue-form-generator/commit/0f9863c)), closes [#28](https://github.com/icebob/vue-form-generator/issues/28) +* fix: fragment instance warning ([f9915e6](https://github.com/icebob/vue-form-generator/commit/f9915e6)) +* fix: handle disabled and max props of VueMultiSelect better ([e59bcc1](https://github.com/icebob/vue-form-generator/commit/e59bcc1)) +* fix: handle disabled and max props of VueMultiSelect better ([9a6fc4b](https://github.com/icebob/vue-form-generator/commit/9a6fc4b)) +* fix: handle missing library better ([99b6a4d](https://github.com/icebob/vue-form-generator/commit/99b6a4d)) +* fix: handle missing library better ([ec93745](https://github.com/icebob/vue-form-generator/commit/ec93745)) +* fix: lint error ([a2665dd](https://github.com/icebob/vue-form-generator/commit/a2665dd)) +* fix: lint error and warning ([24c49d9](https://github.com/icebob/vue-form-generator/commit/24c49d9)) +* fix: lint error and warning ([54a3502](https://github.com/icebob/vue-form-generator/commit/54a3502)) +* fix: package version for `extract-text-webpack-plugin` ([778a9ff](https://github.com/icebob/vue-form-generator/commit/778a9ff)) +* fix: remove jQuery from eslint ([74cc91d](https://github.com/icebob/vue-form-generator/commit/74cc91d)) +* fix: small bug with quotes ([71ae504](https://github.com/icebob/vue-form-generator/commit/71ae504)) +* test: add external libs to karma ([776f6c4](https://github.com/icebob/vue-form-generator/commit/776f6c4)) +* test: basic unit testing ([f870dae](https://github.com/icebob/vue-form-generator/commit/f870dae)) +* test: fix pikaday expect error ([60a0868](https://github.com/icebob/vue-form-generator/commit/60a0868)) +* test: improve karma debug page ([8a094c8](https://github.com/icebob/vue-form-generator/commit/8a094c8)) +* test: improve testing of noUiSlider ([59d5036](https://github.com/icebob/vue-form-generator/commit/59d5036)) +* test: improve testing of noUiSlider ([42c9ea9](https://github.com/icebob/vue-form-generator/commit/42c9ea9)) +* test: improve testing of VueMultiSelect ([09a41f0](https://github.com/icebob/vue-form-generator/commit/09a41f0)) +* test: improve unit testing of vueMultiSelect ([1b24293](https://github.com/icebob/vue-form-generator/commit/1b24293)) +* test: improve unit testing of vueMultiSelect ([1c09c30](https://github.com/icebob/vue-form-generator/commit/1c09c30)) +* test: progress on noUiSlider ([dea27a2](https://github.com/icebob/vue-form-generator/commit/dea27a2)) +* test: progress on noUiSlider ([2e7380f](https://github.com/icebob/vue-form-generator/commit/2e7380f)) +* test: querySelector instead of querySelectorAll ([00bfbda](https://github.com/icebob/vue-form-generator/commit/00bfbda)) +* test: querySelector instead of querySelectorAll ([136b112](https://github.com/icebob/vue-form-generator/commit/136b112)) +* test: unit test for field slider ([bb9410d](https://github.com/icebob/vue-form-generator/commit/bb9410d)) +* test: unit test for fieldCleave ([012ee91](https://github.com/icebob/vue-form-generator/commit/012ee91)) +* test: unit test for fieldGoogleAddress ([63d47aa](https://github.com/icebob/vue-form-generator/commit/63d47aa)) +* test: unit test for fieldSpectrum ([0b65bdb](https://github.com/icebob/vue-form-generator/commit/0b65bdb)) +* style: add box-sizing ([841f20d](https://github.com/icebob/vue-form-generator/commit/841f20d)) +* style: image remove button change to inline img ([92cea99](https://github.com/icebob/vue-form-generator/commit/92cea99)) +* dev: add a basic color field for testing ([49e8d43](https://github.com/icebob/vue-form-generator/commit/49e8d43)) +* dev: add another port to karma watch, so that it raise no warning when both commands (test and ci) r ([04a71a0](https://github.com/icebob/vue-form-generator/commit/04a71a0)) +* dev: noUiSlider with scale ([e1b4126](https://github.com/icebob/vue-form-generator/commit/e1b4126)) +* dev: noUiSlider with scale ([dfef1f1](https://github.com/icebob/vue-form-generator/commit/dfef1f1)) * :arrow_up: Fixed #37 ([f4f1f18](https://github.com/icebob/vue-form-generator/commit/f4f1f18)), closes [#37](https://github.com/icebob/vue-form-generator/issues/37) * :bug: fix: eslint warning ([65b4d59](https://github.com/icebob/vue-form-generator/commit/65b4d59)) * :bug: fix: remove jQuery code ([d0a32cd](https://github.com/icebob/vue-form-generator/commit/d0a32cd)) @@ -159,50 +267,6 @@ * update dependencies ([72d862b](https://github.com/icebob/vue-form-generator/commit/72d862b)) * Update README.md ([f4e7a5b](https://github.com/icebob/vue-form-generator/commit/f4e7a5b)) * Update README.md ([2eae985](https://github.com/icebob/vue-form-generator/commit/2eae985)) -* test: add external libs to karma ([776f6c4](https://github.com/icebob/vue-form-generator/commit/776f6c4)) -* test: basic unit testing ([f870dae](https://github.com/icebob/vue-form-generator/commit/f870dae)) -* test: fix pikaday expect error ([60a0868](https://github.com/icebob/vue-form-generator/commit/60a0868)) -* test: improve karma debug page ([8a094c8](https://github.com/icebob/vue-form-generator/commit/8a094c8)) -* test: improve testing of noUiSlider ([59d5036](https://github.com/icebob/vue-form-generator/commit/59d5036)) -* test: improve testing of noUiSlider ([42c9ea9](https://github.com/icebob/vue-form-generator/commit/42c9ea9)) -* test: improve testing of VueMultiSelect ([09a41f0](https://github.com/icebob/vue-form-generator/commit/09a41f0)) -* test: improve unit testing of vueMultiSelect ([1b24293](https://github.com/icebob/vue-form-generator/commit/1b24293)) -* test: improve unit testing of vueMultiSelect ([1c09c30](https://github.com/icebob/vue-form-generator/commit/1c09c30)) -* test: progress on noUiSlider ([dea27a2](https://github.com/icebob/vue-form-generator/commit/dea27a2)) -* test: progress on noUiSlider ([2e7380f](https://github.com/icebob/vue-form-generator/commit/2e7380f)) -* test: querySelector instead of querySelectorAll ([00bfbda](https://github.com/icebob/vue-form-generator/commit/00bfbda)) -* test: querySelector instead of querySelectorAll ([136b112](https://github.com/icebob/vue-form-generator/commit/136b112)) -* test: unit test for field slider ([bb9410d](https://github.com/icebob/vue-form-generator/commit/bb9410d)) -* test: unit test for fieldCleave ([012ee91](https://github.com/icebob/vue-form-generator/commit/012ee91)) -* test: unit test for fieldGoogleAddress ([63d47aa](https://github.com/icebob/vue-form-generator/commit/63d47aa)) -* test: unit test for fieldSpectrum ([0b65bdb](https://github.com/icebob/vue-form-generator/commit/0b65bdb)) -* style: add box-sizing ([841f20d](https://github.com/icebob/vue-form-generator/commit/841f20d)) -* style: image remove button change to inline img ([92cea99](https://github.com/icebob/vue-form-generator/commit/92cea99)) -* dev: add a basic color field for testing ([49e8d43](https://github.com/icebob/vue-form-generator/commit/49e8d43)) -* dev: add another port to karma watch, so that it raise no warning when both commands (test and ci) r ([04a71a0](https://github.com/icebob/vue-form-generator/commit/04a71a0)) -* dev: noUiSlider with scale ([e1b4126](https://github.com/icebob/vue-form-generator/commit/e1b4126)) -* dev: noUiSlider with scale ([dfef1f1](https://github.com/icebob/vue-form-generator/commit/dfef1f1)) -* fix: add a .jsbeautify to help with linting ([acfa264](https://github.com/icebob/vue-form-generator/commit/acfa264)) -* fix: add disabled option to noUiSlider field ([c169cb3](https://github.com/icebob/vue-form-generator/commit/c169cb3)) -* fix: add disabled option to noUiSlider field ([6d10687](https://github.com/icebob/vue-form-generator/commit/6d10687)) -* fix: added missing options for VueMultiselect. Removed `min` from dev schema (not used). ([a9bb8ae](https://github.com/icebob/vue-form-generator/commit/a9bb8ae)) -* fix: better selector for the main component and added latest build ([b2fcef1](https://github.com/icebob/vue-form-generator/commit/b2fcef1)) -* fix: buttonText instead of caption ([d4b25a9](https://github.com/icebob/vue-form-generator/commit/d4b25a9)) -* fix: buttonText instead of caption for unit test file ([f47f704](https://github.com/icebob/vue-form-generator/commit/f47f704)) -* fix: Cleavejs better mask definition ([34a6401](https://github.com/icebob/vue-form-generator/commit/34a6401)) -* fix: Cleavejs better mask definition ([e338e6d](https://github.com/icebob/vue-form-generator/commit/e338e6d)) -* fix: Fixed fragment instances #28 ([0f9863c](https://github.com/icebob/vue-form-generator/commit/0f9863c)), closes [#28](https://github.com/icebob/vue-form-generator/issues/28) -* fix: fragment instance warning ([f9915e6](https://github.com/icebob/vue-form-generator/commit/f9915e6)) -* fix: handle disabled and max props of VueMultiSelect better ([e59bcc1](https://github.com/icebob/vue-form-generator/commit/e59bcc1)) -* fix: handle disabled and max props of VueMultiSelect better ([9a6fc4b](https://github.com/icebob/vue-form-generator/commit/9a6fc4b)) -* fix: handle missing library better ([99b6a4d](https://github.com/icebob/vue-form-generator/commit/99b6a4d)) -* fix: handle missing library better ([ec93745](https://github.com/icebob/vue-form-generator/commit/ec93745)) -* fix: lint error ([a2665dd](https://github.com/icebob/vue-form-generator/commit/a2665dd)) -* fix: lint error and warning ([24c49d9](https://github.com/icebob/vue-form-generator/commit/24c49d9)) -* fix: lint error and warning ([54a3502](https://github.com/icebob/vue-form-generator/commit/54a3502)) -* fix: package version for `extract-text-webpack-plugin` ([778a9ff](https://github.com/icebob/vue-form-generator/commit/778a9ff)) -* fix: remove jQuery from eslint ([74cc91d](https://github.com/icebob/vue-form-generator/commit/74cc91d)) -* fix: small bug with quotes ([71ae504](https://github.com/icebob/vue-form-generator/commit/71ae504)) * example: change font settings ([6061d4e](https://github.com/icebob/vue-form-generator/commit/6061d4e)) * improve: simple example is more simple ([da5d8cc](https://github.com/icebob/vue-form-generator/commit/da5d8cc)) * styles: add bootstrap styles to .form-control and buttons ([3e7dfc9](https://github.com/icebob/vue-form-generator/commit/3e7dfc9)) @@ -228,6 +292,7 @@ * :new: implement #14 ([c6d0a76](https://github.com/icebob/vue-form-generator/commit/c6d0a76)) * :package: build ([9e91fcb](https://github.com/icebob/vue-form-generator/commit/9e91fcb)) * :package: build: v0.3.0 ([8780d3b](https://github.com/icebob/vue-form-generator/commit/8780d3b)) +* :pencil: docs: update changelog ([3f3aa31](https://github.com/icebob/vue-form-generator/commit/3f3aa31)) * add maxlength property to fieldText ([3fede6d](https://github.com/icebob/vue-form-generator/commit/3fede6d)) * cover validators.required method ([df2516c](https://github.com/icebob/vue-form-generator/commit/df2516c)) * Move validator error messages to resources #15 ([302ba3f](https://github.com/icebob/vue-form-generator/commit/302ba3f)) @@ -239,6 +304,10 @@ # 0.2.0 (2016-06-16) +* docs: fix typo in readme ([5530c99](https://github.com/icebob/vue-form-generator/commit/5530c99)) +* docs: update changelog ([52fc88c](https://github.com/icebob/vue-form-generator/commit/52fc88c)) +* docs: Update changelog ([77b92b6](https://github.com/icebob/vue-form-generator/commit/77b92b6)) +* docs: update readme ([b66f9a9](https://github.com/icebob/vue-form-generator/commit/b66f9a9)) * :bug fix: validation bugs ([a403971](https://github.com/icebob/vue-form-generator/commit/a403971)) * :bug: fix: checkbox readonly ([a3d330e](https://github.com/icebob/vue-form-generator/commit/a3d330e)) * :bug: fix: Handle non selected lists ([1714776](https://github.com/icebob/vue-form-generator/commit/1714776)) @@ -277,9 +346,6 @@ * Update babel dependencies ([87738f5](https://github.com/icebob/vue-form-generator/commit/87738f5)) * Update README.md ([03d9d1b](https://github.com/icebob/vue-form-generator/commit/03d9d1b)) * Update README.md ([ba41387](https://github.com/icebob/vue-form-generator/commit/ba41387)) -* docs: fix typo in readme ([5530c99](https://github.com/icebob/vue-form-generator/commit/5530c99)) -* docs: Update changelog ([77b92b6](https://github.com/icebob/vue-form-generator/commit/77b92b6)) -* docs: update readme ([b66f9a9](https://github.com/icebob/vue-form-generator/commit/b66f9a9)) * test: cover fieldSwitch ([e31c4ba](https://github.com/icebob/vue-form-generator/commit/e31c4ba)) * test: Fix sinon imports ([81531fe](https://github.com/icebob/vue-form-generator/commit/81531fe)) * fix: Fix schema in dev example ([b6f9f57](https://github.com/icebob/vue-form-generator/commit/b6f9f57)) diff --git a/README.md b/README.md index 97de3c97..7a6bccb7 100644 --- a/README.md +++ b/README.md @@ -40,10 +40,18 @@ You can find details about dependencies in [documentation](https://icebob.gitboo ## Installation ### NPM -You can install it via [NPM](http://npmjs.org/). +You can install it via [NPM](http://npmjs.org/) or [yarn](https://yarnpkg.com/). + +#### Latest version for Vue 2.x ``` $ npm install vue-form-generator ``` + +#### Legacy version for Vue 1.0.x +``` +$ npm install vue-form-generator@0.6.1 +``` + ### Manual Download zip package and unpack and add the `vue-form-generator.css` and `vue-form-generator.js` file to your project from dist folder. ``` @@ -140,8 +148,10 @@ npm run build ```bash npm test ``` - -See: https://github.com/icebob/vue-form-generator/projects/1 +or +```bash +npm run ci +``` ## Contribution Please send pull requests improving the usage and fixing bugs, improving documentation and providing better examples, or providing some testing, because these things are important. diff --git a/bower.json b/bower.json index b98ed1a4..c2e2184e 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "vue-form-generator", - "version": "0.6.1", + "version": "2.0.0-beta3", "homepage": "https://github.com/icebob/vue-form-generator", "authors": [ "Icebob" diff --git a/dev/app.vue b/dev/full/app.vue similarity index 63% rename from dev/app.vue rename to dev/full/app.vue index ff01b560..a65eca0f 100644 --- a/dev/app.vue +++ b/dev/full/app.vue @@ -1,37 +1,33 @@ - - .row - .col-md-10.col-md-offset-1 - data-table(:rows="rows", :selected="selected", :select="selectRow") - - .row(v-show="model") - .col-md-5.col-md-offset-1 - .control-buttons.text-center - button.btn.btn-default.new(@click="newModel") - i.fa.fa-plus - | New - button.btn.btn-primary.save(@click="saveModel") - i.fa.fa-floppy-o - | Save - i.fa.fa-warning(v-if="showWarning()") - button.btn.btn-danger.delete(@click="deleteModel") - i.fa.fa-trash - | Delete - - .errors.text-center - div.alert.alert-danger(v-for="item in validationErrors", track-by="$index") {{ item.field.label}}: - strong {{ item.error }} - - vue-form-generator(:schema='schema', :model='model', :options='formOptions', :multiple="selected.length > 1", v-ref:form, :is-new-model="isNewModel") - - - .col-md-6 - pre(v-if='model') {{{ model | prettyJSON }}} + + + + + + + + + + + New + Save + Delete + + + {{ item.field.label}}: {{ item.error }} + + + + + + + + - - + + + - - - + + + - + - + - - + +