UNPKG

api-console-assets

Version:

This repo only exists to publish api console components to npm

62 lines (58 loc) 2.09 kB
<!-- @license Copyright 2016 The Advanced REST client authors <arc@mulesoft.com> 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. --> <link rel="import" href="../polymer/polymer.html"> <link rel="import" href="../paper-item/paper-item-behavior.html"> <link rel="import" href="../paper-item/paper-item-shared-styles.html"> <link rel="import" href="headers-list-item-value.html"> <!-- This element is to fix an issue #347 https://github.com/jarrodek/ChromeRestClient/issues/347 When the app is using paper-item as a line for header line it is impossible to copy header line text in one line because it is copied in two lines (HTML behavior). And because of it the user can't properly paste headers into notepad / headers input in the app. This element will imitate paper-item but without using flex layout. --> <dom-module id="headers-list-item"> <template> <style include="paper-item-shared-styles"> :host { min-height: var(--headers-list-item-min-height, 20px); -webkit-user-select: text; word-break: break-word; @apply(--arc-font-code1); @apply(--layout-horizontal); @apply(--headers-list-item); } headers-list-item-value { margin-left: 8px; } </style> <span class="header-name">[[name]]:</span> <headers-list-item-value class="header-value" value="[[value]]"></headers-list-item-value> </template> </dom-module> <script> Polymer({ is: 'headers-list-item', properties: { // Header name to display name: String, // Header value to display value: String }, behaviors: [ Polymer.PaperItemBehavior ] }); </script>