Skip to content

Commit 95b4046

Browse files
Merge branch 'master-local' into master-dist
2 parents c048455 + f0173ff commit 95b4046

File tree

65 files changed

+225
-101
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+225
-101
lines changed

dist/angular-patternfly.js

Lines changed: 37 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3339,6 +3339,9 @@ angular.module('patternfly.card').component('pfCard', {
33393339
<pf-card head-title="Cluster Utilization" show-top-border="true" footer="footerConfig" filter="filterConfig" style="width: 50%">
33403340
<pf-trends-chart config="configSingle" chart-data="dataSingle"></pf-trends-chart>
33413341
</pf-card>
3342+
<pf-card head-title="Cluster Utilization" show-top-border="true" footer="footerConfig" filter="filterConfig" style="width: 50%">
3343+
<pf-trends-chart config="configRightLabel" chart-data="dataSingle"></pf-trends-chart>
3344+
</pf-card>
33423345
<label class="label-title">Card with Multiple Trends</label>
33433346
<pf-card head-title="Performance" sub-title="Last 30 Days" show-top-border="false"
33443347
show-titles-separator="false" style="width: 65%" footer="actionBarConfig">
@@ -3358,7 +3361,7 @@ angular.module('patternfly.card').component('pfCard', {
33583361
'callBackFn': function () {
33593362
alert("Footer Callback Fn Called");
33603363
}
3361-
}
3364+
};
33623365

33633366
$scope.filterConfig = {
33643367
'filters' : [{label:'Last 30 Days', value:'30'},
@@ -3368,7 +3371,7 @@ angular.module('patternfly.card').component('pfCard', {
33683371
alert("Filter Callback Fn Called for '" + f.label + "' value = " + f.value);
33693372
},
33703373
'defaultFilter' : '1'
3371-
}
3374+
};
33723375

33733376
var today = new Date();
33743377
var dates = ['dates'];
@@ -3385,6 +3388,16 @@ angular.module('patternfly.card').component('pfCard', {
33853388
'tooltipType' : 'percentage'
33863389
};
33873390

3391+
$scope.configRightLabel = {
3392+
'chartId' : 'exampleRightLabelTrendsChart',
3393+
'title' : 'Storage Capacity',
3394+
'layout' : 'compact',
3395+
'valueType' : 'actual',
3396+
'units' : 'TB',
3397+
'tooltipType' : 'percentage',
3398+
'compactLabelPosition' : 'right'
3399+
};
3400+
33883401
$scope.dataSingle = {
33893402
'total': '250',
33903403
'xData': dates,
@@ -6294,6 +6307,7 @@ angular.module('patternfly.charts').component('pfSparklineChart', {
62946307
* <li>.chartId - the unique id of this trends chart
62956308
* <li>.title - (optional) title of the Trends chart
62966309
* <li>.layout - (optional) the layout and sizes of titles and chart. Values are 'large' (default), 'small', 'compact', and 'inline'
6310+
* <li>.compactLabelPosition - (optional) the trend label positioning when the layout value is 'compact'. Values are 'left' (default) or 'right'
62976311
* <li>.trendLabel - (optional) the trend label used in the 'inline' layout
62986312
* <li>.timeFrame - (optional) the time frame for the data in the pfSparklineChart, ex: 'Last 30 Days'
62996313
* <li>.units - unit label for values, ex: 'MHz','GB', etc..
@@ -6323,7 +6337,7 @@ angular.module('patternfly.charts').component('pfSparklineChart', {
63236337
<div class="col-md-12">
63246338
<div class="row">
63256339
<div class="col-md-4">
6326-
<form role="form"">
6340+
<form role="form">
63276341
<div class="form-group">
63286342
<label>Show</label></br>
63296343
<label class="checkbox-inline">
@@ -6380,15 +6394,28 @@ angular.module('patternfly.charts').component('pfSparklineChart', {
63806394
</div>
63816395
</div>
63826396
<div class="row">
6383-
<div class="col-md-6">
6384-
<form role="form"">
6397+
<div class="col-md-4">
6398+
<form role="form">
63856399
<div class="form-group">
63866400
<label class="checkbox-inline">
63876401
<input type="checkbox" ng-model="data.dataAvailable">Data Available</input>
63886402
</label>
63896403
</div>
63906404
</form>
63916405
</div>
6406+
<div class="col-md-4" ng-if="config.layout === 'compact'">
6407+
<form role="form">
6408+
<div class="form-group">
6409+
<label>Compact Label Position</label></br>
6410+
<label class="radio-inline">
6411+
<input type="radio" ng-model="config.compactLabelPosition" value="left">Left</input>
6412+
</label>
6413+
<label class="radio-inline">
6414+
<input type="radio" ng-model="config.compactLabelPosition" value="right">Right</input>
6415+
</label>
6416+
</div>
6417+
</form>
6418+
</div>
63926419
</div>
63936420
</div>
63946421
</div>
@@ -6404,7 +6431,8 @@ angular.module('patternfly.charts').component('pfSparklineChart', {
64046431
valueType : 'actual',
64056432
timeFrame : 'Last 15 Minutes',
64066433
units : 'MHz',
6407-
tooltipType : 'percentage'
6434+
tooltipType : 'percentage',
6435+
compactLabelPosition : 'left'
64086436
};
64096437

64106438
$scope.footerConfig = {
@@ -6413,7 +6441,7 @@ angular.module('patternfly.charts').component('pfSparklineChart', {
64136441
callBackFn: function () {
64146442
alert("Footer Callback Fn Called");
64156443
}
6416-
}
6444+
};
64176445

64186446
$scope.filterConfig = {
64196447
filters : [{label:'Last 30 Days', value:'30'},
@@ -6422,7 +6450,7 @@ angular.module('patternfly.charts').component('pfSparklineChart', {
64226450
callBackFn: function (f) {
64236451
alert("Filter Callback Fn Called for '" + f.label + "' value = " + f.value);
64246452
}
6425-
}
6453+
};
64266454

64276455
$scope.layouts = [
64286456
{
@@ -17877,7 +17905,7 @@ angular.module('patternfly.wizard').component('pfWizard', {
1787717905

1787817906

1787917907
$templateCache.put('charts/trends/trends-chart.html',
17880-
"<span ng-switch on=$ctrl.config.layout ng-class=\"{'data-unavailable-pf': $ctrl.chartData.dataAvailable === false}\"><div ng-switch-default ng-class=\"{'trend-card-large-pf': $ctrl.showLargeCardLayout,'trend-card-small-pf': $ctrl.showSmallCardLayout}\"><span class=trend-header-pf ng-if=$ctrl.config.title>{{$ctrl.config.title}}</span> <span ng-if=$ctrl.showActualValue><span class=trend-title-big-pf>{{$ctrl.getLatestValue()}}</span> <span class=trend-title-small-pf>{{$ctrl.config.units}}</span></span> <span ng-if=$ctrl.showPercentageValue><span class=trend-title-big-pf>{{$ctrl.getPercentageValue() + '%'}}</span> <span class=trend-title-small-pf>of {{$ctrl.chartData.total + ' ' + $ctrl.config.units}}</span></span><pf-sparkline-chart ng-if=\"$ctrl.chartData.dataAvailable !== false\" config=$ctrl.config chart-data=$ctrl.chartData chart-height=$ctrl.getChartHeight() show-x-axis=$ctrl.showXAxis show-y-axis=$ctrl.showYAxis></pf-sparkline-chart><pf-empty-chart ng-if=\"$ctrl.chartData.dataAvailable === false\" chart-height=$ctrl.getChartHeight()></pf-empty-chart><span class=trend-footer-pf ng-if=$ctrl.config.timeFrame>{{$ctrl.config.timeFrame}}</span></div><div ng-switch-when=compact class=trend-card-compact-pf><div class=\"row trend-row\"><div class=col-sm-2><div class=trend-compact-details><span ng-if=$ctrl.showActualValue><span class=trend-title-compact-big-pf>{{$ctrl.getLatestValue()}}</span> <span class=trend-title-compact-small-pf>{{$ctrl.config.units}}</span></span> <span ng-if=$ctrl.showPercentageValue><span class=trend-title-compact-big-pf>{{$ctrl.getPercentageValue() + '%'}}</span> <span class=trend-title-compact-small-pf>of {{$ctrl.chartData.total + ' ' + $ctrl.config.units}}</span></span> <span class=trend-header-compact-pf ng-if=$ctrl.config.title>{{$ctrl.config.title}}</span></div></div><div class=col-sm-10><pf-sparkline-chart ng-if=\"$ctrl.chartData.dataAvailable !== false\" config=$ctrl.config chart-data=$ctrl.chartData chart-height=$ctrl.getChartHeight() show-x-axis=$ctrl.showXAxis show-y-axis=$ctrl.showYAxis></pf-sparkline-chart><pf-empty-chart ng-if=\"$ctrl.chartData.dataAvailable === false\" chart-height=$ctrl.getChartHeight()></pf-empty-chart></div></div></div><div ng-switch-when=inline class=trend-card-inline-pf><div class=\"row trend-row\"><div class=\"col-sm-8 trend-flat-col\"><pf-sparkline-chart ng-if=\"$ctrl.chartData.dataAvailable !== false\" config=$ctrl.config chart-data=$ctrl.chartData chart-height=$ctrl.getChartHeight() show-x-axis=$ctrl.showXAxis show-y-axis=$ctrl.showYAxis></pf-sparkline-chart><pf-empty-chart ng-if=\"$ctrl.chartData.dataAvailable === false\" chart-height=$ctrl.getChartHeight()></pf-empty-chart></div><div class=\"col-sm-4 trend-flat-col\"><div class=trend-flat-details><div class=trend-flat-details-cell><span class=trend-title-flat-big-pf>{{$ctrl.getPercentageValue() + '%'}}</span></div><div class=trend-flat-details-cell><span class=trend-label-flat-strong-pf>{{$ctrl.config.trendLabel}}</span> <span class=trend-label-flat-pf>{{$ctrl.getLatestValue()}} of {{$ctrl.chartData.total + ' ' + $ctrl.config.units}}</span></div></div></div></div></div></span>"
17908+
"<span ng-switch on=$ctrl.config.layout ng-class=\"{'data-unavailable-pf': $ctrl.chartData.dataAvailable === false}\"><div ng-switch-default ng-class=\"{'trend-card-large-pf': $ctrl.showLargeCardLayout,'trend-card-small-pf': $ctrl.showSmallCardLayout}\"><span class=trend-header-pf ng-if=$ctrl.config.title>{{$ctrl.config.title}}</span> <span ng-if=$ctrl.showActualValue><span class=trend-title-big-pf>{{$ctrl.getLatestValue()}}</span> <span class=trend-title-small-pf>{{$ctrl.config.units}}</span></span> <span ng-if=$ctrl.showPercentageValue><span class=trend-title-big-pf>{{$ctrl.getPercentageValue() + '%'}}</span> <span class=trend-title-small-pf>of {{$ctrl.chartData.total + ' ' + $ctrl.config.units}}</span></span><pf-sparkline-chart ng-if=\"$ctrl.chartData.dataAvailable !== false\" config=$ctrl.config chart-data=$ctrl.chartData chart-height=$ctrl.getChartHeight() show-x-axis=$ctrl.showXAxis show-y-axis=$ctrl.showYAxis></pf-sparkline-chart><pf-empty-chart ng-if=\"$ctrl.chartData.dataAvailable === false\" chart-height=$ctrl.getChartHeight()></pf-empty-chart><span class=trend-footer-pf ng-if=$ctrl.config.timeFrame>{{$ctrl.config.timeFrame}}</span></div><div ng-switch-when=compact class=trend-card-compact-pf><div class=\"row trend-row\"><div class=col-sm-2 ng-class=\"{'col-sm-push-10': $ctrl.config.compactLabelPosition === 'right'}\"><div class=trend-compact-details><span ng-if=$ctrl.showActualValue><span class=trend-title-compact-big-pf>{{$ctrl.getLatestValue()}}</span> <span class=trend-title-compact-small-pf>{{$ctrl.config.units}}</span></span> <span ng-if=$ctrl.showPercentageValue><span class=trend-title-compact-big-pf>{{$ctrl.getPercentageValue() + '%'}}</span> <span class=trend-title-compact-small-pf>of {{$ctrl.chartData.total + ' ' + $ctrl.config.units}}</span></span> <span class=trend-header-compact-pf ng-if=$ctrl.config.title>{{$ctrl.config.title}}</span></div></div><div class=col-sm-10 ng-class=\"{'col-sm-pull-2': $ctrl.config.compactLabelPosition === 'right'}\"><pf-sparkline-chart ng-if=\"$ctrl.chartData.dataAvailable !== false\" config=$ctrl.config chart-data=$ctrl.chartData chart-height=$ctrl.getChartHeight() show-x-axis=$ctrl.showXAxis show-y-axis=$ctrl.showYAxis></pf-sparkline-chart><pf-empty-chart ng-if=\"$ctrl.chartData.dataAvailable === false\" chart-height=$ctrl.getChartHeight()></pf-empty-chart></div></div></div><div ng-switch-when=inline class=trend-card-inline-pf><div class=\"row trend-row\"><div class=\"col-sm-8 trend-flat-col\"><pf-sparkline-chart ng-if=\"$ctrl.chartData.dataAvailable !== false\" config=$ctrl.config chart-data=$ctrl.chartData chart-height=$ctrl.getChartHeight() show-x-axis=$ctrl.showXAxis show-y-axis=$ctrl.showYAxis></pf-sparkline-chart><pf-empty-chart ng-if=\"$ctrl.chartData.dataAvailable === false\" chart-height=$ctrl.getChartHeight()></pf-empty-chart></div><div class=\"col-sm-4 trend-flat-col\"><div class=trend-flat-details><div class=trend-flat-details-cell><span class=trend-title-flat-big-pf>{{$ctrl.getPercentageValue() + '%'}}</span></div><div class=trend-flat-details-cell><span class=trend-label-flat-strong-pf>{{$ctrl.config.trendLabel}}</span> <span class=trend-label-flat-pf>{{$ctrl.getLatestValue()}} of {{$ctrl.chartData.total + ' ' + $ctrl.config.units}}</span></div></div></div></div></div></span>"
1788117909
);
1788217910

1788317911

dist/angular-patternfly.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/docs/css/angular-patternfly.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,10 @@ pf-c3-chart {
131131
.utilization-trend-chart-pf.data-unavailable-pf .current-values {
132132
color: transparent;
133133
}
134-
.trend-card-compact-pf .col-sm-2 {
134+
.trend-card-compact-pf .col-sm-2:not(.col-sm-push-10) {
135135
padding-right: 0;
136136
}
137-
.trend-card-compact-pf .col-sm-10 {
137+
.trend-card-compact-pf .col-sm-10:not(.col-sm-pull-2) {
138138
padding-left: 0;
139139
}
140140
.trend-flat-details {

0 commit comments

Comments
 (0)