Skip to content

Commit 1683e4e

Browse files
author
Nathan Reyes
committed
Add popovers for attributes. Various bug and layout fixes. Closes #13.
2 parents ae5faa1 + 38dd0d8 commit 1683e4e

File tree

80 files changed

+2143
-1247
lines changed

Some content is hidden

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

80 files changed

+2143
-1247
lines changed

CHANGELOG.md

Lines changed: 34 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,61 @@
1-
## 0.4.3
1+
# v0.5.0
2+
## Bug Fixes
3+
* Day content more vertically centered with `line-height: 1`
4+
* Strip unused component props
5+
6+
## Improvements
7+
* Support day popovers for attributes (custom slots supported). Closes #13.
8+
* Support `dayPopoverContent` theme style
9+
* Support multiple visibility options for navigation header ('hover', 'focus', 'visible', 'hidden')
10+
* Simplified popover visibility state transitions
11+
* Support `span` (day length) in place of `end` date for date ranges
12+
* Add `targetDate` property to attributes passed in event handlers
13+
* Extract touch handlers to separate state functions
14+
* Require Vue v2.5.0+
15+
16+
# v0.4.3
217
* Fix bug for duplicated weekday label keys. Closes #28.
318

4-
## 0.4.2
19+
# v0.4.2
520
* Convert event names to all lowercase to support in-DOM templates. Closes #26.
621

7-
## 0.4.1
22+
# v0.4.1
823
* Use local nextTick reference, deleting Vue scope dependency.
924
* Fix null attribute bug in date picker.
1025

11-
## 0.4.0
26+
# v0.4.0
1227
* Fix weekday labels not always having same exact width
1328
* Add support for complex attribute dates. Closes #7 and #12.
1429
* Add support for attribute `excludeDates`, date picker `availableDates`. Closes #19.
1530
* Add support for endless date ranges using null for start/end dates. Closes #20.
1631
* Add support for attaching custom data to attributes via `customData` property. Closes #21.
1732
* Add Turkish locale.
1833

19-
## 0.3.3
34+
# v0.3.3
2035
* Fix duplicate input event for inline date picker
2136

22-
## 0.3.2
37+
# v0.3.2
2338
* Fix styling bug introduced by v0.3.1.
2439

25-
## 0.3.1
40+
# v0.3.1
2641
* Fix bug with duplicate events being fired. Closes #15.
2742
* Fix application of styling for date pickers when not inline. Closes #17.
2843

29-
## 0.3.0
44+
# v0.3.0
3045
* Add support for accepting various defaults when calling Vue.use(VCalendar, { ...defaults... })
3146
* Set default calendar pages to best show date picker values
3247
* Fix issue where inline date picker would not respond to is-expanded. Fixes #8.
3348
* Dismiss popovers on navigation month select and date selection. Fixes #9.
3449
* Fix issue where popover content not properly layered. Fixes #10.
3550
* Add locale detection and support user-supplied locales for month/weekday labels. Fixes #11.
3651

37-
## 0.2.2
52+
# v0.2.2
3853
* Fix bug where is-expanded prop not working for calendar component
3954

40-
## 0.2.1
55+
# v0.2.1
4156
* Fix layout bug with navigation panel in Firefox
4257

43-
## 0.2.0
58+
# v0.2.0
4459
* Simplify header title layout
4560
* Add navigation panel popover with indicators
4661
* Add passive event modifiers for touch events
@@ -50,43 +65,43 @@
5065
* Move DateInfo class into separate file
5166
* Fix date logic for range intersections
5267

53-
## 0.1.1
68+
# v0.1.1
5469
* Add documentation for custom theming
5570
* Restructure docs component hierarchy
5671
* Remove lib files from git tracking
5772
* Fix layout bug in calendar pane
5873
* Fix event forwarding for date picker
5974

60-
## 0.1.0
75+
# v0.1.0
6176
* Add navigation pickers in calendar headers
6277

63-
## 0.0.9
78+
# v0.0.9
6479
* Add support for more flexible month/year navigation
6580
* Fix popover visibility bug
6681
* Fix styling bug in date example
6782

68-
## 0.0.8
83+
# v0.0.8
6984
* Add support for installing via CDN
7085
* Add licensing and copyright to README
7186
* Fix vertically centering header title
7287
* Fix styling bug with date picker
7388
* Fix setup instructions
7489

75-
## 0.0.7
90+
# v0.0.7
7691
* Add 'theme-styles' prop to calendar for theming
7792
* Remove a number of '...-style' replaced by theme-styles object
7893
* Renamed 'select-mode' prop to 'mode' for datepicker
7994

80-
## 0.0.6
95+
# v0.0.6
8196
* Fix README
8297

83-
## 0.0.5
98+
# v0.0.5
8499

85100
* Add tap to dismiss popover
86101
* Add tint color (with blending) for easy date picker styling
87102
* Add support for custom title position (left, center, right)
88103

89-
## 0.0.4
104+
# v0.0.4
90105

91106
* Fix lib subfolder not published
92107
* Add license declaration

