Releases: cybertoothca/ember-cli-date-textbox
3.1.0
Matching Ember-Cli MAJOR.MINOR
Versioning
Full Changelog: v3.3.0...v3.1.0
1.2.0
- 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
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
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 olddate.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
, andafterParseSuccess
. 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 theinput-date
orinput-iso8601
at that time. For example, you might want to remove or add style classes on success or failure. - now supporting the
endOfDay?
andstartOfDay?
arguments. These do just as they imply, upon parsing the time component will be set accordingly.
Milestone Issues
1.0.2
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
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
{{input-date}}
component available.{{input-iso8601}}
component available.- See README documentation: https://cybertoothca.github.io/ember-cli-date-textbox/
- Checkout the demo: http://ember-cli-date-textbox.cybertooth.io/
1.0.0 ALPHA-7
{{input-date}}
now supports thetimezone
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 extendingember-cli-text-support-mixins
'{{input-text}}
component. Includes support for ESCAPE press clears, CTRL+ENTER submits form, etc.- The
valueFormat
attribute now deprecated. Please usedisplayFormat
instead. You will be warned in the console of the deprecation. - Unit tests improved.
- Demo updated.
- README updated.
1.0.0-alpha.4
- New components created
- Tests
- README happy
- Demo website available: http://ember-cli-date-textbox.cybertooth.io/
- Shoring up the build infrastructure