Skip to content

Releases: cybertoothca/ember-cli-date-textbox

3.1.0

16 Apr 05:32
2304ea8
Compare
Choose a tag to compare

Matching Ember-Cli MAJOR.MINOR Versioning

Full Changelog: v3.3.0...v3.1.0

1.2.0

07 Nov 05:00
fde7059
Compare
Choose a tag to compare
  • Small behaviour change: when failed parsing the text input is not cleared. The bad parsed text remains in the textbox.
  • Upgraded to Ember-Cli-2.18.2 long term support version.
  • Code maintainability improvements

See issues: https://github.com/cybertoothca/ember-cli-date-textbox/milestone/3?closed=1

1.2.0 Release Candidate #1

07 Nov 05:01
defcc37
Compare
Choose a tag to compare
Pre-release

Needed to test that the ember-cli-text-support-mixins version was restricted to 1.2.x.

Issues for this version can be found here: https://github.com/cybertoothca/ember-cli-date-textbox/milestone/3

1.1.0

23 Oct 17:36
Compare
Choose a tag to compare

Upgrade From 1.0.x:

Upgrade will be relatively smooth. I'd suggest making sure your bower.json is purged of any moment, moment-timezone, and datejs-parse-plus libraries. These are no longer imported through bower. If you're somehow using the Date#parsePlus(...) function I created...understand it is gone. See the sugar.js parsing documentation instead OR continue to import the datejs-parse-plus library via bower...the choice is yours.

I also suggest that if you were using moment as a global variable...now change all those usages to actually import moment from 'moment'. This can be done with a pretty simply find on your project.

Sorry for the changes...but it's better in the long run.

Library Overhaul:

  • now using ember-moment add-on rather than pulling momentjs in through bower.
  • now using sugar.js to parse dates in the past and the future. A few parsing options have been lost with this shift from the old date.js library; e.g. '+30 minutes' is now 'in 30 minutes'. A small trade-off for modernizing the parse library and abandoning the forked date.js.

New Features:

  • now supporting actions for beforeParse, afterParseFail, and afterParseSuccess. Passing actions to these arguments will be triggered at the appropriate time of the parse routine. Your supplied action should expect the component as it's only argument. You can access all properties of the input-date or input-iso8601 at that time. For example, you might want to remove or add style classes on success or failure.
  • now supporting the endOfDay? and startOfDay? arguments. These do just as they imply, upon parsing the time component will be set accordingly.

Milestone Issues

Check out the issues here.

1.0.2

19 Mar 21:59
Compare
Choose a tag to compare

Upgrade to package.json to include the latest version of ember-cli-text-support-mixins. The Enter & Ctrl+Enter submitting form has been known to double-submit if the form has a button of type="submit" contained within. Chrome & Safari will not suffer this double submit, however Firefox does continue to suffer double-submits.

Workaround

Do not include a button of type="submit" inside your form if you desire that the {{input-date}} and {{input-iso8601}} components to submit the form on Ctrl+Enter.

<form ...>
  {{input-date ...}}
  <button type="submit">Submit</button>
</form>

...should instead be changed to:

<form ...>
  {{input-date ...}}
  <button type="action" {{action "submitTheFormUsingAnAction"}}>Submit</button>
</form>

1.0.1

14 Mar 00:04
Compare
Choose a tag to compare

ERMAHGERD.

Apologies. The blueprint that was attempting to load dependencies was broken and is now working as intended. That's a pain in the butt to test & I forgot.

Install with (all this is in the README):

ember install ember-cli-date-textbox

It should go through and install:

  • ember-cli-text-support-mixins (another Ember addon)
  • datejs-parse-plus (bower dependency)
  • moment (bower dependency)
  • moment-timezone (bower dependency)

1.0.0

13 Mar 05:46
Compare
Choose a tag to compare

1.0.0 ALPHA-7

11 Mar 20:46
Compare
Choose a tag to compare
1.0.0 ALPHA-7 Pre-release
Pre-release
  • {{input-date}} now supports the timezone property. If not specified the client's timezone is guessed. Check out the demo: http://ember-cli-date-textbox.cybertooth.io/
  • {{input-date}} and {{input-iso8601}} are now both extending ember-cli-text-support-mixins' {{input-text}} component. Includes support for ESCAPE press clears, CTRL+ENTER submits form, etc.
  • The valueFormat attribute now deprecated. Please use displayFormat instead. You will be warned in the console of the deprecation.
  • Unit tests improved.
  • Demo updated.
  • README updated.

1.0.0-alpha.4

26 Feb 03:52
Compare
Choose a tag to compare
1.0.0-alpha.4 Pre-release
Pre-release