_todos.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
DONE - Popover infringes on trigger content
2+
DONE - Find solution for popover content styling without overflow = hidden
3+
DONE - Fix header title nav appearance
14
- Add ordinalWeekday and ordinalWeekdayFromEnd props to dayInfo
25

36
CALENDAR

docs/components/app/examples/ExStyling-3.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export default {
7474
bar: {
7575
backgroundColor: '#fafafa',
7676
},
77-
dates: [barDate],
77+
dates: barDate,
7878
},
7979
],
8080
};

docs/components/app/sections/SectionHeader.vue

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
</transition>
2020
</div>
2121
</div>
22-
<div class='hero-foot is-hidden-touch'>
22+
<div class='hero-foot'>
2323
<div class='container'>
2424
<nav class='tabs is-boxed'>
2525
<ul>
26-
<router-link tag='li' to='/' exact><a>Components</a></router-link>
27-
<router-link tag='li' to='/theming'><a>Theming</a></router-link>
26+
<router-link tag='li' to='/' exact><a>Calendar</a></router-link>
27+
<router-link tag='li' to='/datepicker'><a>Date Picker</a></router-link>
2828
<router-link tag='li' to='/gallery'><a>Gallery</a></router-link>
2929
<router-link tag='li' to='/setup'><a>Setup</a></router-link>
3030
</ul>
@@ -61,6 +61,7 @@ export default {
6161
.hero-body
6262
margin-top: 30px
6363
margin-bottom: 30px
64+
min-height: 300px
6465
6566
.tag
6667
margin-top: 10px
@@ -76,7 +77,7 @@ export default {
7677
.c-container-2
7778
position: absolute
7879
left: 70%
79-
margin-top: -170px
80+
margin-top: -160px
8081
margin-left: -150px
8182
border-radius: 5px
8283
z-index: 20
@@ -101,7 +102,7 @@ export default {
101102
.c-container-2
102103
position: relative
103104
left: 0
104-
margin-top: 20px
105+
margin-top: 40px
105106
margin-left: 0
106107
107108
</style>

docs/components/app/sections/SectionNavbar.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
</div>
1818
<div class='navbar-menu' :class='{ "is-active": isMenuActive }'>
1919
<div class='navbar-end'>
20-
<router-link class='navbar-item is-hidden-desktop' to='/' exact><a>Components</a></router-link>
21-
<router-link class='navbar-item is-hidden-desktop' to='/theming'><a>Theming</a></router-link>
20+
<router-link class='navbar-item is-hidden-desktop' to='/' exact><a>Calendar</a></router-link>
21+
<router-link class='navbar-item is-hidden-desktop' to='/datepicker'><a>Date Picker</a></router-link>
2222
<router-link class='navbar-item is-hidden-desktop' to='/gallery'><a>Gallery</a></router-link>
2323
<router-link class='navbar-item is-hidden-desktop' to='/setup'><a>Setup</a></router-link>
2424
<a class='navbar-item' title='Github' href='https://github.com/nathanreyes/v-calendar' target='_blank'>

docs/components/app/tables/TableObject.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<b-table
33
:data='properties'>
4-
<template scope='props'>
4+
<template slot-scope='props'>
55
<b-table-column label='Property'>
66
<span v-html='props.row.propertyName'></span>
77
</b-table-column>

docs/components/app/tables/TableObjects.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<b-table
33
:data='properties'>
4-
<template scope='props'>
4+
<template slot-scope='props'>
55
<b-table-column label='Property'>
66
<span v-html='props.row.propertyName'></span>
77
</b-table-column>

docs/components/app/tables/TableProps.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div>
33
<b-table
44
:data='props'>
5-
<template scope='props'>
5+
<template slot-scope='props'>
66
<b-table-column :style='{minWidth:"280px"}' label='Name'>
77
<span v-html='props.row.name'></span>
88
</b-table-column>

docs/components/home/examples/ExDatePicker.vue renamed to docs/components/date-picker/examples/ExDatePicker.vue

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
:popover-direction='popoverDirection'
1616
:popover-align='popoverAlign'
1717
inputClass='input'
18-
v-model='selectedValue'
19-
is-double-paned>
18+
v-model='selectedValue'>
2019
</v-date-picker>
2120
</template>
2221

@@ -40,15 +39,6 @@ export default {
4039
toPage: null,
4140
selectedValue: new Date(),
4241
disabledDates: { weekdays: [1, 7] },
43-
todayAttribute: {
44-
contentStyle: {
45-
color: '#ffffff',
46-
backgroundColor: '#ff9999',
47-
border: 'solid 1px #ff8080',
48-
fontWeight: 600,
49-
},
50-
dates: [new Date()],
51-
},
5242
};
5343
},
5444
};

docs/components/home/examples/ExDatePickerSlot.vue renamed to docs/components/date-picker/examples/ExDatePickerSlot.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
mode='single'
44
v-model='selectedValue'
55
is-expanded>
6-
<template scope='props'>
6+
<template slot-scope='props'>
77
<b-field :type='inputState.type'>
88
<b-input
99
type='text'

0 commit comments

Comments
 (0)