| 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="curly_block.html"> | 2 <link rel="import" href="curly_block.html"> |
| 3 <link rel="import" href="observatory_element.html"> | 3 <link rel="import" href="observatory_element.html"> |
| 4 <link rel="import" href="service_ref.html"> | 4 <link rel="import" href="service_ref.html"> |
| 5 | 5 |
| 6 <polymer-element name="instance-ref" extends="service-ref"> | 6 <polymer-element name="instance-ref" extends="service-ref"> |
| 7 <template> | 7 <template> |
| 8 <link rel="stylesheet" href="css/shared.css"> | 8 <link rel="stylesheet" href="css/shared.css"> |
| 9 <style> | 9 <style> |
| 10 .indented { | 10 .indented { |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 <curly-block callback="{{ expander() }}" | 81 <curly-block callback="{{ expander() }}" |
| 82 expandKey="{{ expandKey }}"> | 82 expandKey="{{ expandKey }}"> |
| 83 <div class="indented"> | 83 <div class="indented"> |
| 84 <template repeat="{{ index in ref.elements.asMap().keys }}"> | 84 <template repeat="{{ index in ref.elements.asMap().keys }}"> |
| 85 [ {{ index }} ] | 85 [ {{ index }} ] |
| 86 <any-service-ref ref="{{ ref.elements[index] }}" | 86 <any-service-ref ref="{{ ref.elements[index] }}" |
| 87 expandKey="{{ makeExpandKey(index.toString()) }}"
> | 87 expandKey="{{ makeExpandKey(index.toString()) }}"
> |
| 88 </any-service-ref><br> | 88 </any-service-ref><br> |
| 89 </template> | 89 </template> |
| 90 <template if="{{ ref.length != ref.elements.length }}"> | 90 <template if="{{ ref.length != ref.elements.length }}"> |
| 91 <div><em>{{ ref.length - ref.elements.length }} omitted elements</
em></div> | 91 <div> |
| 92 <action-link callback="{{ showMore }}" |
| 93 label="show next {{ref.elements.length}}"> |
| 94 </action-link> |
| 95 </div> |
| 92 </template> | 96 </template> |
| 93 </div> | 97 </div> |
| 94 </curly-block> | 98 </curly-block> |
| 95 </template> | 99 </template> |
| 96 | 100 |
| 97 <template if="{{ ref.isMap }}"> | 101 <template if="{{ ref.isMap }}"> |
| 98 <a on-click="{{ goto }}" _href="{{ url }}"><em>{{ ref.clazz.name }}</em>
({{ ref.length }})</a> | 102 <a on-click="{{ goto }}" _href="{{ url }}"><em>{{ ref.clazz.name }}</em>
({{ ref.length }})</a> |
| 99 <curly-block callback="{{ expander() }}" expandKey="{{ expandKey }}"> | 103 <curly-block callback="{{ expander() }}" expandKey="{{ expandKey }}"> |
| 100 <div class="indented"> | 104 <div class="indented"> |
| 101 <template repeat="{{ association in ref.associations }}"> | 105 <template repeat="{{ association in ref.associations }}"> |
| 102 [ <any-service-ref ref="{{ association['key'] }}" | 106 [ <any-service-ref ref="{{ association['key'] }}" |
| 103 expandKey="{{ makeExpandKey('key') }}"> | 107 expandKey="{{ makeExpandKey('key') }}"> |
| 104 </any-service-ref> ] | 108 </any-service-ref> ] |
| 105 <any-service-ref ref="{{ association['value'] }}" | 109 <any-service-ref ref="{{ association['value'] }}" |
| 106 expandKey="{{ makeExpandKey('value') }}"> | 110 expandKey="{{ makeExpandKey('value') }}"> |
| 107 </any-service-ref><br> | 111 </any-service-ref><br> |
| 108 </template> | 112 </template> |
| 109 <template if="{{ ref.length != ref.associations.length }}"> | 113 <template if="{{ ref.length != ref.associations.length }}"> |
| 110 <div><em>{{ ref.length - ref.associations.length }} omitted associ
ations</em></div> | 114 <action-link callback="{{ showMore }}" |
| 115 label="show next {{ref.associations.length}}"> |
| 116 </action-link> |
| 111 </template> | 117 </template> |
| 112 </div> | 118 </div> |
| 113 </curly-block> | 119 </curly-block> |
| 114 </template> | 120 </template> |
| 115 | 121 |
| 116 <template if="{{ ref.isTypedData }}"> | 122 <template if="{{ ref.isTypedData }}"> |
| 117 <a on-click="{{ goto }}" _href="{{ url }}"><em>{{ ref.clazz.name }}</em>
({{ ref.length }})</a> | 123 <a on-click="{{ goto }}" _href="{{ url }}"><em>{{ ref.clazz.name }}</em>
({{ ref.length }})</a> |
| 118 <curly-block callback="{{ expander() }}" expandKey="{{ expandKey }}"> | 124 <curly-block callback="{{ expander() }}" expandKey="{{ expandKey }}"> |
| 119 <div class="indented"> | 125 <div class="indented"> |
| 120 <template repeat="{{ index in ref.typedElements.asMap().keys }}"> | 126 <template repeat="{{ index in ref.typedElements.asMap().keys }}"> |
| 121 [ {{ index }} ] | 127 [ {{ index }} ] |
| 122 {{ ref.typedElements[index].toString() }}<br> | 128 {{ ref.typedElements[index].toString() }}<br> |
| 123 </template> | 129 </template> |
| 124 <template if="{{ ref.length != ref.typedElements.length }}"> | 130 <template if="{{ ref.length != ref.typedElements.length }}"> |
| 125 <div><em>{{ ref.length - ref.typedElements.length }} omitted eleme
nts</em></div> | 131 <action-link callback="{{ showMore }}" |
| 132 label="show next {{ref.typedElements.length}}"> |
| 133 </action-link> |
| 126 </template> | 134 </template> |
| 127 </div> | 135 </div> |
| 128 </curly-block> | 136 </curly-block> |
| 129 </template> | 137 </template> |
| 130 | 138 |
| 131 <template if="{{ ref.isMirrorReference }}"> | 139 <template if="{{ ref.isMirrorReference }}"> |
| 132 <a on-click="{{ goto }}" _href="{{ url }}"><em>{{ ref.clazz.name }}</em>
</a> | 140 <a on-click="{{ goto }}" _href="{{ url }}"><em>{{ ref.clazz.name }}</em>
</a> |
| 133 <curly-block callback="{{ expander() }}" expandKey="{{ expandKey }}"> | 141 <curly-block callback="{{ expander() }}" expandKey="{{ expandKey }}"> |
| 134 <div class="indented"> | 142 <div class="indented"> |
| 135 <referent> : | 143 <referent> : |
| (...skipping 17 matching lines...) Expand all Loading... |
| 153 expandKey="{{ makeExpandKey('value') }}"> | 161 expandKey="{{ makeExpandKey('value') }}"> |
| 154 </any-service-ref><br> | 162 </any-service-ref><br> |
| 155 </div> | 163 </div> |
| 156 </curly-block> | 164 </curly-block> |
| 157 </template> | 165 </template> |
| 158 </span> | 166 </span> |
| 159 </template> | 167 </template> |
| 160 </polymer-element> | 168 </polymer-element> |
| 161 | 169 |
| 162 <script type="application/dart" src="instance_ref.dart"></script> | 170 <script type="application/dart" src="instance_ref.dart"></script> |
| OLD | NEW |