Skip to content

Latest commit

 

History

History
232 lines (173 loc) · 9.52 KB

CHANGELOG.md

File metadata and controls

232 lines (173 loc) · 9.52 KB

Master

0.16.5

  • Fix hasBlock deprecation.
  • Dependencies updates.

0.16.4

  • [BUGFIX] Update version of ember-element-helper for better embroider compatibility

0.16.2

  • [ENHANCEMENT] Relax dependency on ember-truth-helpers.

0.16.1

  • [ENHANCEMENT] Bump version of element-closest-polyfill to 0.0.2

0.16.0

0.14.5

  • [BUGFIX] Don't set center to undefined in days component. Users may subclass it and define center as readonly.

0.14.4

  • [ENHANCEMENT] Added support for optional @tag argument to <PowerCalendar />

0.14.3

  • [BUGFIX] Remove deprecation by adding a setter for the locale to power-calendar service.

0.14.2

  • [BUGFIX] Both minDate and maxDate should form part of the range and therefore be selectables.

0.14.1

  • [ENHANCEMENT] The <calendar.Nav> component will display in the data-power-calendar-id the value of calendar.calendarUniqueId if present (it not present, it will display calendar.uniqueId as before)

0.14.0

  • [BREAKING] Update addon to angle-bracket syntax. It requires Ember 3.11 now. The yielded components are now capitalized (e.g. <calendar.Nav>).

0.13.3

  • [CHORE] Allow ember-concurrency 1.0

0.13.2

  • [BUGFIX] Make use of $nav-button-color--focus, which before wasn't really being used as intended. This makes it customizable.

0.13.1

  • [BUGFIX] Fix bug detecting keyword in package.json

0.13.0

  • [ENHANCEMENT] Detect EPC-adapters (like ember-power-calendar-luxon and ember-power-calendar-moment) not using a whitelist, but looking for the keyword ember-power-calendar-adapter in their package.json

0.12.0

  • [ENHANCEMENT] Update ember-concurrency to 0.9 for better octane support

0.11.0

Unsure

0.10.3

  • [ENHANCEMENT] Allow range calendar's actions.select to take an range. It used to only allow a single day from which it constructed a the range. This hasn't change, but now if it receives a range it it will use that range it will use as is.

0.10.2

  • [ENHANCEMENT] Allow pass a @unit and @format to the calendar.Nav component, which used to be hardcoded values ('month' and 'MMMM YYYY' respetively).

0.10.1

  • [ENHANCEMENT] Allow multiple calendar's actions.select to take an array of days. It used to only allow a single day from which it constructed a new list. This hasn't change, but now if it receives a list it it will use that list as the final set of values.

0.10.0

  • [CHORE] Minimum version of ember-power-calendar-luxon has to be 0.1.5 and of ember-power-calendar-moment 0.1.4. Some utility functions have been extracted there.

