Skip to content

Commit 6a493ed

Browse files
Merge branch 'master' into master
2 parents 0f79d51 + 3d7794f commit 6a493ed

File tree

132 files changed

+24152
-12638
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+24152
-12638
lines changed

.babelrc

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
{
2-
"presets": ["es2015", "stage-2"],
3-
"plugins": ["transform-runtime", "lodash"],
4-
"comments": false
5-
}
2+
"presets": [
3+
[
4+
"env",
5+
{
6+
"modules": false,
7+
"useBuiltIns": "entry"
8+
}
9+
],
10+
"stage-2"
11+
],
12+
"plugins": ["transform-runtime", "lodash"],
13+
"env": {
14+
"test": {
15+
"plugins": ["istanbul"]
16+
}
17+
}
18+
}

.bumpedrc

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
files: [
2+
'package.json',
3+
'bower.json'
4+
]
5+
6+
plugins:
7+
8+
postrelease:
9+
10+
'Compiling browser version':
11+
plugin: 'bumped-terminal'
12+
command: 'npm run build'
13+
14+
'Update changelog':
15+
plugin: 'bumped-terminal'
16+
command: 'npm run changelog'
17+
18+
'Commiting new version':
19+
plugin: 'bumped-terminal'
20+
command: 'git commit -am "$newVersion releases" && git push origin master'
21+
22+
'Publishing tag at GitHub':
23+
plugin: 'bumped-terminal'
24+
command: 'git tag v$newVersion && git push origin v$newVersion'

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
charset = utf-8
7+
indent_style = tab
8+
indent_size = 4
9+
trim_trailing_whitespace = true

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
dist/*.js
2+
build/*.js
3+
config/*.js
4+
!.eslintrc.js

.eslintrc.js

Lines changed: 26 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,27 @@
11
module.exports = {
2-
root: true,
3-
"env": {
4-
"browser": true,
5-
"commonjs": true,
6-
"es6": true,
7-
"jquery": false,
8-
"mocha": true
9-
},
10-
"extends": "eslint:recommended",
11-
"parserOptions": {
12-
"sourceType": "module",
13-
"ecmaVersion": 6,
14-
"ecmaFeatures": {
15-
"experimentalObjectRestSpread": true
16-
}
17-
},
18-
"plugins": [
19-
"html"
20-
],
21-
"rules": {
22-
"indent": [
23-
"warn",
24-
"tab",
25-
{ SwitchCase: 1 }
26-
],
27-
"quotes": [
28-
"warn",
29-
"double"
30-
],
31-
"semi": [
32-
"error",
33-
"always"
34-
],
35-
"no-var": [
36-
"error"
37-
],
38-
"no-console": [
39-
"off"
40-
],
41-
"no-unused-vars": [
42-
"warn"
43-
]
44-
}
45-
};
2+
root: true,
3+
parser: "vue-eslint-parser",
4+
parserOptions: {
5+
sourceType: "module",
6+
parser: "babel-eslint"
7+
},
8+
env: {
9+
browser: true,
10+
commonjs: true
11+
},
12+
globals: {
13+
process: true
14+
},
15+
extends: ["eslint:recommended", "plugin:vue/essential"],
16+
plugins: ["prettier"],
17+
rules: {
18+
indent: [1, "tab", { SwitchCase: 1 }],
19+
quotes: [1, "double", { allowTemplateLiterals: true }],
20+
semi: [2, "always"],
21+
"no-var": [2],
22+
"no-console": [0],
23+
"no-unused-vars": [1],
24+
"no-throw-literal": 0,
25+
eqeqeq: [2, "smart"]
26+
}
27+
};

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
.DS_Store
22
node_modules/
3-
coverage/
43
docs/_book/
54
npm-debug.log
65
selenium-debug.log
76
test/unit/coverage
87
test/e2e/reports
98
stats.json
109
typings/
11-
typings.json
10+
typings.json

.jsbeautifyrc

Lines changed: 0 additions & 6 deletions
This file was deleted.

.travis.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
11
language: node_js
2-
#cache:
3-
# directories:
4-
# - node_modules
2+
cache:
3+
directories:
4+
- node_modules
55
node_js:
6-
- "7"
6+
- "9"
7+
- "8"
78
- "6"
89
after_success:
910
- npm run coverall
11+
12+
deploy:
13+
provider: npm
14+
email: $NPM_EMAIL
15+
api_key: $NPM_API_KEY
16+
skip_cleanup: true
17+
on:
18+
tags: true
19+
node: "8"

CHANGELOG.md

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,77 @@
1+
<a name="2.2.2"></a>
2+
## 2.2.2 (2018-04-24)
3+
* Fix NaN with value 0 on input type number/range.
4+
* Fix bug in fieldUpload that threw error due to $event not being defined
5+
* Added $event to onValidationError in fieldSubmit
6+
* Fixed bug with validationErrorClass and validationSuccessClass depending on each
7+
* Made DEBOUNCE_FORMAT_MS configurable in fieldInput, just pass `debounceFormatTimeout: TIME_IN_MS` in field schema
8+
* $event.preventDefault() called when using async validation with fieldSubmit to prevent unwanted form submissions
9+
10+
11+
12+
<a name="2.2.1"></a>
13+
## 2.2.1 (2018-03-09)
14+
15+
* ... ([eadccc2](https://github.com/icebob/vue-form-generator/commit/eadccc2))
16+
* #409 - fixed id property in fieldUpdate ([b86fddf](https://github.com/icebob/vue-form-generator/commit/b86fddf))
17+
* fixed markdown link ([3ef928a](https://github.com/icebob/vue-form-generator/commit/3ef928a))
18+
* removed extra paren ([a6df78b](https://github.com/icebob/vue-form-generator/commit/a6df78b))
19+
* resolves #368 added vue-tel-input ([a8859b3](https://github.com/icebob/vue-form-generator/commit/a8859b3)), closes [#368](https://github.com/icebob/vue-form-generator/issues/368)
20+
* setup automate releasing ([6e6527f](https://github.com/icebob/vue-form-generator/commit/6e6527f))
21+
22+
23+
24+
<a name="2.2.0"></a>
25+
# 2.2.0 (2018-01-21)
26+
27+
* add console.log ([fa779bd](https://github.com/icebob/vue-form-generator/commit/fa779bd))
28+
* add console.log to debug ([d05818e](https://github.com/icebob/vue-form-generator/commit/d05818e))
29+
* add indent ([026439a](https://github.com/icebob/vue-form-generator/commit/026439a))
30+
* add unscape html for error message. ([20b8d9d](https://github.com/icebob/vue-form-generator/commit/20b8d9d))
31+
* added "getLabelClasses" and unit test, using the fieldClasses unit test as an example ([8c01307](https://github.com/icebob/vue-form-generator/commit/8c01307))
32+
* added labelClasses support ([acdbb6c](https://github.com/icebob/vue-form-generator/commit/acdbb6c))
33+
* added missing "id" attributes to checkbox, checklist, radios and submit ([09d44c1](https://github.com/icebob/vue-form-generator/commit/09d44c1))
34+
* added missing comma that failed in Travis ([32c7627](https://github.com/icebob/vue-form-generator/commit/32c7627))
35+
* added styleClasses support to groups ([8b6801b](https://github.com/icebob/vue-form-generator/commit/8b6801b))
36+
* addeds "styleClasses" to group schemas, reimplements #339 ([8e4b43d](https://github.com/icebob/vue-form-generator/commit/8e4b43d))
37+
* bumped vue version to 2.5.3 ([7d7c0c4](https://github.com/icebob/vue-form-generator/commit/7d7c0c4))
38+
* change the judgement ([d4bc27a](https://github.com/icebob/vue-form-generator/commit/d4bc27a))
39+
* check if field.type is undefined before appending the "field-undefined" class ([9993550](https://github.com/icebob/vue-form-generator/commit/9993550))
40+
* commit the built bundle ([45e1436](https://github.com/icebob/vue-form-generator/commit/45e1436))
41+
* commit the built dist ([12b3cf7](https://github.com/icebob/vue-form-generator/commit/12b3cf7))
42+
* commit without console.log ([79a77bd](https://github.com/icebob/vue-form-generator/commit/79a77bd))
43+
* delete console.log ([ed853a2](https://github.com/icebob/vue-form-generator/commit/ed853a2))
44+
* don't render labels when no label text is provided, proposed option 1 from #347 ([8ecc851](https://github.com/icebob/vue-form-generator/commit/8ecc851))
45+
* fix bower.json validation ([2afb4ac](https://github.com/icebob/vue-form-generator/commit/2afb4ac))
46+
* fixed null check ([7842b92](https://github.com/icebob/vue-form-generator/commit/7842b92))
47+
* fixed Vue version ([624ed92](https://github.com/icebob/vue-form-generator/commit/624ed92))
48+
* fixes #340 - "none" value set to `null`, formatValueToField checks for `isNil(value)` and returns `n ([5b42807](https://github.com/icebob/vue-form-generator/commit/5b42807)), closes [#340](https://github.com/icebob/vue-form-generator/issues/340)
49+
* fixes #341 - introduced debounce functionality into `formatValueToModel` ([a46fe31](https://github.com/icebob/vue-form-generator/commit/a46fe31)), closes [#341](https://github.com/icebob/vue-form-generator/issues/341)
50+
* fixes #345 - declare debouncedValidateFunc and set it when debouncedValidate() is called... vue 2.2. ([ee684f0](https://github.com/icebob/vue-form-generator/commit/ee684f0)), closes [#345](https://github.com/icebob/vue-form-generator/issues/345)
51+
* fixes #358 - support "validateBeforeSubmit" with async validators ([5a26ef1](https://github.com/icebob/vue-form-generator/commit/5a26ef1)), closes [#358](https://github.com/icebob/vue-form-generator/issues/358)
52+
* fixes #361 - use $event.target.valueAsNumber for number/range inputs, debounce `formatValueToModel` ([d1a8bcf](https://github.com/icebob/vue-form-generator/commit/d1a8bcf)), closes [#361](https://github.com/icebob/vue-form-generator/issues/361)
53+
* fixes #362 - `integer` validator now calls `number` validator, and returns `invalidIntegerl: "The va ([8d436be](https://github.com/icebob/vue-form-generator/commit/8d436be)), closes [#362](https://github.com/icebob/vue-form-generator/issues/362)
54+
* Groupped fields "tag" param fixed. ([9275a26](https://github.com/icebob/vue-form-generator/commit/9275a26))
55+
* moved unit test to formGenerator, as labels are managed by formGenerator and not the field component ([f102967](https://github.com/icebob/vue-form-generator/commit/f102967))
56+
* remove garbage ([17eeae5](https://github.com/icebob/vue-form-generator/commit/17eeae5))
57+
* remove the errorUnescaped property, add v-html on the error part ([ecd2ca5](https://github.com/icebob/vue-form-generator/commit/ecd2ca5))
58+
* remove uniqueId import ([c86d7dc](https://github.com/icebob/vue-form-generator/commit/c86d7dc))
59+
* removed commented out console.log statements ([e9bf285](https://github.com/icebob/vue-form-generator/commit/e9bf285))
60+
* removed console.log and fixed quotes ([025b541](https://github.com/icebob/vue-form-generator/commit/025b541))
61+
* removed indentation ([49f57b8](https://github.com/icebob/vue-form-generator/commit/49f57b8))
62+
* requested by @icebob ([2724809](https://github.com/icebob/vue-form-generator/commit/2724809))
63+
* reverted back to `schema.required` for "none selected" disabled state, per @icebob ([f562d7f](https://github.com/icebob/vue-form-generator/commit/f562d7f))
64+
* reverting back to original test ([4ba3d4a](https://github.com/icebob/vue-form-generator/commit/4ba3d4a))
65+
* Update badges ([705c6a7](https://github.com/icebob/vue-form-generator/commit/705c6a7))
66+
* Update formGenerator.vue ([3208446](https://github.com/icebob/vue-form-generator/commit/3208446))
67+
* update node-sass ([e3eee64](https://github.com/icebob/vue-form-generator/commit/e3eee64))
68+
* Update README.md ([f57faba](https://github.com/icebob/vue-form-generator/commit/f57faba))
69+
* Update README.md ([1092e01](https://github.com/icebob/vue-form-generator/commit/1092e01))
70+
* Update README.md ([9d9701b](https://github.com/icebob/vue-form-generator/commit/9d9701b))
71+
* updated tests for modified label logic ([f0c2281](https://github.com/icebob/vue-form-generator/commit/f0c2281))
72+
73+
74+
175
<a name="2.1.1"></a>
276
## 2.1.1 (2017-10-20)
377

ISSUE_TEMPLATE.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
**Note: for support questions, please use stackoverflow**. This repository's issues are reserved for feature requests and bug reports.
2+
3+
* **I'm submitting a ...**
4+
* [ ] bug report
5+
* [ ] feature request
6+
* [ ] support request => Please do not submit support request here, see note at the top of this template.
7+
8+
- **Do you want to request a _feature_ or report a _bug_?**
9+
10+
* **What is the current behavior?**
11+
12+
- **If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem** via
13+
https://jsfiddle.net/ or similar (you can use this template as a starting point: https://jsfiddle.net/icebob/0mg1v81e/).
14+
15+
* **What is the expected behavior?**
16+
17+
- **What is the motivation / use case for changing the behavior?**
18+
19+
* **Please tell us about your environment:**
20+
21+
* Version: [2.X.X | 3.0.0-beta.X]
22+
* Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
23+
* Language: [all | TypeScript X.X | ES6/7 | ES5 | Dart]
24+
25+
- **Other information** (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)

0 commit comments

Comments
 (0)