-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LLCAXCHZF-56/feat: Add more_info button, include moment.js adapter, a…
…nd configure date axis for scatter and bubble charts
- Loading branch information
Showing
9 changed files
with
236 additions
and
4 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
77 changes: 77 additions & 0 deletions
77
ckanext/charts/templates/scheming/form_snippets/chart_more_info_button.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
<div class="form-group control-full control-large"> | ||
<div class="controls"> | ||
<button class="btn btn-primary" type="button" data-bs-toggle="modal" data-bs-target="#moreInfoModal"> | ||
More info | ||
</button> | ||
</div> | ||
</div> | ||
|
||
|
||
<div class="modal fade" id="moreInfoModal" tabindex="-1" role="dialog" aria-labelledby="moreInfoModalLabel" aria-hidden="true"> | ||
<div class="modal-dialog" role="document"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<h5 class="modal-title" id="moreInfoModalLabel">Supported Date Formats</h5> | ||
<button type="button" class="btn-close close" data-bs-dismiss="modal" aria-label="Close"> | ||
</button> | ||
</div> | ||
<div class="modal-body"> | ||
<div class="date-formats-container"> | ||
<div class="date-formats-container__row"> | ||
<div class="date-formats-container__column"> | ||
<p class="date-formats-text"><strong>Timestamp Format</strong></p> | ||
<ul class="date-formats-list"> | ||
<li class="date-formats-item">YYYY-MM-DD</li> | ||
<li class="date-formats-item">YYYY/MM/DD</li> | ||
<li class="date-formats-item">MM-DD-YYYY</li> | ||
<li class="date-formats-item">MM/DD/YYYY</li> | ||
<li class="date-formats-item">DD-MM-YYYY</li> | ||
<li class="date-formats-item">DD/MM/YYYY</li> | ||
<li class="date-formats-item">dd/MMM/yyyy</li> | ||
<li class="date-formats-item">YYYYMMDD</li> | ||
<li class="date-formats-item">YYYY-MM-DDTHH:MM:SS</li> | ||
<li class="date-formats-item">YYYY-MM-DD HH:mm:ss</li> | ||
<li class="date-formats-item">YYYY-MM-DDTHH:mm:ssZ</li> | ||
<li class="date-formats-item">YYYY-MM-DD HH:mm:ss.SSS</li> | ||
<li class="date-formats-item">MM/dd/yyyy hh:mm:ss a</li> | ||
<li class="date-formats-item">MM/dd/yyyy hh:mm:ss a:SSS</li> | ||
<li class="date-formats-item">MMdd_HH:mm:ss.SSS</li> | ||
<li class="date-formats-item">dd MMM yyyy HH:mm:ss*SSS</li> | ||
<li class="date-formats-item">dd MMM yyyy HH:mm:ss</li> | ||
<li class="date-formats-item">yyMMdd HH:mm:ss</li> | ||
<li class="date-formats-item">yy-MM-dd HH:mm:ss</li> | ||
</ul> | ||
</div> | ||
<div class="date-formats-container__column"> | ||
<p class="date-formats-text"><strong>Example</strong></p> | ||
<ul class="date-formats-list"> | ||
<li class="date-formats-item">2023-07-24</li> | ||
<li class="date-formats-item">2023/07/24</li> | ||
<li class="date-formats-item">07-24-2023</li> | ||
<li class="date-formats-item">07/24/2023</li> | ||
<li class="date-formats-item">24-07-2023</li> | ||
<li class="date-formats-item">24/07/2023</li> | ||
<li class="date-formats-item">25/Nov/2023</li> | ||
<li class="date-formats-item">20231125</li> | ||
<li class="date-formats-item">2023-07-24T14:30:00</li> | ||
<li class="date-formats-item">2023-11-25 12:34:56</li> | ||
<li class="date-formats-item">2023-11-25T12:34:56Z</li> | ||
<li class="date-formats-item">2023-11-25 12:34:56.789</li> | ||
<li class="date-formats-item">9/28/2023 2:23:15 PM</li> | ||
<li class="date-formats-item">8/5/2023 3:31:18 AM:234</li> | ||
<li class="date-formats-item">0423_11:42:35.883</li> | ||
<li class="date-formats-item">23 Apr 2023 10:32:35*311</li> | ||
<li class="date-formats-item">23 Apr 2023 11:42:35</li> | ||
<li class="date-formats-item">220423 11:42:35</li> | ||
<li class="date-formats-item">23-04-19 12:00:17</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="modal-footer"> | ||
<button type="button" class="btn btn-primary" data-bs-dismiss="modal">Close</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
.date-formats-container { | ||
|
||
&__row { | ||
display: flex; | ||
justify-content: space-between; | ||
} | ||
|
||
&__column { | ||
flex: 1; | ||
margin-right: 20px; | ||
|
||
&:last-child { | ||
margin-right: 0; | ||
} | ||
} | ||
} | ||
|
||
.date-formats-text { | ||
font-size: 1.2em; | ||
color: #333; | ||
} | ||
|
||
.date-formats-list { | ||
list-style-type: none; | ||
padding-left: 0; | ||
} | ||
|
||
.date-formats-item { | ||
margin: 5px 0; | ||
font-size: 1em; | ||
color: #555; | ||
} |