-
Notifications
You must be signed in to change notification settings - Fork 31
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 #315 from maestrano/release/1.4.10
Release - v1.4.10
- Loading branch information
Showing
47 changed files
with
677 additions
and
330 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "impac-angular", | ||
"version": "1.4.9", | ||
"version": "1.4.10", | ||
"author": { | ||
"name": "Xaun Lopez", | ||
"email": "[email protected]" | ||
|
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
18 changes: 18 additions & 0 deletions
18
src/components/widgets-common/currency-conversions/currency-conversions.directive.coffee
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,18 @@ | ||
module = angular.module('impac.components.widgets-common.currency-conversions',[]) | ||
module.directive('commonCurrencyConversions', ($templateCache, ImpacAssets) -> | ||
return { | ||
restrict: 'A' | ||
scope: { | ||
fxAmounts: '=' | ||
baseCurrency: '=' | ||
ratesDate: '=' | ||
} | ||
template: $templateCache.get('widgets-common/currency-conversions.tmpl.html') | ||
|
||
link: (scope, element) -> | ||
scope.currencyConversionsIcon = ImpacAssets.get('currencyConversionsIcon') | ||
scope.popoverTemplateUrl = $templateCache.get('widgets-common/details-popover.html') | ||
scope.popoverTitle = "Currency Conversions Info" | ||
scope.formattedRatesDate = moment(scope.ratesDate).format('MMMM Do YYYY') | ||
} | ||
) |
11 changes: 11 additions & 0 deletions
11
src/components/widgets-common/currency-conversions/currency-conversions.less
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,11 @@ | ||
.currency-conversions { | ||
img { | ||
width: 15px; | ||
cursor: pointer; | ||
} | ||
|
||
&.popover .popover-title { | ||
background-color: black; | ||
color: white; | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
src/components/widgets-common/currency-conversions/currency-conversions.tmpl.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,23 @@ | ||
<span class="currency-conversions" ng-if="fxAmounts"> | ||
<img ng-src="{{currencyConversionsIcon}}" popover-template="'details-popover.tmpl.html'" popover-class="currency-conversions" popover-title="{{popoverTitle}}" popover-trigger="mouseenter" popover-append-to-body="true" /> | ||
</span> | ||
|
||
<!-- ui.bootstrap popover template --> | ||
<script type="text/ng-template" id="details-popover.tmpl.html"> | ||
<p ng-if="fxAmounts.length > 1">This value includes amounts that have been converted to {{ baseCurrency }} from different currencies:</p> | ||
<p ng-if="fxAmounts.length == 1">This value includes one amount that has been converted to {{ baseCurrency }} from a different currency:</p> | ||
|
||
<table class="table"> | ||
<tr> | ||
<th>Original amount</th> | ||
<th>Rate</th> | ||
</tr> | ||
<tr ng-repeat="fx in fxAmounts"> | ||
<td>{{ fx.amount | mnoCurrency : fx.currency }}</td> | ||
<td>{{ fx.rate }}</td> | ||
</tr> | ||
</table> | ||
|
||
<p ng-if="fxAmounts.length > 1">The rates used correspond to those for {{ formattedRatesDate }}.</p> | ||
<p ng-if="fxAmounts.length == 1">The rate used corresponds to the rate for {{ formattedRatesDate }}.</p> | ||
</script> |
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
4 changes: 2 additions & 2 deletions
4
src/components/widgets-settings/param-selector/param-selector.tmpl.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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<span class="settings param-selector"> | ||
<a ng-click="toggleShowOptions()">{{selected.label | titleize | truncate : getTruncateValue() : "..." : false}} <i class="fa fa-chevron-down" /></a> | ||
<div class="options-container" collapse="!showOptions"> | ||
<div ng-repeat="option in options" ng-click="selectOption(option)"> | ||
<div ng-repeat="option in options" ng-click="selectOption(option)" class="param-selector-label"> | ||
{{option.label | titleize}} | ||
</div> | ||
</div> | ||
</span> | ||
</span> |
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.