forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add autocomplete to timeseries vis. This completes phase 1 of timelio…
…n panels on Kibana dashboards. Closes elastic#13
- Loading branch information
Rashid Khan
committed
Mar 2, 2016
1 parent
8558b3b
commit d6144d9
Showing
10 changed files
with
97 additions
and
75 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
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,13 @@ | ||
.chart { | ||
&-title { | ||
flex: 0; | ||
text-align: center; | ||
font-weight: bold; | ||
font-size: 11px; | ||
} | ||
|
||
&-canvas { | ||
min-width: 100%; | ||
flex: 1; | ||
} | ||
} |
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,38 @@ | ||
@import "~ui/styles/variables.less"; | ||
|
||
.suggestions { | ||
left: 0; | ||
width: 100% !important; | ||
background-color: @body-bg; | ||
color: @text-color; | ||
border: 1px solid @input-border; | ||
border-top: 2px solid @input-border; | ||
border-radius: 0px 0px @border-radius-base @border-radius-base !important; | ||
z-index: 10000; | ||
max-height: 378px; // 5 suggestions | ||
overflow-y: auto; | ||
|
||
.suggestion { | ||
border-bottom: 1px solid @gray-lighter; | ||
padding: 5px 20px; | ||
|
||
&-details { | ||
background-color: @body-bg; | ||
padding: 10px; | ||
border-radius: @border-radius-base; | ||
|
||
> table { | ||
color: @text-color; | ||
margin-bottom: 0px; | ||
} | ||
} | ||
|
||
&:hover { | ||
background-color: @gray-lighter; | ||
} | ||
|
||
&.active { | ||
background-color: @gray-lighter; | ||
} | ||
} | ||
} |
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,11 @@ | ||
<div class="markdown-vis-options form-group"> | ||
<div> | ||
<label>Timelion Expression</label> | ||
<div class="form-group" ng-controller="TimelionVisParamsController"> | ||
<div class="timelion-vis-editor-expression"> | ||
<div> | ||
<label>Timelion Expression</label> | ||
</div> | ||
<textarea | ||
ng-model="vis.params.expression" class="form-control" timelion-expression="{{vis.params.expression}}" | ||
rows="5"></textarea> | ||
</div> | ||
<textarea ng-model="vis.params.expression" class="form-control" rows="20"></textarea> | ||
|
||
</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,12 @@ | ||
define(function (require) { | ||
require('plugins/timelion/directives/expression_directive'); | ||
|
||
var module = require('ui/modules').get('kibana/timelion_vis', ['kibana']); | ||
module.controller('TimelionVisParamsController', function ($scope, $rootScope) { | ||
$scope.vis.params.expression = $scope.vis.params.expression || '.es(*)'; | ||
|
||
$scope.search = function () { | ||
$rootScope.$broadcast('courier:searchRefresh'); | ||
}; | ||
}); | ||
}); |