Commit graph

194 commits

Author SHA1 Message Date
Sergio Crisostomo
732b32e451 correct wrong spread syntax 2018-02-05 08:44:31 +01:00
Sergio Crisostomo
6017ed7509 update scroll when panel opens 2018-02-05 07:50:23 +01:00
Sergio Crisostomo
8878e4a351 Remove validator function (because:)
We have too many use cases and we cannot access props inside validator
function, so we cannot do proper checking anyway
2018-02-02 14:35:55 +01:00
Sergio Crisostomo
4a1734b77e fix time and time-range parsers 2018-02-02 14:26:44 +01:00
Sergio Crisostomo
a1c88ebaf8 Correct showWeekNumbers cells logic 2018-02-02 11:51:30 +01:00
Sergio Crisostomo
88d24200e8 Fix date toggle in "multiple mode" 2018-02-02 11:36:11 +01:00
Sergio Crisostomo
abb0cc87cf Correct arrows showing in split panels labels 2018-02-02 11:27:53 +01:00
Sergio Crisostomo
b990d2f413 move logic to inside the correct if clause 2018-02-02 11:21:37 +01:00
Sergio Crisostomo
34867ff9a9 normalise empty initial values 2018-02-02 11:21:12 +01:00
Sergio Crisostomo
8d5323069b update panel date on every value change 2018-02-02 10:58:09 +01:00
Sergio Crisostomo
5092777d17 Fix sort of date arrays 2018-01-31 13:30:01 +01:00
Sergio Crisostomo
73a34dfab5 Fix year/month pre-selection 2018-01-31 12:14:11 +01:00
Sergio Crisostomo
8c16b30149 return empty strings for invalid dates instead of null 2018-01-24 15:07:09 +01:00
Sergio Crisostomo
72f225e938 Fix date manual input so it falls back to old value when parser don't parse the input 2018-01-24 14:54:03 +01:00
Sergio Crisostomo
22ff9a62f2 fix showSeconds flag logic 2018-01-24 13:34:02 +01:00
Sergio Crisostomo
46726afdf4 Fix panels reset on blur and 2018-01-24 13:33:48 +01:00
Sergio Crisostomo
bcf09be744 fix handlePick and remove console.log
removed if/else related to b52e02e436
2018-01-24 11:34:50 +01:00
Sergio Crisostomo
71b68751f8 Fix date/time panel toggle 2018-01-24 11:19:43 +01:00
Sergio Crisostomo
283b90aa38 Fix daterange manual date insertion 2018-01-24 11:15:20 +01:00
Sergio Crisostomo
b5ca23f5ef Use same API for on-change, but add Date object(s) also 2018-01-24 11:01:25 +01:00
Sergio Crisostomo
c2b7fed05f Reset panel selectionMode and positioning on blur 2018-01-24 10:55:42 +01:00
Sergio Crisostomo
15457562ea Reset panel date when dates are null 2018-01-24 10:24:54 +01:00
Sergio Crisostomo
b52e02e436 Fix month|year preselection/shortcut when picking a date 2018-01-24 09:46:07 +01:00
Sergio Crisostomo
5426dcf989 fix specs, fix merge conflicts and cleanup 2018-01-22 14:23:05 +01:00
Sergio Crisostomo
d9ff845f63 Emit input event in mounted if parsed value diffs 2018-01-22 14:21:42 +01:00
Sergio Crisostomo
2fb29faeb1 export utilities and fix multiple dates bugs 2018-01-22 14:21:42 +01:00
Sergio Crisostomo
4863a75d92 Correct logic when manually inputing disabledDates 2018-01-22 14:21:42 +01:00
Sergio Crisostomo
77e43f2b87 Correct year date navigation logic 2018-01-22 14:21:42 +01:00
Sergio Crisostomo
8f6aeda4be Fix parser and formater 2018-01-22 14:21:42 +01:00
Sergio Crisostomo
4ec8bc8af8 Fix month picker value 2018-01-22 14:21:42 +01:00
Sergio Crisostomo
e55ba7a249 Add week numbers 2018-01-22 14:21:42 +01:00
Sergio Crisostomo
435bf7814a add split panel props 2018-01-22 14:20:20 +01:00
Sergio Crisostomo
63bd0f7d3f Add start-date prop to force placing of date picker in date 2018-01-22 14:20:20 +01:00
Sergio Crisostomo
d07b4f3301 fix logic for multiple picker 2018-01-22 14:20:20 +01:00
Sergio Crisostomo
95eae081bc refactor Datepicker
refactor Datepicker  to render subcomponents in template instead of
creating new Vue instances
2018-01-22 14:20:20 +01:00
Sergio Crisostomo
0b51803bce Add functions to utils.js 2018-01-22 14:20:20 +01:00
Sergio Crisostomo
ca8e830cc3 move files to subfolders 2018-01-22 14:20:20 +01:00
Sergio Crisostomo
c4e3fe331f move date-range.vue to subfolder 2018-01-22 14:20:20 +01:00
Sergio Crisostomo
e32b86e97f move date.vue to subfolder 2018-01-22 14:20:20 +01:00
Graham Fairweather
e6029f1d5d Fix: Missing steps attribute in time range. 2017-12-06 13:28:34 +01:00
梁灏
9d1add4d59 update Date example 2017-11-09 14:38:26 +08:00
Aresn
2df70ebdfb
Merge pull request #2356 from SergioCrisostomo/fix-2122
Patch Chromium bug
2017-11-09 00:37:27 -06:00
Aresn
4ab1ac531e
Merge pull request #2358 from SergioCrisostomo/ie-fix-2330
Don't use includes to make IE happy and avoid Polyfill
2017-11-08 19:17:32 -06:00
梁灏
22c27b7962 fixed #2215 2017-11-08 20:44:35 +08:00
Sergio Crisostomo
236e0bfd99 DOn't use includes to make IE happy and avoid Polyfill 2017-11-08 10:14:08 +01:00
Sergio Crisostomo
40aa935508 patch chromium bug 2017-11-08 09:54:14 +01:00
Sergio Crisostomo
65255c9637 fix date formatting when strings are supplied to DatePicker 2017-10-23 15:53:12 +02:00
Sergio Crisostomo
3ed12b4e43 Correct month calculation and add specs for date-picker labels 2017-10-23 11:13:06 +02:00
Aresn
f672ae027c Merge pull request #2097 from SergioCrisostomo/use-locale-formated-year-month
use date.toLocaleDateString to format year/month
2017-10-22 20:29:51 -05:00
Sergio Crisostomo
5d1c24c7f4 correct behaviour when initialising date-picker with a empty string 2017-10-17 15:13:42 +02:00