Skip to content
This repository has been archived by the owner on Apr 13, 2022. It is now read-only.

Releases: Baremetrics/calendar

v1.0.14 – "McClickens"

07 Jan 21:23
Compare
Choose a tag to compare
  • Fixed calendar close clicking issues. It's harder than you might think

v1.0.13 – "😬 edgy"

23 Jul 18:03
Compare
Choose a tag to compare
  • Microsoft Edge compatibility updates

v1.0.12 – "Now you click me"

18 Jan 20:20
Compare
Choose a tag to compare
  • Mostly just a few key PR inclusions.
  • Few small tweaks and minor bug fixes.

v1.0.11 – "Paranoia Activity"

28 Jun 13:59
Compare
Choose a tag to compare
  • Third party library updates
  • Typos and code formatting. Because I'm paranoid

v1.0.10 – "The Fam Jam"

26 Jan 19:16
Compare
Choose a tag to compare
  • Better iOS support. The date inputs are no longer editable. Having a keyboard popup for editing dates was a lot slower then just tapping stuff. So we cut it. Thanks azaytsev-csr!
  • Minor tweaks and outlier bug fixes Thanks Paul Ryan!
  • More consistent moment usage. Cleaned up the code base quite a bit. Thanks Theodore Brown!
  • Fire callback on single calendar when value is deleted

v1.0.9 – "Bdring Bdring"

18 Oct 16:34
Compare
Choose a tag to compare
  • Don't automatically include the "This month" preset in with custom presets (sorry guys)
  • If required is set to false for a date range but you've included a current_date value the input will pre-fill with that date rather then defaulting to the placeholder

v1.0.8 – "All About The Base"

11 Oct 21:01
Compare
Choose a tag to compare
  • Pulled in a couple pull requests to fix some locale issues
  • Couple small bug fixes and performance improvements

v1.0.7 – "The Splits"

06 Jul 22:05
Compare
Choose a tag to compare

Originally the compiled CSS file had both my demo app CSS and the calendar CSS all mashed together. Apparently some folks found that to be annoying. (Hint: It was me) This is no longer the case.

v1.0.6 – "#bling4dayz"

07 Mar 23:42
Compare
Choose a tag to compare

1.0.6 Update

Custom presets!!

  • presets [boolean] or [object]

    • If you don't want to show the preset link just set this to false otherwise the default is true which will just give you a basic preset of.. yep.. presets. BOOM!
    • Otherwise, if you want to customize it up you can include an array of preset objects. Something like:
      presets: [{
        label: 'Last month',
        start: moment().subtract(1, 'month').startOf('month'),
        end: moment().subtract(1, 'month').endOf('month')
      },{
        label: 'Last year',
        start: moment().subtract(12, 'months').startOf('month'),
        end: moment().subtract(1, 'month').endOf('month')
      }]

We also added custom formatting for the placeholder text on the single date picker if the date is not required.

  • placeholder [string]
    • Set placeholder text (note this will only apply if the required key is set to false)

Last but not least we also added support for locale based first day of the week.

v1.0.5 – "Required"

15 Dec 18:19
Compare
Choose a tag to compare

Version 1.0.5 sees two major improvements.

The first is you can now add a required key for the single date picker if you'd like to break the default and generate a picker with a placeholder rather then a pre-dated input.

new Calendar({
  element: $('.daterange--single'),
  current_date: 'June 15, 2015',
  format: {input: 'M/D/YYYY'},
  required: false
});

Note the input format will be the placeholder. Cool huh?

The second is that finally the picker's callback function will only fire if the dates have actually changed. Before the function would fire regardless of what dates were chosen. So dumb. We're smarter now.