Skip to content
This repository has been archived by the owner on May 12, 2018. It is now read-only.

Refactor ( use html templates, ng annotate, and john papa's guidelines ) #82

Closed
wants to merge 16 commits into from
Closed

Conversation

corentin-gautier
Copy link

@corentin-gautier corentin-gautier commented Apr 4, 2016

Hey !

So this is a pretty big refactoring. Feel free to use it or not :) I was trying to reduce the number of scopes in order to boost the perfs but I ended up separating everything in its own file and refactoring the whole thing ^^

There is a very lite performance boost. I will be investigating more in the next few days :)

Codepen demo

DEMO

@corentin-gautier
Copy link
Author

fixes #83 #54

@corentin-gautier
Copy link
Author

Add support for disabled ( mdp-disabled )

@alenaksu
Copy link
Owner

@corentin-gautier
Wow! Thank you for sharing your work. I'll take a look as soon as possible :)

@alenaksu alenaksu added this to the 0.7.3 milestone Apr 13, 2016
@corentin-gautier
Copy link
Author

@alenaksu I just pushed a fix for the min and max date: the field was invalid when the user selected the minDate or the maxDate

@corentin-gautier
Copy link
Author

corentin-gautier commented Apr 18, 2016

Also implemented #86 in the refactor which fixes #85

@flick36
Copy link

flick36 commented Apr 21, 2016

Could you add the option to close it when you select the minutes instead of changing the view? and a steper setup for the clock to have it select for example just every 15 minutes because sometimes you click for instance the 20 and it gives back 19 or 21 it's anoying? 😀

@corentin-gautier
Copy link
Author

corentin-gautier commented Apr 23, 2016

@flick36 Done :)

Edit: this will close #93

@flick36
Copy link

flick36 commented Apr 23, 2016

you are the man @corentin-gautier !!! thank you! just one thing, when you put the input in a dialog it close all the dialogs the picker one and the parent one

@corentin-gautier
Copy link
Author

@flick36 ahah thanks, check out the demo I've just added to the description if you need more infos ;)

@flick36
Copy link

flick36 commented Apr 23, 2016

@corentin-gautier your demo doesn't work :P it won't change to minutes aso i mention earliear in a dialog it closes the parent dialog :P

@corentin-gautier
Copy link
Author

@flick36 hum this is working fine for me ...

animation

Regarding the dialog closing: you should not use nested dialogs. This is more of an issue related to how the picker works ( I thing there's already an issue asking for a non-dialog based picker )

@flick36
Copy link

flick36 commented Apr 23, 2016

Oh i see, you drag the hours and then it works, but if you click on them it closes, i think it's more natural to click than drag:

@corentin-gautier
Copy link
Author

@flick36 ok fixed and demo is up to date

@flick36
Copy link

flick36 commented Apr 23, 2016

@corentin-gautier you are friggin awesome, you should create a bower with yours, and mantain it! Thanks!

@corentin-gautier
Copy link
Author

corentin-gautier commented Apr 23, 2016

Fixes #88 ( see demo )
Fixes #64 I believe ? not happening in the demo anymore ...

@flick36
Copy link

flick36 commented Apr 24, 2016

it's me again .-., amm when you set the model to the date picker with a valid default date, and the field is required, it will fail the required until you click on the datepicker and select a date, also when the min date it's another model when that models get another date it won't update the min date, and could you implement the doble click to close or the auto close on click in the datepicker 😳

@corentin-gautier
Copy link
Author

@flick36 this should be fixed now (it works on the demo, can you confirm it works for you ?)

@flick36
Copy link

flick36 commented Apr 24, 2016

The min date it's not working, try to put 2 date pickers and in one picker put the min date to the model of the other picker, you'll see it works at first, but if you upadate the other model it won't update, also is there a stepper or min and max for the timepicker?

@AnirudhaGohokar
Copy link

This is awesome.. Thanks @corentin-gautier @alenaksu

@alenaksu alenaksu closed this May 9, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants