Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
waterdataui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Water Mission Area
Internet of Water
waterdataui
Commits
6bb30647
Commit
6bb30647
authored
2 years ago
by
Briggs, Aaron Shane
Browse files
Options
Downloads
Patches
Plain Diff
added test html
parent
a0994e61
No related branches found
No related tags found
1 merge request
!348
WDFN-743 Replace Time Span Controls with Vue
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
assets/src/scripts/monitoring-location/components/hydrograph/vue-components/time-span-controls.vue
+204
-0
204 additions, 0 deletions
...mponents/hydrograph/vue-components/time-span-controls.vue
with
204 additions
and
0 deletions
assets/src/scripts/monitoring-location/components/hydrograph/vue-components/time-span-controls.vue
+
204
−
0
View file @
6bb30647
<
template
>
<h2>
control here
</h2>
<div
id=
"change-time-span-container_demo"
>
<div
class=
"time-span-input-container"
>
<div
class=
"date-range-container"
>
<span>
Date range:
</span>
<div>
<div
class=
"usa-form-group"
>
<div
id=
"start-date-hint"
class=
"usa-hint"
>
mm/dd/yyyy
</div>
<div
class=
"usa-date-picker usa-date-picker--initialized"
data-min-date=
"1900-01-01"
data-max-date=
"2022-06-14"
data-range-date=
""
data-default-value=
""
>
<input
class=
"usa-input usa-date-picker__internal-input"
type=
"text"
maxlength=
"10"
size=
"10"
aria-label=
"Start date"
aria-describedby=
"start-date-hint"
aria-hidden=
"true"
tabindex=
"-1"
style=
"display: none;"
>
<div
class=
"usa-date-picker__wrapper"
>
<input
id=
"start-date"
class=
"usa-input usa-date-picker__external-input"
type=
"text"
maxlength=
"10"
size=
"10"
name=
"start-date"
aria-label=
"Start date"
aria-describedby=
"start-date-hint"
>
<button
type=
"button"
class=
"usa-date-picker__button"
aria-haspopup=
"true"
aria-label=
"Toggle calendar"
/>
<div
class=
"usa-date-picker__calendar"
role=
"dialog"
aria-modal=
"true"
hidden=
""
/>
<div
class=
"usa-sr-only usa-date-picker__status"
role=
"status"
aria-live=
"polite"
/>
</div>
<div
class=
"usa-date-picker__wrapper"
>
<input
class=
"usa-input usa-date-picker__internal-input usa-date-picker__external-input"
type=
"text"
maxlength=
"10"
size=
"10"
aria-label=
"Start date"
aria-describedby=
"start-date-hint"
aria-hidden=
"true"
tabindex=
"-1"
style=
"display: none;"
>
<button
type=
"button"
class=
"usa-date-picker__button"
aria-haspopup=
"true"
aria-label=
"Toggle calendar"
/>
<div
class=
"usa-date-picker__calendar"
role=
"dialog"
aria-modal=
"true"
hidden=
""
/>
<div
class=
"usa-sr-only usa-date-picker__status"
role=
"status"
aria-live=
"polite"
/>
</div>
</div>
</div>
<div
class=
"usa-form-group"
>
<div
id=
"end-date-hint"
class=
"usa-hint"
>
mm/dd/yyyy
</div>
<div
class=
"usa-date-picker usa-date-picker--initialized"
data-min-date=
"1900-01-01"
data-max-date=
"2022-06-14"
data-range-date=
""
data-default-value=
""
>
<input
class=
"usa-input usa-date-picker__internal-input"
type=
"text"
maxlength=
"10"
size=
"10"
aria-label=
"End date"
aria-describedby=
"end-date-hint"
aria-hidden=
"true"
tabindex=
"-1"
style=
"display: none;"
>
<div
class=
"usa-date-picker__wrapper"
>
<input
id=
"end-date"
class=
"usa-input usa-date-picker__external-input"
type=
"text"
maxlength=
"10"
size=
"10"
name=
"end-date"
aria-label=
"End date"
aria-describedby=
"end-date-hint"
>
<button
type=
"button"
class=
"usa-date-picker__button"
aria-haspopup=
"true"
aria-label=
"Toggle calendar"
/>
<div
class=
"usa-date-picker__calendar"
role=
"dialog"
aria-modal=
"true"
hidden=
""
/>
<div
class=
"usa-sr-only usa-date-picker__status"
role=
"status"
aria-live=
"polite"
/>
</div>
<div
class=
"usa-date-picker__wrapper"
>
<input
class=
"usa-input usa-date-picker__internal-input usa-date-picker__external-input"
type=
"text"
maxlength=
"10"
size=
"10"
aria-label=
"End date"
aria-describedby=
"end-date-hint"
aria-hidden=
"true"
tabindex=
"-1"
style=
"display: none;"
>
<button
type=
"button"
class=
"usa-date-picker__button"
aria-haspopup=
"true"
aria-label=
"Toggle calendar"
/>
<div
class=
"usa-date-picker__calendar"
role=
"dialog"
aria-modal=
"true"
hidden=
""
/>
<div
class=
"usa-sr-only usa-date-picker__status"
role=
"status"
aria-live=
"polite"
/>
</div>
</div>
</div>
</div>
</div>
<div>
Or
</div>
<div
class=
"days-before-today-container"
>
<div
class=
"days-before-container"
>
<label
class=
"usa-label"
for=
"days-before-today"
>
Days before today:
</label><input
id=
"days-before-today"
class=
"usa-input"
name=
"days-before-today"
type=
"text"
maxlength=
"5"
>
</div>
</div>
</div>
<button
class=
"usa-button"
ga-on=
"click"
ga-event-category=
"TimeSeriesGraph"
ga-event-action=
"timeSpanChange"
>
Change time span
</button>
</div>
</
template
>
<
script
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment