-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flatpickr wrapper #178
Merged
Merged
Flatpickr wrapper #178
Changes from 6 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
d4b73e0
[wip] Flatpickr wrapper
asvae 3d1359c
Datepicker styling
asvae 816a788
Add vue-flatpickr instead of vanilla one
asvae fe3c4b3
Datepicker styles
asvae a8be3c9
Datepicker presentation and styling fixes
asvae 10024a4
Fix styling for week numbers
asvae 6f917ef
Date picker fixes
asvae 687c6b3
Final fixes
asvae File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
<template> | ||
<div class="sets-list row"> | ||
<div class="col-md-12"> | ||
<div class="row"> | ||
<div class="col-lg-4"> | ||
<vuestic-widget :headerText="$t('dateTimePicker.basic')"> | ||
<div class="form-group"> | ||
<div class="input-group"> | ||
<vuestic-date-picker | ||
id="date-picker-basic" | ||
v-model="simple" | ||
/> | ||
<label class="control-label" for="date-picker-basic">{{ $t('dateTimePicker.basic') }}</label> | ||
<i class="bar"></i> | ||
</div> | ||
</div> | ||
</vuestic-widget> | ||
</div> | ||
<div class="col-lg-4"> | ||
<vuestic-widget :headerText="$t('dateTimePicker.time')"> | ||
<div class="form-group"> | ||
<div class="input-group"> | ||
<vuestic-date-picker | ||
id="date-picker-time" | ||
:config="{enableTime: true}" | ||
v-model="time" | ||
/> | ||
<label class="control-label" for="date-picker-time">{{ $t('dateTimePicker.time') }}</label> | ||
<i class="bar"></i> | ||
</div> | ||
</div> | ||
</vuestic-widget> | ||
</div> | ||
<div class="col-lg-4"> | ||
<vuestic-widget :headerText="$t('dateTimePicker.range')"> | ||
<div class="form-group"> | ||
<div class="input-group"> | ||
<vuestic-date-picker | ||
id="date-picker-range" | ||
:config="{mode: 'range'}" | ||
v-model="range" | ||
/> | ||
<label class="control-label" for="date-picker-range">{{ $t('dateTimePicker.range') }}</label> | ||
<i class="bar"></i> | ||
</div> | ||
</div> | ||
</vuestic-widget> | ||
</div> | ||
<div class="col-lg-4"> | ||
<vuestic-widget :headerText="$t('dateTimePicker.multiple')"> | ||
<div class="form-group"> | ||
<div class="input-group"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
<vuestic-date-picker | ||
id="date-picker-multiple" | ||
:config="{mode: 'multiple'}" | ||
v-model="multiple" | ||
/> | ||
<label class="control-label" for="date-picker-multiple">{{ $t('dateTimePicker.multiple') }}</label> | ||
<i class="bar"></i> | ||
</div> | ||
</div> | ||
</vuestic-widget> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import VuesticWidget | ||
from '../../../vuestic-theme/vuestic-components/vuestic-widget/VuesticWidget.vue' | ||
import VuesticDatePicker from '../../../vuestic-theme/vuestic-components/vuestick-date-picker/VuesticDatePicker.vue' | ||
|
||
export default { | ||
name: 'date-time-pickers', | ||
data () { | ||
return { | ||
simple: '2018-06-12', | ||
time: '2018-04-26 12:20', | ||
range: '2018-04-10 to 2018-04-18', | ||
multiple: '2018-04-25, 2018-04-27', | ||
} | ||
}, | ||
components: { | ||
VuesticDatePicker, | ||
VuesticWidget | ||
}, | ||
} | ||
</script> | ||
|
||
<style lang="scss"> | ||
|
||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,4 +69,3 @@ | |
<style lang="scss"> | ||
|
||
</style> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
src/vuestic-theme/vuestic-components/vuestick-date-picker/VuesticDatePicker.demo.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<template> | ||
<div | ||
style="left: 420px; top: 180px; background-color: white; position: absolute" | ||
> | ||
<div class="form-group"> | ||
<div class="input-group"> | ||
<vuestic-date-picker | ||
id="simple-input" | ||
v-model="one" | ||
/> | ||
<label class="control-label" for="simple-input">Simple</label> | ||
<i class="bar"></i> | ||
</div> | ||
<div class="input-group"> | ||
<vuestic-date-picker | ||
id="simple-input-2" | ||
v-model="two" | ||
:config="{mode: 'range'}" | ||
/> | ||
<label class="control-label" for="simple-input-2">Range</label> | ||
<i class="bar"></i> | ||
</div> | ||
<div class="input-group"> | ||
<vuestic-date-picker | ||
id="simple-input-3" | ||
v-model="three" | ||
:config="{enableTime: true}" | ||
/> | ||
<label class="control-label" for="simple-input-3">Day time</label> | ||
<i class="bar"></i> | ||
</div> | ||
<div class="input-group"> | ||
<vuestic-date-picker | ||
id="simple-input-4" | ||
v-model="three" | ||
:config="{enableTime: true}" | ||
@on-change="doSomethingOnChange" | ||
/> | ||
<label class="control-label" for="simple-input-4">Day time</label> | ||
<i class="bar"></i> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import VuesticDatePicker from './VuesticDatePicker.vue' | ||
|
||
export default { | ||
components: { VuesticDatePicker }, | ||
data () { | ||
return { | ||
one: null, | ||
two: null, | ||
three: null, | ||
} | ||
}, | ||
methods: { | ||
doSomethingOnChange (input) { | ||
console.log('input', input) | ||
}, | ||
}, | ||
} | ||
</script> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move datepickers to a separate widget on Forms Elements page in a separate widget below 'Inputs widget'