-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1191 from cmu-delphi/release/v3.2.3
Release v3.2.3
- Loading branch information
Showing
31 changed files
with
15,382 additions
and
14,327 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<script> | ||
import { formatDateYearDayOfWeekAbbr } from '../formats'; | ||
import { getLevelInfo } from '../stores'; | ||
/** | ||
* @type {import("../data/sensor").Sensor} | ||
*/ | ||
export let sensor; | ||
/** | ||
* @type {Date} | ||
*/ | ||
export let date; | ||
/** | ||
* @type {import("../data/regions").RegionLevel} | ||
*/ | ||
export let level; | ||
/** | ||
* @type {import("../data/trend").SensorTrend } | ||
*/ | ||
export let trend; | ||
/** | ||
* two way binding | ||
*/ | ||
export let suffix = ''; | ||
export let prefix = '*'; | ||
$: showWarning = trend.then((d) => { | ||
if ( | ||
(d != null && (d.value == null || (d.date != null && d.date < date))) || | ||
(d.date_value != null && d.date_value < date) | ||
) { | ||
suffix = '*'; | ||
return d; | ||
} | ||
suffix = ''; | ||
return null; | ||
}); | ||
</script> | ||
|
||
{#await showWarning then d} | ||
{#if d != null} | ||
<p> | ||
{prefix} The indicator "{sensor.name}" is not available for {formatDateYearDayOfWeekAbbr(date)} at the geographic level | ||
"{getLevelInfo(level).label}", yet. The data from {formatDateYearDayOfWeekAbbr(d.date ?? d.date_value)} is displayed | ||
instead. | ||
</p> | ||
{/if} | ||
{/await} |
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
Oops, something went wrong.