LP1840782 Angular native date select & DateUtil class
authorBill Erickson <berickxx@gmail.com>
Mon, 19 Aug 2019 16:06:40 +0000 (12:06 -0400)
committerBill Erickson <berickxx@gmail.com>
Tue, 20 Aug 2019 14:29:59 +0000 (10:29 -0400)
commit5473cd383d654ec34f675877c9aa113e6673f819
tree20ab57dcb56515cc7de427ca3db0ee74302a5dd0
parent3433d29e2e1f3023c71eef2d59e5b5bf227f2135
LP1840782 Angular native date select & DateUtil class

Migrate <eg-date-select> implemenation from ng-bootstrap to
the browser-native <input type="date"/> element.

Create a DateUtil class to package some common date transforms, etc.

'DOB' handling in FormatService leverages the new DateUtil class for
generating a local date from Y/M/D and does so any time a simple Y/M/D
value is passed, instead of limiting to 'DOB' values.

Sandbox example expanded to demonstrate date clearing and improve
layout.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/core/format.service.ts
Open-ILS/src/eg2/src/app/share/date-select/date-select.component.css
Open-ILS/src/eg2/src/app/share/date-select/date-select.component.html
Open-ILS/src/eg2/src/app/share/date-select/date-select.component.ts
Open-ILS/src/eg2/src/app/share/util/date.spec.ts [new file with mode: 0644]
Open-ILS/src/eg2/src/app/share/util/date.ts [new file with mode: 0644]
Open-ILS/src/eg2/src/app/staff/sandbox/sandbox.component.html
Open-ILS/src/eg2/src/app/staff/sandbox/sandbox.component.ts