diff --git a/bower_components/google-map/.bower.json b/bower_components/google-map/.bower.json index bb8ff5f..6336346 100644 --- a/bower_components/google-map/.bower.json +++ b/bower_components/google-map/.bower.json @@ -1,6 +1,6 @@ { "name": "google-map", - "version": "1.1.4", + "version": "1.1.5", "description": "Google Maps web components", "homepage": "https://elements.polymer-project.org/elements/google-map", "main": [ @@ -37,11 +37,11 @@ "web-component-tester": "*", "iron-component-page": "PolymerElements/iron-component-page#^1.0.2" }, - "_release": "1.1.4", + "_release": "1.1.5", "_resolution": { "type": "version", - "tag": "1.1.4", - "commit": "571392000956d93dddd9e2f6d3eb9593a588f5f0" + "tag": "1.1.5", + "commit": "3ff5c11d7aa90874d7f0ac75e076f512981ffd26" }, "_source": "git://github.com/GoogleWebComponents/google-map.git", "_target": "^1.0.0", diff --git a/bower_components/google-map/bower.json b/bower_components/google-map/bower.json index ed97d68..e8c6f7f 100644 --- a/bower_components/google-map/bower.json +++ b/bower_components/google-map/bower.json @@ -1,6 +1,6 @@ { "name": "google-map", - "version": "1.1.4", + "version": "1.1.5", "description": "Google Maps web components", "homepage": "https://elements.polymer-project.org/elements/google-map", "main": [ diff --git a/bower_components/google-map/google-map.html b/bower_components/google-map/google-map.html index 03a2ee2..e91e968 100644 --- a/bower_components/google-map/google-map.html +++ b/bower_components/google-map/google-map.html @@ -330,6 +330,11 @@ The `google-map` element renders a Google Map. * Use to specify additional options we do not expose as * properties. * Ex: `` + * + * Note, you can't use API enums like `google.maps.ControlPosition.TOP_RIGHT` + * when using this property as an HTML attribute. Instead, use the actual + * value (e.g. `3`) or set `.additionalMapOptions` in JS rather than using + * the attribute. */ additionalMapOptions: { type: Object, diff --git a/bower_components/iron-a11y-keys-behavior/.bower.json b/bower_components/iron-a11y-keys-behavior/.bower.json index 7cc123a..503ff0f 100644 --- a/bower_components/iron-a11y-keys-behavior/.bower.json +++ b/bower_components/iron-a11y-keys-behavior/.bower.json @@ -1,6 +1,6 @@ { "name": "iron-a11y-keys-behavior", - "version": "1.0.7", + "version": "1.0.8", "description": "A behavior that enables keybindings for greater a11y.", "keywords": [ "web-components", @@ -30,11 +30,11 @@ "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" }, "homepage": "https://github.com/polymerelements/iron-a11y-keys-behavior", - "_release": "1.0.7", + "_release": "1.0.8", "_resolution": { "type": "version", - "tag": "v1.0.7", - "commit": "4dfdd8cca76eabe12245e86deb9d5da3cd717460" + "tag": "v1.0.8", + "commit": "df29a9edcff3b4693707f1e3eebce5a1dc46e946" }, "_source": "git://github.com/polymerelements/iron-a11y-keys-behavior.git", "_target": "^1.0.0", diff --git a/bower_components/iron-a11y-keys-behavior/bower.json b/bower_components/iron-a11y-keys-behavior/bower.json index 6218998..623d471 100644 --- a/bower_components/iron-a11y-keys-behavior/bower.json +++ b/bower_components/iron-a11y-keys-behavior/bower.json @@ -1,6 +1,6 @@ { "name": "iron-a11y-keys-behavior", - "version": "1.0.7", + "version": "1.0.8", "description": "A behavior that enables keybindings for greater a11y.", "keywords": [ "web-components", diff --git a/bower_components/iron-a11y-keys-behavior/iron-a11y-keys-behavior.html b/bower_components/iron-a11y-keys-behavior/iron-a11y-keys-behavior.html index be64729..d3fdb61 100644 --- a/bower_components/iron-a11y-keys-behavior/iron-a11y-keys-behavior.html +++ b/bower_components/iron-a11y-keys-behavior/iron-a11y-keys-behavior.html @@ -424,10 +424,14 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN _triggerKeyHandler: function(keyCombo, handlerName, keyboardEvent) { var detail = Object.create(keyCombo); detail.keyboardEvent = keyboardEvent; - - this[handlerName].call(this, new CustomEvent(keyCombo.event, { - detail: detail - })); + var event = new CustomEvent(keyCombo.event, { + detail: detail, + cancelable: true + }); + this[handlerName].call(this, event); + if (event.defaultPrevented) { + keyboardEvent.preventDefault(); + } } }; })(); diff --git a/bower_components/iron-a11y-keys-behavior/test/basic-test.html b/bower_components/iron-a11y-keys-behavior/test/basic-test.html index fea60b6..289dff0 100644 --- a/bower_components/iron-a11y-keys-behavior/test/basic-test.html +++ b/bower_components/iron-a11y-keys-behavior/test/basic-test.html @@ -70,6 +70,9 @@ suite('Polymer.IronA11yKeysBehavior', function() { _keyHandler: function(event) { this.keyCount++; this.lastEvent = event; + }, + _preventDefaultHandler: function(event) { + event.preventDefault(); } }]; @@ -124,7 +127,8 @@ suite('Polymer.IronA11yKeysBehavior', function() { ], keyBindings: { - 'space': '_keyHandler' + 'space': '_keyHandler', + 'enter': '_preventDefaultHandler' } }); }); @@ -273,6 +277,21 @@ suite('Polymer.IronA11yKeysBehavior', function() { }); }); + suite('prevent default behavior of event', function() { + setup(function() { + keys = fixture('BehaviorKeys'); + }); + test('defaultPrevented is correctly set', function() { + var keySpy = sinon.spy(); + + document.addEventListener('keydown', keySpy); + + MockInteractions.pressEnter(keys); + + expect(keySpy.getCall(0).args[0].defaultPrevented).to.be.equal(true); + }); + }); + }); diff --git a/bower_components/iron-ajax/.bower.json b/bower_components/iron-ajax/.bower.json index fb58ac5..4038f11 100644 --- a/bower_components/iron-ajax/.bower.json +++ b/bower_components/iron-ajax/.bower.json @@ -1,6 +1,6 @@ { "name": "iron-ajax", - "version": "1.0.6", + "version": "1.0.7", "description": "Makes it easy to make ajax calls and parse the response", "private": true, "authors": [ @@ -32,11 +32,11 @@ "web-component-tester": "*", "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" }, - "_release": "1.0.6", + "_release": "1.0.7", "_resolution": { "type": "version", - "tag": "v1.0.6", - "commit": "72f463a166013e12880bb881d680adf386520c49" + "tag": "v1.0.7", + "commit": "dc3dda81a963e9fd788ed69ed350c5f4cf84d857" }, "_source": "git://github.com/PolymerElements/iron-ajax.git", "_target": "^1.0.0", diff --git a/bower_components/iron-ajax/bower.json b/bower_components/iron-ajax/bower.json index a170f27..3acee0d 100644 --- a/bower_components/iron-ajax/bower.json +++ b/bower_components/iron-ajax/bower.json @@ -1,6 +1,6 @@ { "name": "iron-ajax", - "version": "1.0.6", + "version": "1.0.7", "description": "Makes it easy to make ajax calls and parse the response", "private": true, "authors": [ diff --git a/bower_components/iron-ajax/iron-ajax.html b/bower_components/iron-ajax/iron-ajax.html index 4fcb000..288f35d 100644 --- a/bower_components/iron-ajax/iron-ajax.html +++ b/bower_components/iron-ajax/iron-ajax.html @@ -69,8 +69,7 @@ element. * The URL target of the request. */ url: { - type: String, - value: '' + type: String }, /** @@ -242,6 +241,8 @@ element. * * The type of the response is determined by the value of `handleAs` at * the time that the request was generated. + * + * @type {Object} */ lastResponse: { type: Object, @@ -251,6 +252,8 @@ element. /** * lastRequest's error, if any. + * + * @type {Object} */ lastError: { type: Object, @@ -353,13 +356,15 @@ element. contentType = 'application/x-www-form-urlencoded'; } if (contentType) { - headers['Content-Type'] = contentType; + headers['content-type'] = contentType; } var header; if (this.headers instanceof Object) { for (header in this.headers) { - headers[header] = this.headers[header].toString(); + // Normalize headers in lower case to make it easier for iron-request + // to reason about them. + headers[header.toLowerCase()] = this.headers[header].toString(); } } @@ -381,7 +386,7 @@ element. */ toRequestOptions: function() { return { - url: this.requestUrl, + url: this.requestUrl || '', method: this.method, headers: this.requestHeaders, body: this.body, @@ -462,7 +467,7 @@ element. _requestOptionsChanged: function() { this.debounce('generate-request', function() { - if (!this.url && this.url !== '') { + if (this.url == null) { return; } diff --git a/bower_components/iron-ajax/iron-request.html b/bower_components/iron-ajax/iron-request.html index 450137b..a460825 100644 --- a/bower_components/iron-ajax/iron-request.html +++ b/bower_components/iron-ajax/iron-request.html @@ -183,7 +183,7 @@ iron-request can be used to perform XMLHttpRequests. * async By default, all requests are sent asynchronously. To send synchronous requests, * set to true. * body The content for the request body for POST method. - * headers HTTP request headers. + * headers HTTP request headers. All keys must be lower case. * handleAs The response type. Default is 'text'. * withCredentials Whether or not to send credentials on the request. Default is false. * timeout: (Number|undefined) @@ -241,20 +241,28 @@ iron-request can be used to perform XMLHttpRequests. options.async !== false ); - if (options.headers) { - Object.keys(options.headers).forEach(function (requestHeader) { - xhr.setRequestHeader( - requestHeader, - options.headers[requestHeader] - ); - }, this); + var acceptType = { + 'json': 'application/json', + 'text': 'text/plain', + 'html': 'text/html', + 'xml': 'application/xml', + 'arraybuffer': 'application/octet-stream' + }[options.handleAs]; + var headers = options.headers || {}; + if (acceptType && !headers['accept']) { + headers['accept'] = acceptType; } + Object.keys(headers).forEach(function (requestHeader) { + if (/[A-Z]/.test(requestHeader)) { + console.error('Headers must be lower case, got', requestHeader); + } + xhr.setRequestHeader( + requestHeader, + headers[requestHeader] + ); + }, this); - var contentType; - if (options.headers) { - contentType = options.headers['Content-Type']; - } - var body = this._encodeBodyObject(options.body, contentType); + var body = this._encodeBodyObject(options.body, headers['content-type']); // In IE, `xhr.responseType` is an empty string when the response // returns. Hence, caching it as `xhr._responseType`. diff --git a/bower_components/iron-ajax/test/iron-ajax.html b/bower_components/iron-ajax/test/iron-ajax.html index 96f84b1..b05f875 100644 --- a/bower_components/iron-ajax/test/iron-ajax.html +++ b/bower_components/iron-ajax/test/iron-ajax.html @@ -55,6 +55,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN debounce-duration="150"> + + + - + +
@@ -112,6 +118,8 @@ Custom property | Description | Default /** * Use this property instead of `value` for two-way data binding. + * + * @type {string|number|undefined|null} */ bindValue: { observer: '_bindValueChanged', @@ -315,7 +323,8 @@ Custom property | Description | Default while (this.rows > 0 && _tokens.length < this.rows) { _tokens.push(''); } - return _tokens.join('
') + ' '; + // Use   instead   of to allow this element to be used in XHTML. + return _tokens.join('
') + ' '; }, _valueForMirror: function() { diff --git a/bower_components/iron-component-page/.bower.json b/bower_components/iron-component-page/.bower.json index ad7fef7..9e6efda 100644 --- a/bower_components/iron-component-page/.bower.json +++ b/bower_components/iron-component-page/.bower.json @@ -13,7 +13,7 @@ "type": "git", "url": "git://github.com/PolymerElements/iron-component-page.git" }, - "version": "1.0.7", + "version": "1.0.8", "private": true, "license": "http://polymer.github.io/LICENSE.txt", "dependencies": { @@ -34,11 +34,11 @@ "web-component-tester": "*" }, "homepage": "https://github.com/PolymerElements/iron-component-page", - "_release": "1.0.7", + "_release": "1.0.8", "_resolution": { "type": "version", - "tag": "v1.0.7", - "commit": "77a463d00fcf0f00a764dd01fd01a6f21bd40745" + "tag": "v1.0.8", + "commit": "62c6498987e17b5480d8d05ddcaf2fa9ef8525a0" }, "_source": "git://github.com/PolymerElements/iron-component-page.git", "_target": "^1.0.0", diff --git a/bower_components/iron-component-page/bower.json b/bower_components/iron-component-page/bower.json index eed9f61..6978d06 100644 --- a/bower_components/iron-component-page/bower.json +++ b/bower_components/iron-component-page/bower.json @@ -13,7 +13,7 @@ "type": "git", "url": "git://github.com/PolymerElements/iron-component-page.git" }, - "version": "1.0.7", + "version": "1.0.8", "private": true, "license": "http://polymer.github.io/LICENSE.txt", "dependencies": { diff --git a/bower_components/iron-component-page/iron-component-page.css b/bower_components/iron-component-page/iron-component-page.css index 7223690..3d3c51d 100644 --- a/bower_components/iron-component-page/iron-component-page.css +++ b/bower_components/iron-component-page/iron-component-page.css @@ -98,8 +98,9 @@ paper-toolbar a:hover, paper-toolbar a:hover iron-icon, paper-toolbar a.iron-sel } #docs { + max-width: var(--iron-component-page-max-width, 48em); + @apply(--iron-component-page-container); padding: 20px; - max-width: 48em; margin: 0 auto; } diff --git a/bower_components/iron-iconset-svg/.bower.json b/bower_components/iron-iconset-svg/.bower.json index 378f946..139afab 100644 --- a/bower_components/iron-iconset-svg/.bower.json +++ b/bower_components/iron-iconset-svg/.bower.json @@ -1,7 +1,7 @@ { "name": "iron-iconset-svg", "description": "Manages a set of svg icons", - "version": "1.0.7", + "version": "1.0.8", "keywords": [ "web-components", "polymer", @@ -30,11 +30,11 @@ "web-component-tester": "*" }, "homepage": "https://github.com/PolymerElements/iron-iconset-svg", - "_release": "1.0.7", + "_release": "1.0.8", "_resolution": { "type": "version", - "tag": "v1.0.7", - "commit": "e34ed33838b872d38753eefec2e697d8adb8662d" + "tag": "v1.0.8", + "commit": "7f8b0a5800254247cb518356aee983155374f519" }, "_source": "git://github.com/PolymerElements/iron-iconset-svg.git", "_target": "^1.0.0", diff --git a/bower_components/iron-iconset-svg/bower.json b/bower_components/iron-iconset-svg/bower.json index c1b44c5..b30dc68 100644 --- a/bower_components/iron-iconset-svg/bower.json +++ b/bower_components/iron-iconset-svg/bower.json @@ -1,7 +1,7 @@ { "name": "iron-iconset-svg", "description": "Manages a set of svg icons", - "version": "1.0.7", + "version": "1.0.8", "keywords": [ "web-components", "polymer", diff --git a/bower_components/iron-iconset-svg/iron-iconset-svg.html b/bower_components/iron-iconset-svg/iron-iconset-svg.html index 3704d04..da20aee 100644 --- a/bower_components/iron-iconset-svg/iron-iconset-svg.html +++ b/bower_components/iron-iconset-svg/iron-iconset-svg.html @@ -69,6 +69,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN } }, + + attached: function() { + this.style.display = 'none'; + }, /** * Construct an array of all icon names in this iconset. diff --git a/bower_components/iron-iconset-svg/test/iron-iconset-svg.html b/bower_components/iron-iconset-svg/test/iron-iconset-svg.html index b80a550..aa7bae9 100644 --- a/bower_components/iron-iconset-svg/test/iron-iconset-svg.html +++ b/bower_components/iron-iconset-svg/test/iron-iconset-svg.html @@ -78,6 +78,12 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN expect(meta.byKey('foo')).to.be.equal(iconset); }); + test('it does not have a size', function () { + var rect = iconset.getBoundingClientRect(); + expect(rect.width).to.be.equal(0); + expect(rect.height).to.be.equal(0); + }); + test('it fires an iron-iconset-added event on the window', function() { return loadedPromise; }); @@ -93,6 +99,12 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN div = elements[1]; }); + test('it does not have a size', function () { + var rect = iconset.getBoundingClientRect(); + expect(rect.width).to.be.equal(0); + expect(rect.height).to.be.equal(0); + }); + test('appends a child to the target element', function () { expect(div.firstElementChild).to.not.be.ok; iconset.applyIcon(div, 'circle'); diff --git a/bower_components/iron-list/.bower.json b/bower_components/iron-list/.bower.json index d2a64e7..c5159e5 100644 --- a/bower_components/iron-list/.bower.json +++ b/bower_components/iron-list/.bower.json @@ -7,7 +7,7 @@ "list", "virtual-list" ], - "version": "1.1.4", + "version": "1.1.5", "homepage": "https://github.com/PolymerElements/iron-list", "authors": [ "The Polymer Authors" @@ -37,11 +37,11 @@ "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.2", "web-component-tester": "*" }, - "_release": "1.1.4", + "_release": "1.1.5", "_resolution": { "type": "version", - "tag": "v1.1.4", - "commit": "7f1b6c05d96c2655ad138e99f3ee44d074f8df7b" + "tag": "v1.1.5", + "commit": "c6bf7caf1745cc3bed0769d41ac405476ef981b8" }, "_source": "git://github.com/PolymerElements/iron-list.git", "_target": "^1.0.0", diff --git a/bower_components/iron-list/bower.json b/bower_components/iron-list/bower.json index 772ab59..3684260 100644 --- a/bower_components/iron-list/bower.json +++ b/bower_components/iron-list/bower.json @@ -7,7 +7,7 @@ "list", "virtual-list" ], - "version": "1.1.4", + "version": "1.1.5", "homepage": "https://github.com/PolymerElements/iron-list", "authors": [ "The Polymer Authors" diff --git a/bower_components/iron-list/demo/index.html b/bower_components/iron-list/demo/index.html index d03ee9d..b5f7a13 100644 --- a/bower_components/iron-list/demo/index.html +++ b/bower_components/iron-list/demo/index.html @@ -117,7 +117,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN