| <!-- |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <div |
| style=" |
| border: 1px solid #ddd; |
| border-radius: 4px; |
| box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); |
| margin-top: 10px; |
| margin-bottom: 11px; |
| background-color: #fff; |
| " |
| > |
| <div |
| style=" |
| background-color: #f5f5f5; |
| border-bottom: 1px solid #ddd; |
| border-radius: 3px 3px 0 0; |
| padding: 6px 12px 6px 12px; |
| font-size: 13px; |
| " |
| > |
| <span style="vertical-align: middle; display: inline-block; margin-top: 3px; color: #333">Available Fields</span> |
| <div style="clear: both"></div> |
| <!-- to fix previous span which has float: right --> |
| </div> |
| <!-- panel-body: columns --> |
| <div style="padding: 8px; margin-top: 3px"> |
| <ul style="list-style: none; padding: 0; margin: 0"> |
| <li style="display: inline-block; margin: 2px" ng-repeat="col in tableDataColumns"> |
| <div |
| style=" |
| display: inline-block; |
| font-size: 12px; |
| font-weight: 400; |
| line-height: 1.5; |
| text-align: center; |
| white-space: nowrap; |
| vertical-align: middle; |
| cursor: pointer; |
| border: 1px solid #ccc; |
| border-radius: 3px; |
| padding: 2px 6px; |
| margin-bottom: 0; |
| user-select: none; |
| background-color: #efefef; |
| color: #333; |
| " |
| data-drag="true" |
| data-jqyoui-options="{revert: 'invalid', helper: 'clone'}" |
| ng-model="tableDataColumns" |
| jqyoui-draggable="{index: {{$index}}, placeholder: 'keep'}" |
| onmouseover="this.style.backgroundColor='#e6e6e6'; this.style.borderColor='#adadad';" |
| onmouseout="this.style.backgroundColor='#EFEFEF'; this.style.borderColor='#ccc';" |
| > |
| {{col.name | limitTo: 30}}{{col.name.length > 30 ? '...' : ''}} |
| </div> |
| </li> |
| </ul> |
| </div> |
| |
| <!-- panel-body: axis --> |
| <hr style="margin: 1px 0; border: 0; border-top: 1px solid #eee" /> |
| <div style="padding: 9px 8px 9px 8px"> |
| <div |
| style="width: 25%; float: left; position: relative; min-height: 1px; padding-left: 8px; padding-right: 8px" |
| ng-repeat="prop in props" |
| > |
| <span style="display: block; font-weight: 500"> |
| <span |
| style=" |
| display: inline; |
| padding: 0.2em 0.6em 0.3em; |
| font-size: 75%; |
| font-weight: 300; |
| line-height: 1; |
| color: #fff; |
| text-align: center; |
| white-space: nowrap; |
| vertical-align: baseline; |
| border-radius: 0.25em; |
| margin-left: 1px; |
| font-size: 13px; |
| " |
| ng-style="prop.name === 'xAxis' ? { 'background-color': '#906ebd' } : prop.name === 'yAxis' ? { 'background-color': '#cd5c5c' } : prop.name === 'group' ? { 'background-color': '#5782bd' } : { 'background-color': '#777' }" |
| > |
| {{prop.name}} |
| <a |
| tabindex="0" |
| class="fa fa-info-circle" |
| role="button" |
| ng-if="prop.tooltip" |
| style="color: white; margin-left: 4px; text-decoration: none" |
| tooltip-placement="top" |
| tooltip-append-to-body="true" |
| uib-tooltip="{{prop.tooltip}}" |
| ></a> |
| </span> |
| <ul |
| data-drop="true" |
| ng-model="config[prop.name]" |
| jqyoui-droppable="{onDrop:'save()'}" |
| style=" |
| margin: 0; |
| padding: 0; |
| list-style: none; |
| height: 36px; |
| border: 1px dashed #ddd; |
| border-radius: 6px; |
| margin-top: 7px; |
| overflow: visible !important; |
| background-color: #fafafa; |
| min-height: 36px; |
| " |
| > |
| <li |
| style="margin: 0; padding: 2px; display: flex; align-items: center; padding-left: 8px; height: 100%" |
| ng-if="config[prop.name]" |
| > |
| <div |
| style=" |
| display: inline-block; |
| font-size: 12px; |
| font-weight: 400; |
| line-height: 1.5; |
| text-align: center; |
| white-space: nowrap; |
| vertical-align: middle; |
| cursor: pointer; |
| border: 1px solid #ccc; |
| border-radius: 3px; |
| padding: 2px 6px; |
| margin-bottom: 0; |
| user-select: none; |
| background-color: #efefef; |
| color: #333; |
| " |
| > |
| {{config[prop.name].name}} |
| <span |
| class="fa fa-close" |
| ng-click="remove(prop.name)" |
| style="margin-left: 5px; cursor: pointer; color: #999" |
| onmouseover="this.style.color='#d9534f';" |
| onmouseout="this.style.color='#999';" |
| ></span> |
| </div> |
| </li> |
| </ul> |
| </span> |
| </div> |
| <div style="clear: both"></div> |
| </div> |
| <!-- panel-body --> |
| </div> |
| <!-- panel --> |