Commit b4f0f3511174b906c488a0f1d6586152ce4cf6c2
Merge branch 'master' of http://service.routetopa.eu:7480/WebCompDev/COMPONENTS
Showing
1736 changed files
with
12840 additions
and
1453 deletions
Too many changes.
To preserve performance only 100 of 1736 files are displayed.
bower_components/google-apis/.bower.json
100644 → 100755
bower_components/google-apis/LICENSE
100644 → 100755
bower_components/google-apis/README.md
100644 → 100755
bower_components/google-apis/bower.json
100644 → 100755
bower_components/google-apis/demo/index.html
100644 → 100755
bower_components/google-apis/google-apis.html
100644 → 100755
bower_components/google-apis/google-client-loader.html
100644 → 100755
bower_components/google-apis/google-js-api.html
100644 → 100755
bower_components/google-apis/google-legacy-loader.html
100644 → 100755
bower_components/google-apis/google-maps-api.html
100644 → 100755
bower_components/google-apis/google-plusone-api.html
100644 → 100755
bower_components/google-apis/google-realtime-api.html
100644 → 100755
bower_components/google-apis/google-youtube-api.html
100644 → 100755
bower_components/google-apis/index.html
100644 → 100755
bower_components/google-map/.bower.json
100644 → 100755
| 1 | { | 1 | { |
| 2 | "name": "google-map", | 2 | "name": "google-map", |
| 3 | - "version": "1.1.4", | 3 | + "version": "1.1.5", |
| 4 | "description": "Google Maps web components", | 4 | "description": "Google Maps web components", |
| 5 | "homepage": "https://elements.polymer-project.org/elements/google-map", | 5 | "homepage": "https://elements.polymer-project.org/elements/google-map", |
| 6 | "main": [ | 6 | "main": [ |
| @@ -37,11 +37,11 @@ | @@ -37,11 +37,11 @@ | ||
| 37 | "web-component-tester": "*", | 37 | "web-component-tester": "*", |
| 38 | "iron-component-page": "PolymerElements/iron-component-page#^1.0.2" | 38 | "iron-component-page": "PolymerElements/iron-component-page#^1.0.2" |
| 39 | }, | 39 | }, |
| 40 | - "_release": "1.1.4", | 40 | + "_release": "1.1.5", |
| 41 | "_resolution": { | 41 | "_resolution": { |
| 42 | "type": "version", | 42 | "type": "version", |
| 43 | - "tag": "1.1.4", | ||
| 44 | - "commit": "571392000956d93dddd9e2f6d3eb9593a588f5f0" | 43 | + "tag": "1.1.5", |
| 44 | + "commit": "3ff5c11d7aa90874d7f0ac75e076f512981ffd26" | ||
| 45 | }, | 45 | }, |
| 46 | "_source": "git://github.com/GoogleWebComponents/google-map.git", | 46 | "_source": "git://github.com/GoogleWebComponents/google-map.git", |
| 47 | "_target": "^1.0.0", | 47 | "_target": "^1.0.0", |
bower_components/google-map/LICENSE
100644 → 100755
bower_components/google-map/README.md
100644 → 100755
bower_components/google-map/bower.json
100644 → 100755
| 1 | { | 1 | { |
| 2 | "name": "google-map", | 2 | "name": "google-map", |
| 3 | - "version": "1.1.4", | 3 | + "version": "1.1.5", |
| 4 | "description": "Google Maps web components", | 4 | "description": "Google Maps web components", |
| 5 | "homepage": "https://elements.polymer-project.org/elements/google-map", | 5 | "homepage": "https://elements.polymer-project.org/elements/google-map", |
| 6 | "main": [ | 6 | "main": [ |
bower_components/google-map/demo/index.html
100644 → 100755
bower_components/google-map/demo/polys.html
100644 → 100755
bower_components/google-map/google-map-directions.html
100644 → 100755
bower_components/google-map/google-map-marker.html
100644 → 100755
bower_components/google-map/google-map-point.html
100644 → 100755
bower_components/google-map/google-map-poly.html
100644 → 100755
bower_components/google-map/google-map-search.html
100644 → 100755
bower_components/google-map/google-map.html
100644 → 100755
| @@ -330,6 +330,11 @@ The `google-map` element renders a Google Map. | @@ -330,6 +330,11 @@ The `google-map` element renders a Google Map. | ||
| 330 | * Use to specify additional options we do not expose as | 330 | * Use to specify additional options we do not expose as |
| 331 | * properties. | 331 | * properties. |
| 332 | * Ex: `<google-map additional-map-options='{"mapTypeId":"satellite"}'>` | 332 | * Ex: `<google-map additional-map-options='{"mapTypeId":"satellite"}'>` |
| 333 | + * | ||
| 334 | + * Note, you can't use API enums like `google.maps.ControlPosition.TOP_RIGHT` | ||
| 335 | + * when using this property as an HTML attribute. Instead, use the actual | ||
| 336 | + * value (e.g. `3`) or set `.additionalMapOptions` in JS rather than using | ||
| 337 | + * the attribute. | ||
| 333 | */ | 338 | */ |
| 334 | additionalMapOptions: { | 339 | additionalMapOptions: { |
| 335 | type: Object, | 340 | type: Object, |
bower_components/google-map/index.html
100644 → 100755
bower_components/google-map/metadata.html
100644 → 100755
bower_components/hydrolysis/.bower.json
100644 → 100755
bower_components/hydrolysis/.editorconfig
100644 → 100755
bower_components/hydrolysis/.gitattributes
100644 → 100755
bower_components/hydrolysis/.travis.yml
100644 → 100755
bower_components/hydrolysis/API.md
100644 → 100755
bower_components/hydrolysis/LICENSE
100644 → 100755
bower_components/hydrolysis/README.md
100644 → 100755
bower_components/hydrolysis/bower.json
100644 → 100755
bower_components/hydrolysis/hydrolysis-analyzer.html
100644 → 100755
bower_components/hydrolysis/hydrolysis.html
100644 → 100755
bower_components/hydrolysis/hydrolysis.js
100644 → 100755
bower_components/hydrolysis/index.js
100644 → 100755
bower_components/iron-a11y-keys-behavior/.bower.json
100644 → 100755
| 1 | { | 1 | { |
| 2 | "name": "iron-a11y-keys-behavior", | 2 | "name": "iron-a11y-keys-behavior", |
| 3 | - "version": "1.0.7", | 3 | + "version": "1.0.8", |
| 4 | "description": "A behavior that enables keybindings for greater a11y.", | 4 | "description": "A behavior that enables keybindings for greater a11y.", |
| 5 | "keywords": [ | 5 | "keywords": [ |
| 6 | "web-components", | 6 | "web-components", |
| @@ -30,11 +30,11 @@ | @@ -30,11 +30,11 @@ | ||
| 30 | "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" | 30 | "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" |
| 31 | }, | 31 | }, |
| 32 | "homepage": "https://github.com/polymerelements/iron-a11y-keys-behavior", | 32 | "homepage": "https://github.com/polymerelements/iron-a11y-keys-behavior", |
| 33 | - "_release": "1.0.7", | 33 | + "_release": "1.0.8", |
| 34 | "_resolution": { | 34 | "_resolution": { |
| 35 | "type": "version", | 35 | "type": "version", |
| 36 | - "tag": "v1.0.7", | ||
| 37 | - "commit": "4dfdd8cca76eabe12245e86deb9d5da3cd717460" | 36 | + "tag": "v1.0.8", |
| 37 | + "commit": "df29a9edcff3b4693707f1e3eebce5a1dc46e946" | ||
| 38 | }, | 38 | }, |
| 39 | "_source": "git://github.com/polymerelements/iron-a11y-keys-behavior.git", | 39 | "_source": "git://github.com/polymerelements/iron-a11y-keys-behavior.git", |
| 40 | "_target": "^1.0.0", | 40 | "_target": "^1.0.0", |
bower_components/iron-a11y-keys-behavior/.gitignore
100644 → 100755
bower_components/iron-a11y-keys-behavior/README.md
100644 → 100755
bower_components/iron-a11y-keys-behavior/bower.json
100644 → 100755
| 1 | { | 1 | { |
| 2 | "name": "iron-a11y-keys-behavior", | 2 | "name": "iron-a11y-keys-behavior", |
| 3 | - "version": "1.0.7", | 3 | + "version": "1.0.8", |
| 4 | "description": "A behavior that enables keybindings for greater a11y.", | 4 | "description": "A behavior that enables keybindings for greater a11y.", |
| 5 | "keywords": [ | 5 | "keywords": [ |
| 6 | "web-components", | 6 | "web-components", |
bower_components/iron-a11y-keys-behavior/demo/index.html
100644 → 100755
bower_components/iron-a11y-keys-behavior/demo/x-key-aware.html
100644 → 100755
bower_components/iron-a11y-keys-behavior/index.html
100644 → 100755
bower_components/iron-a11y-keys-behavior/iron-a11y-keys-behavior.html
100644 → 100755
| @@ -424,10 +424,14 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN | @@ -424,10 +424,14 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN | ||
| 424 | _triggerKeyHandler: function(keyCombo, handlerName, keyboardEvent) { | 424 | _triggerKeyHandler: function(keyCombo, handlerName, keyboardEvent) { |
| 425 | var detail = Object.create(keyCombo); | 425 | var detail = Object.create(keyCombo); |
| 426 | detail.keyboardEvent = keyboardEvent; | 426 | detail.keyboardEvent = keyboardEvent; |
| 427 | - | ||
| 428 | - this[handlerName].call(this, new CustomEvent(keyCombo.event, { | ||
| 429 | - detail: detail | ||
| 430 | - })); | 427 | + var event = new CustomEvent(keyCombo.event, { |
| 428 | + detail: detail, | ||
| 429 | + cancelable: true | ||
| 430 | + }); | ||
| 431 | + this[handlerName].call(this, event); | ||
| 432 | + if (event.defaultPrevented) { | ||
| 433 | + keyboardEvent.preventDefault(); | ||
| 434 | + } | ||
| 431 | } | 435 | } |
| 432 | }; | 436 | }; |
| 433 | })(); | 437 | })(); |
bower_components/iron-a11y-keys-behavior/test/basic-test.html
100644 → 100755
| @@ -70,6 +70,9 @@ suite('Polymer.IronA11yKeysBehavior', function() { | @@ -70,6 +70,9 @@ suite('Polymer.IronA11yKeysBehavior', function() { | ||
| 70 | _keyHandler: function(event) { | 70 | _keyHandler: function(event) { |
| 71 | this.keyCount++; | 71 | this.keyCount++; |
| 72 | this.lastEvent = event; | 72 | this.lastEvent = event; |
| 73 | + }, | ||
| 74 | + _preventDefaultHandler: function(event) { | ||
| 75 | + event.preventDefault(); | ||
| 73 | } | 76 | } |
| 74 | }]; | 77 | }]; |
| 75 | 78 | ||
| @@ -124,7 +127,8 @@ suite('Polymer.IronA11yKeysBehavior', function() { | @@ -124,7 +127,8 @@ suite('Polymer.IronA11yKeysBehavior', function() { | ||
| 124 | ], | 127 | ], |
| 125 | 128 | ||
| 126 | keyBindings: { | 129 | keyBindings: { |
| 127 | - 'space': '_keyHandler' | 130 | + 'space': '_keyHandler', |
| 131 | + 'enter': '_preventDefaultHandler' | ||
| 128 | } | 132 | } |
| 129 | }); | 133 | }); |
| 130 | }); | 134 | }); |
| @@ -273,6 +277,21 @@ suite('Polymer.IronA11yKeysBehavior', function() { | @@ -273,6 +277,21 @@ suite('Polymer.IronA11yKeysBehavior', function() { | ||
| 273 | }); | 277 | }); |
| 274 | }); | 278 | }); |
| 275 | 279 | ||
| 280 | + suite('prevent default behavior of event', function() { | ||
| 281 | + setup(function() { | ||
| 282 | + keys = fixture('BehaviorKeys'); | ||
| 283 | + }); | ||
| 284 | + test('defaultPrevented is correctly set', function() { | ||
| 285 | + var keySpy = sinon.spy(); | ||
| 286 | + | ||
| 287 | + document.addEventListener('keydown', keySpy); | ||
| 288 | + | ||
| 289 | + MockInteractions.pressEnter(keys); | ||
| 290 | + | ||
| 291 | + expect(keySpy.getCall(0).args[0].defaultPrevented).to.be.equal(true); | ||
| 292 | + }); | ||
| 293 | + }); | ||
| 294 | + | ||
| 276 | }); | 295 | }); |
| 277 | </script> | 296 | </script> |
| 278 | </body> | 297 | </body> |
bower_components/iron-ajax/.bower.json
100644 → 100755
| 1 | { | 1 | { |
| 2 | "name": "iron-ajax", | 2 | "name": "iron-ajax", |
| 3 | - "version": "1.0.6", | 3 | + "version": "1.0.7", |
| 4 | "description": "Makes it easy to make ajax calls and parse the response", | 4 | "description": "Makes it easy to make ajax calls and parse the response", |
| 5 | "private": true, | 5 | "private": true, |
| 6 | "authors": [ | 6 | "authors": [ |
| @@ -32,11 +32,11 @@ | @@ -32,11 +32,11 @@ | ||
| 32 | "web-component-tester": "*", | 32 | "web-component-tester": "*", |
| 33 | "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" | 33 | "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" |
| 34 | }, | 34 | }, |
| 35 | - "_release": "1.0.6", | 35 | + "_release": "1.0.7", |
| 36 | "_resolution": { | 36 | "_resolution": { |
| 37 | "type": "version", | 37 | "type": "version", |
| 38 | - "tag": "v1.0.6", | ||
| 39 | - "commit": "72f463a166013e12880bb881d680adf386520c49" | 38 | + "tag": "v1.0.7", |
| 39 | + "commit": "dc3dda81a963e9fd788ed69ed350c5f4cf84d857" | ||
| 40 | }, | 40 | }, |
| 41 | "_source": "git://github.com/PolymerElements/iron-ajax.git", | 41 | "_source": "git://github.com/PolymerElements/iron-ajax.git", |
| 42 | "_target": "^1.0.0", | 42 | "_target": "^1.0.0", |
bower_components/iron-ajax/.gitignore
100644 → 100755
bower_components/iron-ajax/README.md
100644 → 100755
bower_components/iron-ajax/bower.json
100644 → 100755
| 1 | { | 1 | { |
| 2 | "name": "iron-ajax", | 2 | "name": "iron-ajax", |
| 3 | - "version": "1.0.6", | 3 | + "version": "1.0.7", |
| 4 | "description": "Makes it easy to make ajax calls and parse the response", | 4 | "description": "Makes it easy to make ajax calls and parse the response", |
| 5 | "private": true, | 5 | "private": true, |
| 6 | "authors": [ | 6 | "authors": [ |
bower_components/iron-ajax/demo/index.html
100644 → 100755
bower_components/iron-ajax/hero.svg
100644 → 100755
bower_components/iron-ajax/index.html
100644 → 100755
bower_components/iron-ajax/iron-ajax.html
100644 → 100755
| @@ -69,8 +69,7 @@ element. | @@ -69,8 +69,7 @@ element. | ||
| 69 | * The URL target of the request. | 69 | * The URL target of the request. |
| 70 | */ | 70 | */ |
| 71 | url: { | 71 | url: { |
| 72 | - type: String, | ||
| 73 | - value: '' | 72 | + type: String |
| 74 | }, | 73 | }, |
| 75 | 74 | ||
| 76 | /** | 75 | /** |
| @@ -242,6 +241,8 @@ element. | @@ -242,6 +241,8 @@ element. | ||
| 242 | * | 241 | * |
| 243 | * The type of the response is determined by the value of `handleAs` at | 242 | * The type of the response is determined by the value of `handleAs` at |
| 244 | * the time that the request was generated. | 243 | * the time that the request was generated. |
| 244 | + * | ||
| 245 | + * @type {Object} | ||
| 245 | */ | 246 | */ |
| 246 | lastResponse: { | 247 | lastResponse: { |
| 247 | type: Object, | 248 | type: Object, |
| @@ -251,6 +252,8 @@ element. | @@ -251,6 +252,8 @@ element. | ||
| 251 | 252 | ||
| 252 | /** | 253 | /** |
| 253 | * lastRequest's error, if any. | 254 | * lastRequest's error, if any. |
| 255 | + * | ||
| 256 | + * @type {Object} | ||
| 254 | */ | 257 | */ |
| 255 | lastError: { | 258 | lastError: { |
| 256 | type: Object, | 259 | type: Object, |
| @@ -353,13 +356,15 @@ element. | @@ -353,13 +356,15 @@ element. | ||
| 353 | contentType = 'application/x-www-form-urlencoded'; | 356 | contentType = 'application/x-www-form-urlencoded'; |
| 354 | } | 357 | } |
| 355 | if (contentType) { | 358 | if (contentType) { |
| 356 | - headers['Content-Type'] = contentType; | 359 | + headers['content-type'] = contentType; |
| 357 | } | 360 | } |
| 358 | var header; | 361 | var header; |
| 359 | 362 | ||
| 360 | if (this.headers instanceof Object) { | 363 | if (this.headers instanceof Object) { |
| 361 | for (header in this.headers) { | 364 | for (header in this.headers) { |
| 362 | - headers[header] = this.headers[header].toString(); | 365 | + // Normalize headers in lower case to make it easier for iron-request |
| 366 | + // to reason about them. | ||
| 367 | + headers[header.toLowerCase()] = this.headers[header].toString(); | ||
| 363 | } | 368 | } |
| 364 | } | 369 | } |
| 365 | 370 | ||
| @@ -381,7 +386,7 @@ element. | @@ -381,7 +386,7 @@ element. | ||
| 381 | */ | 386 | */ |
| 382 | toRequestOptions: function() { | 387 | toRequestOptions: function() { |
| 383 | return { | 388 | return { |
| 384 | - url: this.requestUrl, | 389 | + url: this.requestUrl || '', |
| 385 | method: this.method, | 390 | method: this.method, |
| 386 | headers: this.requestHeaders, | 391 | headers: this.requestHeaders, |
| 387 | body: this.body, | 392 | body: this.body, |
| @@ -462,7 +467,7 @@ element. | @@ -462,7 +467,7 @@ element. | ||
| 462 | 467 | ||
| 463 | _requestOptionsChanged: function() { | 468 | _requestOptionsChanged: function() { |
| 464 | this.debounce('generate-request', function() { | 469 | this.debounce('generate-request', function() { |
| 465 | - if (!this.url && this.url !== '') { | 470 | + if (this.url == null) { |
| 466 | return; | 471 | return; |
| 467 | } | 472 | } |
| 468 | 473 |
bower_components/iron-ajax/iron-request.html
100644 → 100755
| @@ -183,7 +183,7 @@ iron-request can be used to perform XMLHttpRequests. | @@ -183,7 +183,7 @@ iron-request can be used to perform XMLHttpRequests. | ||
| 183 | * async By default, all requests are sent asynchronously. To send synchronous requests, | 183 | * async By default, all requests are sent asynchronously. To send synchronous requests, |
| 184 | * set to true. | 184 | * set to true. |
| 185 | * body The content for the request body for POST method. | 185 | * body The content for the request body for POST method. |
| 186 | - * headers HTTP request headers. | 186 | + * headers HTTP request headers. All keys must be lower case. |
| 187 | * handleAs The response type. Default is 'text'. | 187 | * handleAs The response type. Default is 'text'. |
| 188 | * withCredentials Whether or not to send credentials on the request. Default is false. | 188 | * withCredentials Whether or not to send credentials on the request. Default is false. |
| 189 | * timeout: (Number|undefined) | 189 | * timeout: (Number|undefined) |
| @@ -241,20 +241,28 @@ iron-request can be used to perform XMLHttpRequests. | @@ -241,20 +241,28 @@ iron-request can be used to perform XMLHttpRequests. | ||
| 241 | options.async !== false | 241 | options.async !== false |
| 242 | ); | 242 | ); |
| 243 | 243 | ||
| 244 | - if (options.headers) { | ||
| 245 | - Object.keys(options.headers).forEach(function (requestHeader) { | ||
| 246 | - xhr.setRequestHeader( | ||
| 247 | - requestHeader, | ||
| 248 | - options.headers[requestHeader] | ||
| 249 | - ); | ||
| 250 | - }, this); | 244 | + var acceptType = { |
| 245 | + 'json': 'application/json', | ||
| 246 | + 'text': 'text/plain', | ||
| 247 | + 'html': 'text/html', | ||
| 248 | + 'xml': 'application/xml', | ||
| 249 | + 'arraybuffer': 'application/octet-stream' | ||
| 250 | + }[options.handleAs]; | ||
| 251 | + var headers = options.headers || {}; | ||
| 252 | + if (acceptType && !headers['accept']) { | ||
| 253 | + headers['accept'] = acceptType; | ||
| 251 | } | 254 | } |
| 255 | + Object.keys(headers).forEach(function (requestHeader) { | ||
| 256 | + if (/[A-Z]/.test(requestHeader)) { | ||
| 257 | + console.error('Headers must be lower case, got', requestHeader); | ||
| 258 | + } | ||
| 259 | + xhr.setRequestHeader( | ||
| 260 | + requestHeader, | ||
| 261 | + headers[requestHeader] | ||
| 262 | + ); | ||
| 263 | + }, this); | ||
| 252 | 264 | ||
| 253 | - var contentType; | ||
| 254 | - if (options.headers) { | ||
| 255 | - contentType = options.headers['Content-Type']; | ||
| 256 | - } | ||
| 257 | - var body = this._encodeBodyObject(options.body, contentType); | 265 | + var body = this._encodeBodyObject(options.body, headers['content-type']); |
| 258 | 266 | ||
| 259 | // In IE, `xhr.responseType` is an empty string when the response | 267 | // In IE, `xhr.responseType` is an empty string when the response |
| 260 | // returns. Hence, caching it as `xhr._responseType`. | 268 | // returns. Hence, caching it as `xhr._responseType`. |
bower_components/iron-ajax/test/index.html
100644 → 100755
bower_components/iron-ajax/test/iron-ajax.html
100644 → 100755
| @@ -55,6 +55,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN | @@ -55,6 +55,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN | ||
| 55 | debounce-duration="150"></iron-ajax> | 55 | debounce-duration="150"></iron-ajax> |
| 56 | </template> | 56 | </template> |
| 57 | </test-fixture> | 57 | </test-fixture> |
| 58 | + <test-fixture id='BlankUrl'> | ||
| 59 | + <template> | ||
| 60 | + <iron-ajax auto handle-as='text'></iron-ajax> | ||
| 61 | + </template> | ||
| 62 | + </test-fixture> | ||
| 58 | <!-- note(rictic): | 63 | <!-- note(rictic): |
| 59 | This makes us dependent on a third-party server, but we need to be able | 64 | This makes us dependent on a third-party server, but we need to be able |
| 60 | to check what headers the browser actually sends on the wire. | 65 | to check what headers the browser actually sends on the wire. |
| @@ -197,6 +202,30 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN | @@ -197,6 +202,30 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN | ||
| 197 | }); | 202 | }); |
| 198 | }); | 203 | }); |
| 199 | 204 | ||
| 205 | + suite('when url isn\'t set yet', function() { | ||
| 206 | + test('we don\'t fire any automatic requests', function() { | ||
| 207 | + expect(server.requests.length).to.be.equal(0); | ||
| 208 | + ajax = fixture('BlankUrl'); | ||
| 209 | + | ||
| 210 | + return timePasses(1).then(function() { | ||
| 211 | + // We don't make any requests. | ||
| 212 | + expect(server.requests.length).to.be.equal(0); | ||
| 213 | + | ||
| 214 | + // Explicitly asking for the request to fire works. | ||
| 215 | + ajax.generateRequest(); | ||
| 216 | + expect(server.requests.length).to.be.equal(1); | ||
| 217 | + server.requests = []; | ||
| 218 | + | ||
| 219 | + // Explicitly setting url to '' works too. | ||
| 220 | + ajax = fixture('BlankUrl'); | ||
| 221 | + ajax.url = ''; | ||
| 222 | + return timePasses(1); | ||
| 223 | + }).then(function() { | ||
| 224 | + expect(server.requests.length).to.be.equal(1); | ||
| 225 | + }); | ||
| 226 | + }); | ||
| 227 | + }); | ||
| 228 | + | ||
| 200 | suite('when properties are changed', function() { | 229 | suite('when properties are changed', function() { |
| 201 | test('generates simple-request elements that reflect the change', function() { | 230 | test('generates simple-request elements that reflect the change', function() { |
| 202 | request = ajax.generateRequest(); | 231 | request = ajax.generateRequest(); |
| @@ -590,6 +619,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN | @@ -590,6 +619,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN | ||
| 590 | expect(typeof(ajax.lastResponse)).to.be.equal('string'); | 619 | expect(typeof(ajax.lastResponse)).to.be.equal('string'); |
| 591 | }); | 620 | }); |
| 592 | 621 | ||
| 622 | + expect(server.requests.length).to.be.equal(1); | ||
| 623 | + expect(server.requests[0].requestHeaders['accept']).to.be.equal( | ||
| 624 | + 'text/plain'); | ||
| 593 | server.respond(); | 625 | server.respond(); |
| 594 | 626 | ||
| 595 | return promise; | 627 | return promise; |
| @@ -662,6 +694,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN | @@ -662,6 +694,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN | ||
| 662 | expect(typeof(ajax.lastResponse)).to.be.equal('object'); | 694 | expect(typeof(ajax.lastResponse)).to.be.equal('object'); |
| 663 | }); | 695 | }); |
| 664 | 696 | ||
| 697 | + expect(server.requests.length).to.be.equal(1); | ||
| 698 | + expect(server.requests[0].requestHeaders['accept']).to.be.equal( | ||
| 699 | + 'application/json'); | ||
| 700 | + | ||
| 665 | server.respond(); | 701 | server.respond(); |
| 666 | 702 | ||
| 667 | return promise; | 703 | return promise; |
bower_components/iron-ajax/test/iron-request.html
100644 → 100755
| @@ -126,6 +126,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN | @@ -126,6 +126,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN | ||
| 126 | options.handleAs = 'json'; | 126 | options.handleAs = 'json'; |
| 127 | 127 | ||
| 128 | request.send(options); | 128 | request.send(options); |
| 129 | + expect(server.requests.length).to.be.equal(1); | ||
| 130 | + expect(server.requests[0].requestHeaders['accept']).to.be.equal( | ||
| 131 | + 'application/json'); | ||
| 129 | server.respond(); | 132 | server.respond(); |
| 130 | 133 | ||
| 131 | return request.completes.then(function() { | 134 | return request.completes.then(function() { |
| @@ -139,6 +142,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN | @@ -139,6 +142,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN | ||
| 139 | options.async = false; | 142 | options.async = false; |
| 140 | 143 | ||
| 141 | request.send(options); | 144 | request.send(options); |
| 145 | + expect(server.requests.length).to.be.equal(1); | ||
| 146 | + expect(server.requests[0].requestHeaders['accept']).to.be.equal( | ||
| 147 | + 'application/json'); | ||
| 142 | server.respond(); | 148 | server.respond(); |
| 143 | 149 | ||
| 144 | return request.completes.then(function() { | 150 | return request.completes.then(function() { |
bower_components/iron-autogrow-textarea/.bower.json
100644 → 100755
| 1 | { | 1 | { |
| 2 | "name": "iron-autogrow-textarea", | 2 | "name": "iron-autogrow-textarea", |
| 3 | - "version": "1.0.7", | 3 | + "version": "1.0.8", |
| 4 | "description": "A textarea element that automatically grows with input", | 4 | "description": "A textarea element that automatically grows with input", |
| 5 | "authors": [ | 5 | "authors": [ |
| 6 | "The Polymer Authors" | 6 | "The Polymer Authors" |
| @@ -37,11 +37,11 @@ | @@ -37,11 +37,11 @@ | ||
| 37 | "paper-styles": "PolymerElements/paper-styles#^1.0.0", | 37 | "paper-styles": "PolymerElements/paper-styles#^1.0.0", |
| 38 | "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" | 38 | "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" |
| 39 | }, | 39 | }, |
| 40 | - "_release": "1.0.7", | 40 | + "_release": "1.0.8", |
| 41 | "_resolution": { | 41 | "_resolution": { |
| 42 | "type": "version", | 42 | "type": "version", |
| 43 | - "tag": "v1.0.7", | ||
| 44 | - "commit": "f31131a9c45af7845780f94ec7e69816929ac6cc" | 43 | + "tag": "v1.0.8", |
| 44 | + "commit": "ea7fb14d8038ccbedc6e85b9c4842b68c659a503" | ||
| 45 | }, | 45 | }, |
| 46 | "_source": "git://github.com/PolymerElements/iron-autogrow-textarea.git", | 46 | "_source": "git://github.com/PolymerElements/iron-autogrow-textarea.git", |
| 47 | "_target": "^1.0.0", | 47 | "_target": "^1.0.0", |
bower_components/iron-autogrow-textarea/.gitignore
100644 → 100755
bower_components/iron-autogrow-textarea/README.md
100644 → 100755
bower_components/iron-autogrow-textarea/bower.json
100644 → 100755
| 1 | { | 1 | { |
| 2 | "name": "iron-autogrow-textarea", | 2 | "name": "iron-autogrow-textarea", |
| 3 | - "version": "1.0.7", | 3 | + "version": "1.0.8", |
| 4 | "description": "A textarea element that automatically grows with input", | 4 | "description": "A textarea element that automatically grows with input", |
| 5 | "authors": [ | 5 | "authors": [ |
| 6 | "The Polymer Authors" | 6 | "The Polymer Authors" |
bower_components/iron-autogrow-textarea/demo/index.html
100644 → 100755
bower_components/iron-autogrow-textarea/index.html
100644 → 100755
bower_components/iron-autogrow-textarea/iron-autogrow-textarea.html
100644 → 100755
| @@ -10,7 +10,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN | @@ -10,7 +10,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN | ||
| 10 | 10 | ||
| 11 | <link rel="import" href="../polymer/polymer.html"> | 11 | <link rel="import" href="../polymer/polymer.html"> |
| 12 | <link rel="import" href="../iron-behaviors/iron-control-state.html"> | 12 | <link rel="import" href="../iron-behaviors/iron-control-state.html"> |
| 13 | -<link rel="import" href="../iron-flex-layout/classes/iron-flex-layout.html"> | 13 | +<link rel="import" href="../iron-flex-layout/iron-flex-layout.html"> |
| 14 | <link rel="import" href="../iron-validatable-behavior/iron-validatable-behavior.html"> | 14 | <link rel="import" href="../iron-validatable-behavior/iron-validatable-behavior.html"> |
| 15 | <link rel="import" href="../iron-form-element-behavior/iron-form-element-behavior.html"> | 15 | <link rel="import" href="../iron-form-element-behavior/iron-form-element-behavior.html"> |
| 16 | 16 | ||
| @@ -55,6 +55,10 @@ Custom property | Description | Default | @@ -55,6 +55,10 @@ Custom property | Description | Default | ||
| 55 | word-wrap: break-word; | 55 | word-wrap: break-word; |
| 56 | } | 56 | } |
| 57 | 57 | ||
| 58 | + .fit { | ||
| 59 | + @apply(--layout-fit); | ||
| 60 | + } | ||
| 61 | + | ||
| 58 | textarea { | 62 | textarea { |
| 59 | position: relative; | 63 | position: relative; |
| 60 | outline: none; | 64 | outline: none; |
| @@ -68,6 +72,7 @@ Custom property | Description | Default | @@ -68,6 +72,7 @@ Custom property | Description | Default | ||
| 68 | font-size: inherit; | 72 | font-size: inherit; |
| 69 | font-family: inherit; | 73 | font-family: inherit; |
| 70 | line-height: inherit; | 74 | line-height: inherit; |
| 75 | + text-align: inherit; | ||
| 71 | @apply(--iron-autogrow-textarea); | 76 | @apply(--iron-autogrow-textarea); |
| 72 | } | 77 | } |
| 73 | 78 | ||
| @@ -78,7 +83,8 @@ Custom property | Description | Default | @@ -78,7 +83,8 @@ Custom property | Description | Default | ||
| 78 | </style> | 83 | </style> |
| 79 | <template> | 84 | <template> |
| 80 | <!-- the mirror sizes the input/textarea so it grows with typing --> | 85 | <!-- the mirror sizes the input/textarea so it grows with typing --> |
| 81 | - <div id="mirror" class="mirror-text" aria-hidden="true"> </div> | 86 | + <!-- use   instead of to allow this element to be used in XHTML --> |
| 87 | + <div id="mirror" class="mirror-text" aria-hidden="true"> </div> | ||
| 82 | 88 | ||
| 83 | <!-- size the input/textarea with a div, because the textarea has intrinsic size in ff --> | 89 | <!-- size the input/textarea with a div, because the textarea has intrinsic size in ff --> |
| 84 | <div class="textarea-container fit"> | 90 | <div class="textarea-container fit"> |
| @@ -112,6 +118,8 @@ Custom property | Description | Default | @@ -112,6 +118,8 @@ Custom property | Description | Default | ||
| 112 | 118 | ||
| 113 | /** | 119 | /** |
| 114 | * Use this property instead of `value` for two-way data binding. | 120 | * Use this property instead of `value` for two-way data binding. |
| 121 | + * | ||
| 122 | + * @type {string|number|undefined|null} | ||
| 115 | */ | 123 | */ |
| 116 | bindValue: { | 124 | bindValue: { |
| 117 | observer: '_bindValueChanged', | 125 | observer: '_bindValueChanged', |
| @@ -315,7 +323,8 @@ Custom property | Description | Default | @@ -315,7 +323,8 @@ Custom property | Description | Default | ||
| 315 | while (this.rows > 0 && _tokens.length < this.rows) { | 323 | while (this.rows > 0 && _tokens.length < this.rows) { |
| 316 | _tokens.push(''); | 324 | _tokens.push(''); |
| 317 | } | 325 | } |
| 318 | - return _tokens.join('<br>') + ' '; | 326 | + // Use   instead of to allow this element to be used in XHTML. |
| 327 | + return _tokens.join('<br/>') + ' '; | ||
| 319 | }, | 328 | }, |
| 320 | 329 | ||
| 321 | _valueForMirror: function() { | 330 | _valueForMirror: function() { |
bower_components/iron-autogrow-textarea/test/basic.html
100644 → 100755
bower_components/iron-autogrow-textarea/test/index.html
100644 → 100755
bower_components/iron-behaviors/.bower.json
100644 → 100755
bower_components/iron-behaviors/.gitignore
100644 → 100755
bower_components/iron-behaviors/README.md
100644 → 100755
bower_components/iron-behaviors/bower.json
100644 → 100755
bower_components/iron-behaviors/demo/index.html
100644 → 100755
bower_components/iron-behaviors/demo/simple-button.html
100644 → 100755
bower_components/iron-behaviors/index.html
100644 → 100755
bower_components/iron-behaviors/iron-button-state.html
100644 → 100755
bower_components/iron-behaviors/iron-control-state.html
100644 → 100755
bower_components/iron-behaviors/test/active-state.html
100644 → 100755
bower_components/iron-behaviors/test/disabled-state.html
100644 → 100755
bower_components/iron-behaviors/test/focused-state.html
100644 → 100755
bower_components/iron-behaviors/test/index.html
100644 → 100755
bower_components/iron-behaviors/test/test-elements.html
100644 → 100755
bower_components/iron-collapse/.bower.json
100644 → 100755
bower_components/iron-collapse/.gitignore
100644 → 100755
bower_components/iron-collapse/README.md
100644 → 100755
bower_components/iron-collapse/bower.json
100644 → 100755
bower_components/iron-collapse/demo/index.html
100644 → 100755
bower_components/iron-collapse/index.html
100644 → 100755
bower_components/iron-collapse/iron-collapse.html
100644 → 100755
bower_components/iron-collapse/test/a11y.html
100644 → 100755
bower_components/iron-collapse/test/basic.html
100644 → 100755
bower_components/iron-collapse/test/horizontal.html
100644 → 100755
bower_components/iron-collapse/test/index.html
100644 → 100755
bower_components/iron-component-page/.bower.json
100644 → 100755
| @@ -13,7 +13,7 @@ | @@ -13,7 +13,7 @@ | ||
| 13 | "type": "git", | 13 | "type": "git", |
| 14 | "url": "git://github.com/PolymerElements/iron-component-page.git" | 14 | "url": "git://github.com/PolymerElements/iron-component-page.git" |
| 15 | }, | 15 | }, |
| 16 | - "version": "1.0.7", | 16 | + "version": "1.0.8", |
| 17 | "private": true, | 17 | "private": true, |
| 18 | "license": "http://polymer.github.io/LICENSE.txt", | 18 | "license": "http://polymer.github.io/LICENSE.txt", |
| 19 | "dependencies": { | 19 | "dependencies": { |
| @@ -34,11 +34,11 @@ | @@ -34,11 +34,11 @@ | ||
| 34 | "web-component-tester": "*" | 34 | "web-component-tester": "*" |
| 35 | }, | 35 | }, |
| 36 | "homepage": "https://github.com/PolymerElements/iron-component-page", | 36 | "homepage": "https://github.com/PolymerElements/iron-component-page", |
| 37 | - "_release": "1.0.7", | 37 | + "_release": "1.0.8", |
| 38 | "_resolution": { | 38 | "_resolution": { |
| 39 | "type": "version", | 39 | "type": "version", |
| 40 | - "tag": "v1.0.7", | ||
| 41 | - "commit": "77a463d00fcf0f00a764dd01fd01a6f21bd40745" | 40 | + "tag": "v1.0.8", |
| 41 | + "commit": "62c6498987e17b5480d8d05ddcaf2fa9ef8525a0" | ||
| 42 | }, | 42 | }, |
| 43 | "_source": "git://github.com/PolymerElements/iron-component-page.git", | 43 | "_source": "git://github.com/PolymerElements/iron-component-page.git", |
| 44 | "_target": "^1.0.0", | 44 | "_target": "^1.0.0", |
bower_components/iron-component-page/.gitignore
100644 → 100755
bower_components/iron-component-page/README.md
100644 → 100755
bower_components/iron-component-page/bower.json
100644 → 100755
| @@ -13,7 +13,7 @@ | @@ -13,7 +13,7 @@ | ||
| 13 | "type": "git", | 13 | "type": "git", |
| 14 | "url": "git://github.com/PolymerElements/iron-component-page.git" | 14 | "url": "git://github.com/PolymerElements/iron-component-page.git" |
| 15 | }, | 15 | }, |
| 16 | - "version": "1.0.7", | 16 | + "version": "1.0.8", |
| 17 | "private": true, | 17 | "private": true, |
| 18 | "license": "http://polymer.github.io/LICENSE.txt", | 18 | "license": "http://polymer.github.io/LICENSE.txt", |
| 19 | "dependencies": { | 19 | "dependencies": { |
bower_components/iron-component-page/demo/index.html
100644 → 100755