| OLD | NEW |
| 1 <link rel="import" href="../../../../packages/polymer/polymer.html"> | 1 <link rel="import" href="../../../../packages/polymer/polymer.html"> |
| 2 <link rel="import" href="instance_ref.html"> | 2 <link rel="import" href="instance_ref.html"> |
| 3 <link rel="import" href="error_ref.html"> | 3 <link rel="import" href="error_ref.html"> |
| 4 <link rel="import" href="observatory_element.html"> | 4 <link rel="import" href="observatory_element.html"> |
| 5 | 5 |
| 6 <polymer-element name="eval-box" extends="observatory-element"> | 6 <polymer-element name="eval-box" extends="observatory-element"> |
| 7 <template> | 7 <template> |
| 8 <style> | 8 <style> |
| 9 .textbox { | 9 .textbox { |
| 10 flex-grow: 1; | 10 flex-grow: 1; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 cursor: pointer; | 35 cursor: pointer; |
| 36 white-space: pre-line; | 36 white-space: pre-line; |
| 37 } | 37 } |
| 38 .historyExpr a:hover { | 38 .historyExpr a:hover { |
| 39 background-color: #fff3e3; | 39 background-color: #fff3e3; |
| 40 } | 40 } |
| 41 .historyValue { | 41 .historyValue { |
| 42 display: block; | 42 display: block; |
| 43 padding: 6px 6px; | 43 padding: 6px 6px; |
| 44 } | 44 } |
| 45 a.boxclose { |
| 46 margin-left: 20px; |
| 47 valign: top; |
| 48 display: block; |
| 49 height: 18px; |
| 50 width: 18px; |
| 51 line-height: 16px; |
| 52 border-radius: 9px; |
| 53 color: black; |
| 54 font-size: 18px; |
| 55 cursor: pointer; |
| 56 text-align: center; |
| 57 } |
| 58 a.boxclose:hover { |
| 59 background: lightgray; |
| 60 } |
| 45 </style> | 61 </style> |
| 46 <form style="display:flex; flex-direction:row; align-items:flex-end"> | 62 <form style="display:flex; flex-direction:row; align-items:flex-end"> |
| 47 <template if="{{ lineMode == '1-line' }}"> | 63 <template if="{{ lineMode == '1-line' }}"> |
| 48 <input class="textbox" type="text" value="{{ text }}"> | 64 <input class="textbox" type="text" value="{{ text }}"> |
| 49 </template> | 65 </template> |
| 50 <template if="{{ lineMode == 'N-line' }}"> | 66 <template if="{{ lineMode == 'N-line' }}"> |
| 51 <textarea class="bigtextbox" rows="5" cols="80" | 67 <textarea class="bigtextbox" rows="5" cols="80" |
| 52 value="{{ text }}"></textarea> | 68 value="{{ text }}"></textarea> |
| 53 </template> | 69 </template> |
| 54 | 70 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 79 </template> | 95 </template> |
| 80 <template if="{{ result['error'] == null}}"> | 96 <template if="{{ result['error'] == null}}"> |
| 81 <template if="{{ result['value'] != null }}"> | 97 <template if="{{ result['value'] != null }}"> |
| 82 <any-service-ref ref="{{ result['value'] }}"></any-service-ref> | 98 <any-service-ref ref="{{ result['value'] }}"></any-service-ref> |
| 83 </template> | 99 </template> |
| 84 <template if="{{ result['value'] == null }}"> | 100 <template if="{{ result['value'] == null }}"> |
| 85 <div style="color:#aaa;cursor:wait;"><pending></div> | 101 <div style="color:#aaa;cursor:wait;"><pending></div> |
| 86 </template> | 102 </template> |
| 87 </template> | 103 </template> |
| 88 </td> | 104 </td> |
| 105 <td> |
| 106 <a class="boxclose" on-click="{{ closeItem }}" |
| 107 closeId="{{ result['id'] }}">×</a> |
| 108 </td> |
| 89 </tr> | 109 </tr> |
| 90 </table> | 110 </table> |
| 91 </template> | 111 </template> |
| 92 </template> | 112 </template> |
| 93 </polymer-element> | 113 </polymer-element> |
| 94 | 114 |
| 95 <script type="application/dart" src="eval_box.dart"></script> | 115 <script type="application/dart" src="eval_box.dart"></script> |
| OLD | NEW |