Skip to content

Commit 0872ebd

Browse files
committed
Merge remote-tracking branch 'refs/remotes/origin/dev' into components/MdSlider
2 parents 4d8b25b + 1bdd132 commit 0872ebd

File tree

138 files changed

+4157
-2904
lines changed

Some content is hidden

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

138 files changed

+4157
-2904
lines changed

.babelrc

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11
{
22
"presets": [
3-
"es2015",
4-
"stage-3",
5-
[
6-
"env",
7-
{
8-
"modules": false,
9-
"useBuiltIns": false
10-
}
11-
]
3+
"@babel/preset-es2015",
4+
"@babel/preset-env"
125
],
136
"plugins": [
14-
"syntax-dynamic-import"
7+
"@babel/plugin-syntax-dynamic-import",
8+
"@babel/plugin-proposal-object-rest-spread"
159
],
1610
"ignore": [
1711
"dist/*.js"

.eslintrc

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,20 @@
66
"sourceType": "module"
77
},
88
"plugins": [
9-
"jest"
9+
"jest",
10+
"vue"
1011
],
1112
"extends": [
12-
"plugin:vue/recommended"
13+
"plugin:vue/essential"
1314
],
1415
"env": {
1516
"jest/globals": true
1617
},
1718
"rules": {
1819
"arrow-parens": 0,
19-
"generator-star-spacing": 0,
20-
"vue/valid-v-on": 0,
20+
"generator-star-spacing": "off",
21+
"indent": "off",
22+
"indent-legacy": ["error", 2],
2123
"max-depth": [
2224
"error",
2325
4
@@ -37,9 +39,10 @@
3739
"complexity": [
3840
"error",
3941
{
40-
"max": 5
42+
"max": 6
4143
}
4244
],
45+
"vue/valid-v-on": 0,
4346
"vue/v-bind-style": [
4447
"error",
4548
"shorthand"

CHANGELOG.md

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
<a name="v1.0.0-beta-8"></a>
2+
# [v1.0.0-beta-8](https://github.com/vuematerial/vue-material/compare/v1.0.7-beta-8...v1.0.0-beta-7) (2018-01-29)
3+
4+
5+
### Bug Fixes
6+
7+
* **MdAutocomplete:** fix input emit when cleared ([#1295](https://github.com/vuematerial/vue-material/issues/1295)) ([8a055e8](https://github.com/vuematerial/vue-material/commit/8a055e8))
8+
* **MdAutocomplete:** prevent show options twice ([#1410](https://github.com/vuematerial/vue-material/issues/1410)) ([6a719b5](https://github.com/vuematerial/vue-material/commit/6a719b5)), closes [#1408](https://github.com/vuematerial/vue-material/issues/1408)
9+
* **MdChips:** add labels for static chips ([#1329](https://github.com/vuematerial/vue-material/issues/1329)) ([b7094cb](https://github.com/vuematerial/vue-material/commit/b7094cb)), closes [#1327](https://github.com/vuematerial/vue-material/issues/1327)
10+
* **MdDatepicker:** avoid warning for duplicated keys ([#1379](https://github.com/vuematerial/vue-material/issues/1379)) ([70712d7](https://github.com/vuematerial/vue-material/commit/70712d7))
11+
* **MdDialog:** IE not rendering Dialogs ([#1356](https://github.com/vuematerial/vue-material/issues/1356)) ([8115f32](https://github.com/vuematerial/vue-material/commit/8115f32))
12+
* **MdField:** Consider number `0` as hasValue ([#1407](https://github.com/vuematerial/vue-material/issues/1407)) ([d026496](https://github.com/vuematerial/vue-material/commit/d026496)), closes [#1406](https://github.com/vuematerial/vue-material/issues/1406)
13+
* **MdField:** disable clear button while field is disabled ([#1326](https://github.com/vuematerial/vue-material/issues/1326)) ([03a9425](https://github.com/vuematerial/vue-material/commit/03a9425)), closes [#1321](https://github.com/vuematerial/vue-material/issues/1321)
14+
* **MdField:** preserve the name attribute on change ([#1385](https://github.com/vuematerial/vue-material/issues/1385)) ([0a83834](https://github.com/vuematerial/vue-material/commit/0a83834))
15+
* **MdField:** prevent MdInput and MdTextarea from emit input events directly ([#1285](https://github.com/vuematerial/vue-material/issues/1285)) ([00832e9](https://github.com/vuematerial/vue-material/commit/00832e9)), closes [#1261](https://github.com/vuematerial/vue-material/issues/1261)
16+
* **MdHighlightText:** avoid printing 'null' as a value ([#1352](https://github.com/vuematerial/vue-material/issues/1352)) ([4d906b6](https://github.com/vuematerial/vue-material/commit/4d906b6)), closes [#1351](https://github.com/vuematerial/vue-material/issues/1351)
17+
* **MdLayout:** add xlarge and large classes to the layout component ([#1323](https://github.com/vuematerial/vue-material/issues/1323)) ([6c5fe65](https://github.com/vuematerial/vue-material/commit/6c5fe65))
18+
* **MdMenu:** Close menu while another is opened ([#1266](https://github.com/vuematerial/vue-material/issues/1266)) ([ef720c4](https://github.com/vuematerial/vue-material/commit/ef720c4)), closes [#1255](https://github.com/vuematerial/vue-material/issues/1255)
19+
* **MdMenu:** fix close-on-select props ([#1280](https://github.com/vuematerial/vue-material/issues/1280)) ([40406af](https://github.com/vuematerial/vue-material/commit/40406af)), closes [#1279](https://github.com/vuematerial/vue-material/issues/1279)
20+
* **MdProgressSpinner:** undefined navigator on SSR ([#1441](https://github.com/vuematerial/vue-material/issues/1441)) ([4722dad](https://github.com/vuematerial/vue-material/commit/4722dad))
21+
* **MdRipple:** clear ripples if called programatically ([#1431](https://github.com/vuematerial/vue-material/issues/1431)) ([9e6aa8a](https://github.com/vuematerial/vue-material/commit/9e6aa8a))
22+
* **MdSelect:** emit `md-selected` event after `localValue` changed ([#1282](https://github.com/vuematerial/vue-material/issues/1282)) ([023723a](https://github.com/vuematerial/vue-material/commit/023723a)), closes [#1275](https://github.com/vuematerial/vue-material/issues/1275)
23+
* **MdSelect:** fix dense layout not being rendered properly ([#1346](https://github.com/vuematerial/vue-material/issues/1346)) ([7110eab](https://github.com/vuematerial/vue-material/commit/7110eab)), closes [#1332](https://github.com/vuematerial/vue-material/issues/1332)
24+
* **MdSelect:** make options in disabled groups un-selectable ([#1293](https://github.com/vuematerial/vue-material/issues/1293)) ([89138eb](https://github.com/vuematerial/vue-material/commit/89138eb)), closes [#1286](https://github.com/vuematerial/vue-material/issues/1286)
25+
* **MdSelect:** prevent overflowing arrow icon ([#1373](https://github.com/vuematerial/vue-material/issues/1373)) ([637e914](https://github.com/vuematerial/vue-material/commit/637e914))
26+
* **MdSelect:** Reactive options ([#1447](https://github.com/vuematerial/vue-material/issues/1447)) ([01dfdfb](https://github.com/vuematerial/vue-material/commit/01dfdfb)), closes [#1262](https://github.com/vuematerial/vue-material/issues/1262)
27+
* **MdSteppers:** recalculate styles on window resize ([#1394](https://github.com/vuematerial/vue-material/issues/1394)) ([d3953f7](https://github.com/vuematerial/vue-material/commit/d3953f7))
28+
* **MdTable:** fix error to sort by attribute of child object ([#1309](https://github.com/vuematerial/vue-material/issues/1309)) ([9134227](https://github.com/vuematerial/vue-material/commit/9134227))
29+
* **MdTable:** fix height of fixed table for firefox ([#1384](https://github.com/vuematerial/vue-material/issues/1384)) ([e24f8dc](https://github.com/vuematerial/vue-material/commit/e24f8dc))
30+
* **MdTable:** improve sort function on table for numbered columns ([#1353](https://github.com/vuematerial/vue-material/issues/1353)) ([18bb96c](https://github.com/vuematerial/vue-material/commit/18bb96c)), closes [#1349](https://github.com/vuematerial/vue-material/issues/1349)
31+
* **MdTable:** remove table head when column removed ([#1354](https://github.com/vuematerial/vue-material/issues/1354)) ([b54eb10](https://github.com/vuematerial/vue-material/commit/b54eb10)), closes [#1347](https://github.com/vuematerial/vue-material/issues/1347)
32+
* **MdTabs:** correct indicator position while alignment changed ([#1442](https://github.com/vuematerial/vue-material/issues/1442)) ([c5fc2f5](https://github.com/vuematerial/vue-material/commit/c5fc2f5)), closes [#1432](https://github.com/vuematerial/vue-material/issues/1432)
33+
* **MdTabs:** fix indicator ([#1448](https://github.com/vuematerial/vue-material/issues/1448)) ([b33d0d6](https://github.com/vuematerial/vue-material/commit/b33d0d6)), closes [#1304](https://github.com/vuematerial/vue-material/issues/1304)
34+
* **MdTextarea:** fix input event handler not triggering ([#1341](https://github.com/vuematerial/vue-material/issues/1341)) ([567e9a7](https://github.com/vuematerial/vue-material/commit/567e9a7)), closes [#1340](https://github.com/vuematerial/vue-material/issues/1340)
35+
* **MdTextarea:** prevent emitting `inputEvent` object on `input` ([#1249](https://github.com/vuematerial/vue-material/issues/1249)) ([c83f2a6](https://github.com/vuematerial/vue-material/commit/c83f2a6)), closes [#1247](https://github.com/vuematerial/vue-material/issues/1247)
36+
* **MdTooltip:** `mdActive` never updated to true using `.sync` modifier ([b1018fb](https://github.com/vuematerial/vue-material/commit/b1018fb))
37+
* **MdTooltip:** overlaying in dialog ([#1446](https://github.com/vuematerial/vue-material/issues/1446)) ([8ade40f](https://github.com/vuematerial/vue-material/commit/8ade40f))
38+
* menu compatibility with IE (node type statement) ([#1365](https://github.com/vuematerial/vue-material/issues/1365)) ([a4c03be](https://github.com/vuematerial/vue-material/commit/a4c03be)), closes [#1263](https://github.com/vuematerial/vue-material/issues/1263) [#1263](https://github.com/vuematerial/vue-material/issues/1263)
39+
* upgrade vue-template-compiler in yarn.lock ([#1306](https://github.com/vuematerial/vue-material/issues/1306)) ([b1bc2e1](https://github.com/vuematerial/vue-material/commit/b1bc2e1))
40+
* z-index issues ([#1264](https://github.com/vuematerial/vue-material/issues/1264)) ([843056d](https://github.com/vuematerial/vue-material/commit/843056d))
41+
42+
43+
### Features
44+
45+
* **MdApp:** allow custom components with slot ([#1387](https://github.com/vuematerial/vue-material/issues/1387)) ([ff341a2](https://github.com/vuematerial/vue-material/commit/ff341a2))
46+
* **MdApp:** custom class and style ([#1256](https://github.com/vuematerial/vue-material/issues/1256)) ([9073313](https://github.com/vuematerial/vue-material/commit/9073313))
47+
* **MdChips:** add formatter for individual chips ([#1339](https://github.com/vuematerial/vue-material/issues/1339)) ([247a840](https://github.com/vuematerial/vue-material/commit/247a840)), closes [#1288](https://github.com/vuematerial/vue-material/issues/1288)
48+
* **MdChips:** feedback for duplicated chip ([#1281](https://github.com/vuematerial/vue-material/issues/1281)) ([d15f63b](https://github.com/vuematerial/vue-material/commit/d15f63b)), closes [#1212](https://github.com/vuematerial/vue-material/issues/1212) [#1212](https://github.com/vuematerial/vue-material/issues/1212)
49+
* **MdDatepicker:** add dateformat ([#1436](https://github.com/vuematerial/vue-material/issues/1436)) ([74aee23](https://github.com/vuematerial/vue-material/commit/74aee23))
50+
* **MdDatepicker:** add support for labels ([#1265](https://github.com/vuematerial/vue-material/issues/1265)) ([9f61c0b](https://github.com/vuematerial/vue-material/commit/9f61c0b))
51+
* **MdDatepicker:** custom first day of a week ([#1409](https://github.com/vuematerial/vue-material/issues/1409)) ([af0dc0a](https://github.com/vuematerial/vue-material/commit/af0dc0a)), closes [#1397](https://github.com/vuematerial/vue-material/issues/1397) [#1397](https://github.com/vuematerial/vue-material/issues/1397)
52+
* **MdDatepicker:** emit date without confirming ([#1426](https://github.com/vuematerial/vue-material/issues/1426)) ([e4af731](https://github.com/vuematerial/vue-material/commit/e4af731))
53+
* **MdDatepicker:** override browser native pickers ([#1270](https://github.com/vuematerial/vue-material/issues/1270)) ([1cfaf3c](https://github.com/vuematerial/vue-material/commit/1cfaf3c))
54+
* **MdDatepicker:** remove fixed label position ([#1417](https://github.com/vuematerial/vue-material/issues/1417)) ([a2cbc98](https://github.com/vuematerial/vue-material/commit/a2cbc98))
55+
* **MdListItemExpand:** reactive expansion ([#1435](https://github.com/vuematerial/vue-material/issues/1435)) ([0f7e28f](https://github.com/vuematerial/vue-material/commit/0f7e28f)), closes [#1425](https://github.com/vuematerial/vue-material/issues/1425)
56+
* **MdListItemLink:** add all `<a>` attributes supported ([#1328](https://github.com/vuematerial/vue-material/issues/1328)) ([c9a2b9f](https://github.com/vuematerial/vue-material/commit/c9a2b9f)), closes [#1320](https://github.com/vuematerial/vue-material/issues/1320)
57+
* **MdRipple:** multiple waves ([#1419](https://github.com/vuematerial/vue-material/issues/1419)) ([70b3aa2](https://github.com/vuematerial/vue-material/commit/70b3aa2))
58+
* **MdTable:** reactive selection ([#1358](https://github.com/vuematerial/vue-material/issues/1358)) ([906a91d](https://github.com/vuematerial/vue-material/commit/906a91d)), closes [#1348](https://github.com/vuematerial/vue-material/issues/1348) [#1292](https://github.com/vuematerial/vue-material/issues/1292)
59+
* **MdTableRow:** enable native browser events without the .native modifier ([#1393](https://github.com/vuematerial/vue-material/issues/1393)) ([edb484e](https://github.com/vuematerial/vue-material/commit/edb484e))
60+
61+
62+
### BREAKING CHANGES
63+
64+
* **MdTable:** no more `md-selected` event from `MdTableRow`
65+
66+
* fix(MdTable): select event should be triggered after select update event
67+
68+
* fix(MdTableHeadSelection): select all only take effect on selectable items
69+
70+
71+
72+

ROADMAP.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ The release strategy will be like this:
3838
- [X] Multiple themes
3939
- [x] CSS Variables
4040
- [ ] CSS-only themes
41-
- [ ] SSR Support - `NEW`
41+
- [X] SSR Support - `NEW`
4242
- [X] Basic Support
4343

4444
### Components
45-
- [ ] MdAutocomplete - `NEW API`
45+
- [X] MdAutocomplete - `NEW API`
4646
- [X] MdApp - `NEW`
4747
- [X] Documentation
4848
- [X] Reusable App Shell component
@@ -79,8 +79,8 @@ The release strategy will be like this:
7979
- [X] Prompt
8080
- [X] Custom
8181
- [X] MdDivider
82-
- [ ] MdDrawer - `NEW API`
83-
- [ ] Documentation
82+
- [X] MdDrawer - `NEW API`
83+
- [X] Documentation
8484
- [x] Deprecate md-sidenav
8585
- [X] Persistent - `NEW`
8686
- [X] Permanent - `NEW`
@@ -92,8 +92,8 @@ The release strategy will be like this:
9292
- [X] Deprecate whiteframe component
9393
- [X] Elevation classes
9494
- [X] MdEmptyState - `NEW`
95-
- [ ] MdField - `NEW API`
96-
- [ ] Documentation
95+
- [X] MdField - `NEW API`
96+
- [X] Documentation
9797
- [X] Change md-input-container to md-field
9898
- [X] Input/Textarea
9999
- [X] Checkbox
@@ -102,8 +102,8 @@ The release strategy will be like this:
102102
- [X] File - `NEW API`
103103
- [x] Select
104104
- [X] MdIcon
105-
- [ ] MdLayout - `NEW API`
106-
- [ ] Documentation
105+
- [X] MdLayout - `NEW API`
106+
- [X] Documentation
107107
- [X] Deprecate layout component
108108
- [X] New flexbox/responsive/class-based grid
109109
- [ ] MdList - `NEW API`
@@ -112,26 +112,26 @@ The release strategy will be like this:
112112
- [X] Expansion
113113
- [X] Input Controls
114114
- [X] MdMenu - `NEW API`
115-
- [ ] MdProgress - `NEW API`
116-
- [ ] Documentation
117-
- [ ] Spinner
118-
- [ ] Bar
119-
- [ ] 0%/100% progress
120-
- [ ] Indeterminate state
115+
- [X] MdProgress - `NEW API`
116+
- [X] Documentation
117+
- [X] Spinner
118+
- [X] Bar
119+
- [X] 0%/100% progress
120+
- [X] Indeterminate state
121121
- [X] MdRadio
122122
- [ ] MdRipple - `NEW API`
123123
- [ ] Documentation
124124
- [X] New ripple
125125
- [ ] Abstract component
126126
- [ ] Performance improvements
127-
- [ ] MdSnackbar
128-
- [ ] Documentation
127+
- [X] MdSnackbar
128+
- [X] Documentation
129129
- [X] Themed Snackbar
130130
- [X] MdSpeedDial - `NEW API`
131131
- [X] Click Action
132132
- [X] Multiple Effects
133-
- [ ] MdSteppers - `NEW API`
134-
- [ ] Documentation
133+
- [X] MdSteppers - `NEW API`
134+
- [X] Documentation
135135
- [X] Horizontal
136136
- [X] Vertical
137137
- [X] MdSubheader
@@ -146,8 +146,8 @@ The release strategy will be like this:
146146
- [x] Selection
147147
- [ ] Pagination
148148
- [x] Alternate Header
149-
- [ ] MdTabs
150-
- [ ] Documentation
149+
- [X] MdTabs
150+
- [X] Documentation
151151
- [X] Router integration - `NEW`
152152
- [X] Router Sync - `NEW`
153153
- [X] Symple way to trigger active tab
@@ -160,15 +160,15 @@ The release strategy will be like this:
160160
- [ ] Guide
161161
- [ ] Extending Vue Material
162162
- [ ] Third Party Components
163-
- [ ] About
163+
- [X] About
164164
- [ ] Changelog
165165
- [ ] Components summary
166166
- [ ] Contribute
167-
- [ ] Getting Started
167+
- [X] Getting Started
168168
- [ ] Migration Guide
169-
- [ ] Static docs
170-
- [ ] Themes
171-
- [ ] Configuration
169+
- [X] Static docs
170+
- [X] Themes
171+
- [X] Configuration
172172
- [ ] Dynamic Themes
173173
- [ ] UI Elements summary
174174

build/docs/webpack.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ const componentExampleLoader = require.resolve('../loaders/component-example-loa
2929
const webpackConfig = {
3030
entry: {
3131
app: [
32+
'@babel/polyfill',
3233
'./docs/app/index.js',
3334
'./build/docs/offline.js'
3435
]

build/generate-changelog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ config.then(data => {
2020
}
2121
}
2222

23-
cc(changelogConfig).pipe(releaseNotes).on('close', () => {
23+
cc(changelogConfig, {}).pipe(releaseNotes).on('close', () => {
2424
concat([releaseNotesFile, changelogFile], changelogFile)
2525
})
2626
})

build/loaders/component-example-loader.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ const prettier = require('prettier')
44
const path = require('path')
55
const compiler = require('vue-template-compiler')
66
const { resolvePath } = require('../config')
7-
const { transform } = require('babel-core')
8-
const transpile = code => transform(code, {extends: resolvePath('.babelrc')}).code
7+
const { transform } = require('@babel/core')
8+
const transpile = code => transform(code).code
99
const { getIndentedSource } = require('../../docs/app/mixins/codeSource')
1010

1111
function camelCaseToDash (str) {

build/local/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const app = express()
1111
const compiler = webpack(webpackConfig)
1212
const devMiddlewareInstance = devMiddleware(compiler, {
1313
publicPath: config.public,
14-
quiet: true
14+
logLevel: 'silent'
1515
})
1616

1717
const hotMiddlewareInstance = hotMiddleware(compiler, {

build/local/webpack.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export default {
1212
devtool: 'cheap-module-eval-source-map',
1313
entry: {
1414
docs: [
15+
'@babel/polyfill',
1516
'./docs/app/index.js',
1617
'./build/local/client'
1718
]

build/new-component.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ export default Vue => {
8080

8181
function getDocsFile (name) {
8282
const singleName = name.replace('Md', '')
83+
const docName = name.replace('Md', 'Doc')
8384

8485
return `<example src="./examples/Example.vue" />
8586
@@ -105,7 +106,7 @@ function getDocsFile (name) {
105106
import examples from 'docs-mixins/docsExample'
106107
107108
export default {
108-
name: '${singleName}',
109+
name: '${docName}',
109110
mixins: [examples]
110111
}
111112
</script>
@@ -155,7 +156,7 @@ const rootDir = join(__dirname, '..')
155156
const componentsPath = 'src/components/' + name
156157
const componentIndex = 'src/components/index.js'
157158
const themePath = 'src/theme/all.scss'
158-
const docsPath = 'docs/app/pages/components/' + singleName
159+
const docsPath = 'docs/app/pages/Components/' + singleName
159160
const docsRoutePath = 'docs/app/routes.js'
160161
const navPath = 'docs/app/template/MainNavContent.vue'
161162

build/release.sh

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,22 @@ if [[ $REPLY =~ ^[Yy]$ ]]; then
3333
VERSION=$VERSION yarn build
3434

3535

36-
echo "\n${YELLOW}Generating changelog... ${NC}"
37-
# yarn changelog
38-
# rm -rf RELEASE_NOTES.md
39-
40-
4136
echo "\n${YELLOW}Commiting... ${NC}"
4237
git add -A
4338
git commit -m "build: $VERSION"
4439
npm version $VERSION --message "build: release $version"
45-
git push
40+
41+
42+
echo "\n${YELLOW}Generating changelog... ${NC}"
43+
yarn changelog
44+
rm -rf RELEASE_NOTES.md
45+
git add -A
46+
git commit -m "build: changelog $VERSION"
4647

4748

4849
echo "\n${YELLOW}Publishing a new release... ${NC}"
50+
git push origin refs/tags/v$VERSION
51+
git push
4952
npm publish
5053

5154

0 commit comments

Comments
 (0)