32 Commits

Author SHA1 Message Date
leigh-mil
04b9250ea1 Create emitter function for field-change event 2019-11-19 14:49:11 -05:00
leigh-mil
bc0382834b Remove old field-mount and field-change emitters and listeners.
Replace FormMixin with new functionality.
2019-11-19 14:49:11 -05:00
leigh-mil
c94570f83e Update TO form and nested components to emit directly to parent components instead of emitting from the root component 2019-11-14 16:46:35 -05:00
graham-dds
295088524c Tweak date validation logic for months and days
- valid months should be between 1 and 12, inclusive
- days should be between 1 and 31, inclusive
- swap a few lets for consts
2019-11-12 13:00:01 -05:00
leigh-mil
88d6ef32a4 Display error when PoP start date and end date are the same 2019-10-16 19:28:17 -04:00
leigh-mil
07b3c68422 Add min and max range values to date selector so a more accurate error message can be displayed when a date is out of the range 2019-10-08 10:32:02 -04:00
leigh-mil
0c54b61579 Remove watch from date selector component 2019-09-26 16:27:10 -04:00
leigh-mil
2f3863b84d Remove emitters for individual value changes 2019-09-26 16:27:10 -04:00
leigh-mil
1912a9127f Add computed properties for Date object for dates used in functions 2019-09-26 16:27:10 -04:00
leigh-mil
f840bbb941 Use let instead of var 2019-09-26 16:22:16 -04:00
leigh-mil
c03820e53a Emit event on input from date selector so parent element can respond 2019-09-26 16:22:15 -04:00
leigh-mil
ad86dc33fc Show validation icon only if the date is complete 2019-09-26 16:22:15 -04:00
leigh-mil
53cef32af5 Use date-selector component to display errors related to date fields 2019-09-26 16:22:02 -04:00
leigh-mil
e26edcd1bb Add tests for updated functionality in date-selector and formatting 2019-09-26 16:22:02 -04:00
leigh-mil
32583feb99 Validate year based on min and max dates and only show the validation icons when the date has been completely filled in 2019-09-26 16:22:02 -04:00
dandds
112f0e0ab2 Initial JS tests for the Vue TOForm component.
This adds BeautifulSoup to the Python dev dependencies so that we can
render an entire page and then extract the Vue component we need.
Ideally, we should refactor all the Vue components so that they live in
Jinja macros and we can render those macros directly.
2019-09-20 15:24:55 -04:00
graham-dds
17fb264440 Remove inset_form prop from date picker 2019-08-27 16:32:03 -04:00
leigh-mil
99e2c84d3c Add inset_form to options and date picker macros 2019-08-27 13:14:40 -04:00
leigh-mil
e1fbac5a52 Add front end validation that enforces that PoP end is after start 2019-08-01 16:53:32 -04:00
leigh-mil
56bc9dd4e5 update components to emit valid on field-change and use in TO form 2019-06-17 12:45:55 -04:00
leigh-mil
5be4efb9d9 Reimplement SaveButton disabled until input change 2019-06-14 11:11:24 -04:00
leigh-mil
46cd8f3762 Fix tests and formatting 2019-06-10 12:36:57 -04:00
leigh-mil
61d7bc92d8 Update new CLIN fields so they post data properly 2019-06-10 12:29:54 -04:00
Montana
629dd674b9 Refactor emitters 2019-04-19 11:49:41 -04:00
leigh-mil
3f2beb44b2 Refactor emit field change into a utility function 2019-04-06 16:57:12 -04:00
leigh-mil
02cc18a93f Add emiter to all input fields 2019-04-06 16:57:12 -04:00
leigh-mil
ade3f38b5e Update edit user form to use base-form and update date-selector to emit changes 2019-04-06 16:57:12 -04:00
leigh-mil
96b9dbef87 Add render to date-selector so tests will run 2019-03-01 11:02:16 -05:00
leigh-mil
8dd21b49f2 Update format of vue component 2019-03-01 11:02:15 -05:00
George Drummond
76d8820aca
Bug fixes for date picker component 2019-01-30 12:09:34 -05:00
George Drummond
a7aaec3cc2
Take leap years into account 2019-01-28 09:42:15 -05:00
George Drummond
454d7f10df
Add in VUE date picker component 2019-01-25 14:20:43 -05:00