Skip to content

Commit

Permalink
chore: Final v0.7.0 build
Browse files Browse the repository at this point in the history
  • Loading branch information
rstoenescu committed Sep 18, 2016
1 parent 89e667f commit 64a6385
Show file tree
Hide file tree
Showing 25 changed files with 138 additions and 99 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
"raw-loader": "^0.5.1",
"roboto-fontface": "^0.6.0",
"rollup": "^0.34.1",
"rollup-plugin-babel": "^2.6.1",
"rollup-plugin-string": "^2.0.2",
"rollup-plugin-vue": "^2.0.1",
"stylint": "^1.5.6",
Expand Down
3 changes: 2 additions & 1 deletion src/components/action-sheet/action-sheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ export default {
.set({
transitionIn: {translateY: [0, '101%']},
transitionOut: {translateY: ['101%', 0]},
onBackButton: data.dismissButton.handler
onBackButton: data.dismissButton.handler,
onEscapeKey: data.dismissButton.handler
})

modal.$el.classList.remove('items-center')
Expand Down
2 changes: 1 addition & 1 deletion src/components/modal/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class Modal {
options = {
duration,
complete: () => {
EscapeKey.register(() => { this.close() })
EscapeKey.register(() => { this.close(this.onEscapeKey) })
this.__onShowHandlers.forEach(
handler => { handler() }
)
Expand Down
1 change: 0 additions & 1 deletion src/components/toast/toast.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ function create (opts, defaults) {
}

toast.create(opts)
return toast
}

types.forEach(type => {
Expand Down
39 changes: 24 additions & 15 deletions src/css-components/list/list.ios.styl
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,6 @@
&.active, &.v-link-active
background rgba(0, 0, 0, .2)

& + &
&.item-delimiter
border-top 1px solid rgb(224, 224, 224)
&.item-inset-delimiter
&:after
content ''
position absolute
top 0
left 72px
right 0
height 1px
background rgb(224, 224, 224)

&.item-link
cursor pointer
&:active
Expand Down Expand Up @@ -191,6 +178,22 @@
.item-smaller
font-size 14px

.item + .item,
.item + .quasar-collapsible,
.quasar-collapsible + .item,
.quasar-collapsible + .quasar-collapsible
&.item-delimiter
border-top 1px solid rgb(224, 224, 224)
&.item-inset-delimiter
&:after
content ''
position absolute
top 0
left 72px
right 0
height 1px
background rgb(224, 224, 224)

body.desktop .item.item-link:hover
background rgba(0, 0, 0, .2)

Expand Down Expand Up @@ -234,10 +237,16 @@ body.desktop .item.item-link:hover
background-color rgba(0, 0, 0, .1)

&.item-delimiter
.item + .item
.item + .item,
.item + .quasar-collapsible,
.quasar-collapsible + .item,
.quasar-collapsible + .quasar-collapsible
border-top 1px solid rgb(224, 224, 224)
&.item-inset-delimiter
.item + .item
.item + .item,
.item + .quasar-collapsible,
.quasar-collapsible + .item,
.quasar-collapsible + .quasar-collapsible
&:after
content ''
position absolute
Expand Down
39 changes: 24 additions & 15 deletions src/css-components/list/list.mat.styl
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,6 @@
&.active, &.v-link-active
background rgba(0, 0, 0, .2)

& + &
&.item-delimiter
border-top 1px solid rgb(224, 224, 224)
&.item-inset-delimiter
&:after
content ''
position absolute
top 0
left 72px
right 0
height 1px
background rgb(224, 224, 224)

&.item-link
cursor pointer
&:active
Expand Down Expand Up @@ -191,6 +178,22 @@
.item-smaller
font-size 14px

.item + .item,
.item + .quasar-collapsible,
.quasar-collapsible + .item,
.quasar-collapsible + .quasar-collapsible
&.item-delimiter
border-top 1px solid rgb(224, 224, 224)
&.item-inset-delimiter
&:after
content ''
position absolute
top 0
left 72px
right 0
height 1px
background rgb(224, 224, 224)

body.desktop .item.item-link:hover
background rgba(0, 0, 0, .2)

Expand Down Expand Up @@ -234,10 +237,16 @@ body.desktop .item.item-link:hover
background-color rgba(0, 0, 0, .1)

&.item-delimiter
.item + .item
.item + .item,
.item + .quasar-collapsible,
.quasar-collapsible + .item,
.quasar-collapsible + .quasar-collapsible
border-top 1px solid rgb(224, 224, 224)
&.item-inset-delimiter
.item + .item
.item + .item,
.item + .quasar-collapsible,
.quasar-collapsible + .item,
.quasar-collapsible + .quasar-collapsible
&:after
content ''
position absolute
Expand Down
2 changes: 1 addition & 1 deletion src/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function registerComponents (_Vue) {
_Vue.component('quasar-collapsible', Collapsible)
_Vue.component('quasar-context-menu', Platform.is.desktop ? ContextMenuDesktop : ContextMenuMobile)
_Vue.component('quasar-inline-datetime', theme === 'ios' ? iOSInlineDatetime : MaterialInlineDatetime)
_Vue.component('quasar-datetime', Platform.is.desktop ? InputDatetimeDesktop : InputDatetimeMobile)
_Vue.component('quasar-datetime', Platform.is.desktop && !Platform.within.iframe ? InputDatetimeDesktop : InputDatetimeMobile)
_Vue.component('quasar-drawer', Drawer)
_Vue.component('quasar-drawer-link', DrawerLink)
_Vue.component('quasar-fab', Fab)
Expand Down
11 changes: 11 additions & 0 deletions src/themes/core/visibility.styl
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,17 @@ body
.highlight-and-fade
animation quasar-highlight 2s

@keyframes quasar-rotate
0%
transform rotate(0)
25%
transform rotate(90deg)
50%
transform rotate(180deg)
75%
transform rotate(270deg)
100%
transform rotate(360deg)

for type in desktop mobile cordova ios mat touch no-touch within-iframe
body:not(.{type}) .{type}-only,
Expand Down
14 changes: 0 additions & 14 deletions src/vue-components/collapsible/collapsible.ios.styl
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@
.quasar-collapsible
& + &
&.item-delimiter
border-top 1px solid rgb(224, 224, 224)
&.item-inset-delimiter
&:after
content ''
position absolute
top 0
left 72px
right 0
height 1px
background rgb(224, 224, 224)

.quasar-collapsible-sub-item
padding 8px 8px 8px 18px

Expand Down
14 changes: 0 additions & 14 deletions src/vue-components/collapsible/collapsible.mat.styl
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@
.quasar-collapsible
& + &
&.item-delimiter
border-top 1px solid rgb(224, 224, 224)
&.item-inset-delimiter
&:after
content ''
position absolute
top 0
left 72px
right 0
height 1px
background rgb(224, 224, 224)

.quasar-collapsible-sub-item
padding 8px 8px 8px 18px

Expand Down
4 changes: 2 additions & 2 deletions src/vue-components/context-menu/context-menu-desktop.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Utils from '../../utils'
export default {
props: {
disabled: {
disable: {
type: Boolean,
default: false,
coerce: Boolean
Expand All @@ -32,7 +32,7 @@ export default {
this.target = this.$el.parentNode
this.handler = event => {
if (this.disabled) {
if (this.disable) {
return
}
event.preventDefault()
Expand Down
2 changes: 1 addition & 1 deletion src/vue-components/datetime/mat-inline-datetime.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</div>
<div
v-if="type === 'time' || type === 'datetime'"
class="quasar-datetime-time row gt-md-column justify-center"
class="quasar-datetime-time row gt-md-column items-center justify-center"
>
<div class="quasar-datetime-clockstring">
<span
Expand Down
11 changes: 10 additions & 1 deletion src/vue-components/drawer/drawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,10 @@ export default {
backdrop.style.background = 'rgba(0,0,0,' + percentage * backdropOpacity[theme.current] + ')'
},
setState (state, done) {
if (typeof state === 'boolean' && this.opened === state) {
if (
(!this.swipeOnly && Utils.dom.viewport().width > 600) ||
(typeof state === 'boolean' && this.opened === state)
) {
if (typeof done === 'function') {
done()
}
Expand All @@ -316,6 +319,12 @@ export default {
this.setState(false)
}
}
},
open (done) {
this.setState(true, done)
},
close (done) {
this.setState(false, done)
}
},
ready () {
Expand Down
1 change: 1 addition & 0 deletions src/vue-components/grid/grid.ios.styl
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
tbody
td
display block
height auto !important
text-align left !important
width 100% !important
padding 7px 10px
Expand Down
1 change: 1 addition & 0 deletions src/vue-components/grid/grid.mat.styl
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
tbody
td
display block
height auto !important
text-align left !important
width 100% !important
padding 7px 10px
Expand Down
2 changes: 0 additions & 2 deletions src/vue-components/grid/grid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<quasar-grid-table
v-ref:table
class="quasar-grid"
:title="title"
:data="data | gridShowSelected showOnlySelected selectionMode singleSelection | filterBy searchQuery"
:columns="columns"
:rows-per-page="rowsPerPage"
Expand All @@ -17,7 +16,6 @@
<script>
export default {
props: {
title: String,
columns: {
type: Array,
required: true
Expand Down
4 changes: 2 additions & 2 deletions src/vue-components/knob/knob.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
class="quasar-knob-label row items-center justify-center content-center"
:style="{color: color}"
>
{{{ label || model }}}
{{{ placeholder || model }}}
</div>
</div>
</template>
Expand Down Expand Up @@ -83,7 +83,7 @@ export default {
type: Number,
default: 1
},
label: String
placeholder: String
},
computed: {
svgStyle () {
Expand Down
5 changes: 5 additions & 0 deletions src/vue-components/layout/layout.ios.styl
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ $toolbar-title-font-size ?= 1.2rem
.toolbar
border-top $layout-border

body.desktop
.layout-header, .layout-footer
button:hover i
animation quasar-rotate .25s ease-out

.layout-content
display flex
flex 1 1 auto
Expand Down
5 changes: 5 additions & 0 deletions src/vue-components/layout/layout.mat.styl
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ $toolbar-title-font-size ?= 1.25rem
order 10
box-shadow $layout-footer-shadow

body.desktop
.layout-header, .layout-footer
button:hover i
animation quasar-rotate .25s ease-out

.layout-content
display flex
flex 1 1 auto
Expand Down
12 changes: 12 additions & 0 deletions src/vue-components/pull-to-refresh/pull-to-refresh.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ export default {
refreshIcon: {
type: String,
default: 'refresh'
},
disable: {
type: Boolean,
default: false,
coerce: Boolean
}
},
data () {
Expand All @@ -81,6 +86,13 @@ export default {
if (this.animating) {
return
}
if (this.disable) {
this.scrolling = false
this.pulling = false
this.animating = false
this.state = 'pull'
return
}
if (!this.pulling) {
if (this.state === 'refreshing') {
Expand Down
3 changes: 2 additions & 1 deletion src/vue-components/select/dialog-select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ let mapTypeConfig = {
export default {
props: {
model: {
required: true
required: true,
twoWay: true
},
options: {
type: Array,
Expand Down
Loading

0 comments on commit 64a6385

Please sign in to comment.