0.9.7

  • [ENHANCEMENT] {{#cal.days}} yields the array of weeks as third argument.

0.9.6

  • [ENHANCEMENT] Allow {{cal.days}} component to receive a dayClass property that can be either a string or a function that takes (day, calendar, weeks) and returns a string. That string is added as a class to days.

0.9.5

  • [ENHANCEMENT] Add type to public API. Possible values: "single" | "multiple" | "range"
  • [DOCS] Document public API object.
  • [CHORE] Update dependencies, including babel 7

0.9.4

  • [BUFIX] Fix 0.9.3 in versions of ember-cli >= 3.5

0.9.3

  • [BUGFIX] Fix broken dependency check under yarn workspaces.

0.9.2

  • [BUGFIX] Fix testing of ember-power-calendar from within a whormole to the root of the body.

0.9.1

  • [BUGFIX] Prevent infinite loop rendering the days component

0.9.0

  • [BREAKING] Now this addon requires the user to install either ember-power-calendar-moment or ember-power-calendar-luxon to work. However, once installed it should either of those, it should behave the same (obviously you won't ve able to pass moment object if you choose the luxon addon)

0.8.1

  • [BUGFIX] Update minimum version of ember-power-calendar-moment to fix some bugs.

0.8.0

  • [CHORE] 🎉🎉BIG CHANGE🎉🎉 Now the utility functions don't live on this addon but on another addon named ember-power-calendar-moment, that for the time being is a runtime dependency so it shouldn't be breaking. In an upcoming version it will be removed from the runtime dependencies so user will have to explicitly install that other addon.

0.8.0-beta.2

  • [BREAKING] Require the new testing API based on setupTest/setupRenderingTest/setupApplicationTest that comes with ember-qunit 3.2+.

0.8.0-beta.1

  • [BREAKING] This addon no longer depends on ember-moment, only in ember-cli-moment-shim, which means it no longer attempts to read the locale from the service:moment. You can now set the locale (if different from the global moment.js locale) in the service:power-calendar.

  • [HUGE REFACTOR] The addon is pretty decoupled from moment.js, with the plan of allowing using it with luxon.js, or other libraries (maybe without any library!) in the next version. It should not be a breaking change, but since it was a very big refactor, update it with care. Due to this refactor and the drop of ember-moment, the addon is ~28kb (~4.5kb min+gzip) smaller than before.

0.7.3

  • [ENHANCEMENT] Add helpful assertions when a calendar receives an invalid date as center and when the user tries to change the center of a calendar without an onCenterChange action.

0.7.2

  • [FEATURE] Add proximitySelection to power-calendar-range. When true (default is false) the clicking on the calendar after a range has been selected doesn't start a new range, but moves the closest extreme of the current range, expanding or narrowing it.

0.7.1

  • [INTERNAL] Update some testing deps

0.7.0

  • [BREAKING] Require Ember >= 2.10

0.6.1

  • [BUGFIX] Ensure addon-test-support/ folder is not blacklisted in NPM

0.6.0

  • [ENHANCEMENT] Now the calendarCenter and calendarSelect helpers are importable from ember-power-calendar/test-support and can be used in both integration and acceptance tests.
  • [ENHANCEMENT] When the moveCenter action was called with a null/undefined value it could cause problems. Now doing that is perfectly legal and it will center the month in the current date.

0.5.0

  • [ENHANCEMENT] Allow invocation without block. It renders both nav and days.
  • [BUGFIX] Add type="button" to buttons in the nav so they are not implicitly considered type submit, leading to submitting the enclosing form.
  • [INTERNAL] The addon is now jQuery free too.
  • [BREAKING] Allow the ember-power-calendar SASS/LESS mixin to take a lot more variables to customize colors and more. Potentially breaking, but probably not for the big majority.

0.4.0

  • [INTERNAL] Update to Babel 6

0.3.2

  • [BUGFIX] Broken safari styles due to unnecesary flex position on days.

0.3.1

  • [ENHANCEMENT] Added less support.

0.3.0

  • [BREAKING] onSelect and onCenterAction now receive the publicAPI of the component as second argument and the event as third.

0.2.7

  • [ENHANCEMENT] data-ember-power-calendar-id can be bound from the outside

0.2.6

  • [ENHANCEMENT] Added an onInit action that can be passed from the outside, and it called with the public API once.

0.2.5

  • [BREAKING] Renamed service:power-calendar-clock to just service:power-calendar. This service wasn't public, so it's unlikely anyone will be affected.
  • [ENHANCEMENT] Added calendar.uniqueId to the public API. The {{cal.days}} use it to display a data-power-calendar-id attribute that reference the original calendar.
  • [ENHANCEMENT] The calendarCenter and calendarSelect test helpers now also work with tagless calendars, thanks to the enhancement above.

0.2.4

  • [ENHANCEMENT] Add maxLength to the {{cal.days}} component of multiple selects. It determines the max number of day selections the user can make. Once that number is reached no more days can be selected, but those selected can be unselected. Defaults to Infinity so there is no limit by default.

0.2.3

  • [ENHANCEMENT] Allow to disable specific days passing {{cal.days disabledDates=collection}}. As usual the property can be a collection of Dates or Moments.

0.2.2

  • [ENHANCEMENT] Improve default styles of calendar days.

0.2.1

  • [ENHANCEMENT] Make Sass mixin more configurable, by accepting more variables. The basic usage remains the same, this is not breaking.

0.2.1

  • [BREAKING] The component no longer automatically gets a ember-power-calendar--loading when the onCenterChange returns a promise/task. Instead, the publicAPI of the component will have the loading flag set to true, and you can use that to any purpose. This flag might change in future.

0.1.8

  • [BUGFIX] Fix styles in IE11 - @nwhittaker

0.1.7

  • [BUGFIX] Fix calculation of days when the moment global had a different locale than the service:moment.

0.1.6

  • [BUGFIX] Make ember-assign-helper a runtime dependency.

0.1.5

  • [FEATURE] Add maxRange to prevent users from selecting ranges > the given duration.
  • [FEATURE] Add minRange to prevent users from selecting ranges < the given duration.
  • [BUGFIX] If a range has start and end in the same day, that day has both *--range-start and *--range-end classes.
  • [BREAKING] Rename calendar.actions.changeCenter to calendar.actions.moveCenter.
  • [BUGFIX] Clicking on the last selected day selected it twice instead of removing it.

0.1.4

  • [FEATURE] Add weekdayFormat to customize the format of the weekdays. Values: "short" (default), "long" and "min".

0.1.3

  • [FEATURE] Add calendarCenter and calendarSelect test-helpers for acceptnace testing.

0.1.2

  • [FEATURE] Add i18n based in ember-moment.

0.1.1

  • [FEATURE] Add minDate and maxDate to default <calendar.Days/> component to disabled days before/after some specific date.