From 610a9be5bcd65d832fbe5065cdde1f9435074296 Mon Sep 17 00:00:00 2001 From: michaelpg Date: Fri, 26 Jun 2015 12:54:50 -0700 Subject: Fix Polymer licensing issues NOPRESUBMIT=true (long lines) R=dzhioev@chromium.org Review URL: https://codereview.chromium.org/1214573003 Cr-Commit-Position: refs/heads/master@{#336446} --- .../v1_0/components-chromium/iron-ajax/.bower.json | 47 --- .../v1_0/components-chromium/iron-ajax/.gitignore | 1 - .../v1_0/components-chromium/iron-ajax/README.md | 23 -- .../v1_0/components-chromium/iron-ajax/bower.json | 38 -- .../v1_0/components-chromium/iron-ajax/index.html | 26 -- .../iron-ajax/iron-ajax-extracted.js | 399 ------------------- .../components-chromium/iron-ajax/iron-ajax.html | 35 -- .../iron-ajax/iron-request-extracted.js | 251 ------------ .../iron-ajax/iron-request.html | 18 - .../v1_0/components-chromium/iron-form/.bower.json | 47 --- .../v1_0/components-chromium/iron-form/.gitignore | 1 - .../v1_0/components-chromium/iron-form/README.md | 2 - .../v1_0/components-chromium/iron-form/bower.json | 43 -- .../v1_0/components-chromium/iron-form/index.html | 30 -- .../iron-form/iron-form-extracted.js | 219 ----------- .../components-chromium/iron-form/iron-form.html | 12 - .../promise-polyfill/.bower.json | 40 -- .../promise-polyfill/Gruntfile.js | 40 -- .../components-chromium/promise-polyfill/LICENSE | 20 - .../promise-polyfill/Promise-Statics.js | 37 -- .../promise-polyfill/Promise.js | 128 ------ .../promise-polyfill/Promise.min.js | 3 - .../components-chromium/promise-polyfill/README.md | 13 - .../promise-polyfill/bower.json | 31 -- .../promise-polyfill/package.json | 35 -- .../promise-polyfill-lite-extracted.js | 4 - .../promise-polyfill/promise-polyfill-lite.html | 3 - .../promise-polyfill/promise-polyfill.html | 2 - .../web-animations-js/.bower.json | 41 -- .../components-chromium/web-animations-js/COPYING | 202 ---------- .../web-animations-js/History.md | 108 ----- .../web-animations-js/README.md | 161 -------- .../web-animations-js/bower.json | 31 -- .../web-animations-next-lite.min.js | 17 - .../web-animations-next-lite.min.js.map | 1 - .../web-animations-js/web-animations-next.min.js | 17 - .../web-animations-next.min.js.map | 1 - .../web-animations-js/web-animations.html | 50 --- .../web-animations-js/web-animations.min.js | 17 - .../web-animations-js/web-animations.min.js.map | 1 - .../polymer/v1_0/components/iron-ajax/.bower.json | 47 --- .../polymer/v1_0/components/iron-ajax/.gitignore | 1 - .../polymer/v1_0/components/iron-ajax/README.md | 23 -- .../polymer/v1_0/components/iron-ajax/bower.json | 38 -- .../polymer/v1_0/components/iron-ajax/index.html | 26 -- .../v1_0/components/iron-ajax/iron-ajax.html | 436 --------------------- .../v1_0/components/iron-ajax/iron-request.html | 272 ------------- .../polymer/v1_0/components/iron-form/.bower.json | 47 --- .../polymer/v1_0/components/iron-form/.gitignore | 1 - .../polymer/v1_0/components/iron-form/README.md | 2 - .../polymer/v1_0/components/iron-form/bower.json | 43 -- .../polymer/v1_0/components/iron-form/index.html | 30 -- .../v1_0/components/iron-form/iron-form.html | 233 ----------- .../v1_0/components/promise-polyfill/.bower.json | 40 -- .../v1_0/components/promise-polyfill/Gruntfile.js | 40 -- .../v1_0/components/promise-polyfill/LICENSE | 20 - .../components/promise-polyfill/Promise-Statics.js | 37 -- .../v1_0/components/promise-polyfill/Promise.js | 128 ------ .../components/promise-polyfill/Promise.min.js | 3 - .../v1_0/components/promise-polyfill/README.md | 13 - .../v1_0/components/promise-polyfill/bower.json | 31 -- .../v1_0/components/promise-polyfill/package.json | 35 -- .../promise-polyfill/promise-polyfill-lite.html | 7 - .../promise-polyfill/promise-polyfill.html | 2 - .../v1_0/components/web-animations-js/.bower.json | 41 -- .../v1_0/components/web-animations-js/COPYING | 202 ---------- .../v1_0/components/web-animations-js/History.md | 108 ----- .../v1_0/components/web-animations-js/README.md | 161 -------- .../v1_0/components/web-animations-js/bower.json | 31 -- .../web-animations-next-lite.min.js | 17 - .../web-animations-next-lite.min.js.map | 1 - .../web-animations-js/web-animations-next.min.js | 17 - .../web-animations-next.min.js.map | 1 - .../web-animations-js/web-animations.html | 50 --- .../web-animations-js/web-animations.min.js | 17 - .../web-animations-js/web-animations.min.js.map | 1 - third_party/polymer/v1_0/reproduce.sh | 15 +- 77 files changed, 12 insertions(+), 4400 deletions(-) delete mode 100644 third_party/polymer/v1_0/components-chromium/iron-ajax/.bower.json delete mode 100644 third_party/polymer/v1_0/components-chromium/iron-ajax/.gitignore delete mode 100644 third_party/polymer/v1_0/components-chromium/iron-ajax/README.md delete mode 100644 third_party/polymer/v1_0/components-chromium/iron-ajax/bower.json delete mode 100644 third_party/polymer/v1_0/components-chromium/iron-ajax/index.html delete mode 100644 third_party/polymer/v1_0/components-chromium/iron-ajax/iron-ajax-extracted.js delete mode 100644 third_party/polymer/v1_0/components-chromium/iron-ajax/iron-ajax.html delete mode 100644 third_party/polymer/v1_0/components-chromium/iron-ajax/iron-request-extracted.js delete mode 100644 third_party/polymer/v1_0/components-chromium/iron-ajax/iron-request.html delete mode 100644 third_party/polymer/v1_0/components-chromium/iron-form/.bower.json delete mode 100644 third_party/polymer/v1_0/components-chromium/iron-form/.gitignore delete mode 100644 third_party/polymer/v1_0/components-chromium/iron-form/README.md delete mode 100644 third_party/polymer/v1_0/components-chromium/iron-form/bower.json delete mode 100644 third_party/polymer/v1_0/components-chromium/iron-form/index.html delete mode 100644 third_party/polymer/v1_0/components-chromium/iron-form/iron-form-extracted.js delete mode 100644 third_party/polymer/v1_0/components-chromium/iron-form/iron-form.html delete mode 100644 third_party/polymer/v1_0/components-chromium/promise-polyfill/.bower.json delete mode 100644 third_party/polymer/v1_0/components-chromium/promise-polyfill/Gruntfile.js delete mode 100644 third_party/polymer/v1_0/components-chromium/promise-polyfill/LICENSE delete mode 100644 third_party/polymer/v1_0/components-chromium/promise-polyfill/Promise-Statics.js delete mode 100644 third_party/polymer/v1_0/components-chromium/promise-polyfill/Promise.js delete mode 100644 third_party/polymer/v1_0/components-chromium/promise-polyfill/Promise.min.js delete mode 100644 third_party/polymer/v1_0/components-chromium/promise-polyfill/README.md delete mode 100644 third_party/polymer/v1_0/components-chromium/promise-polyfill/bower.json delete mode 100644 third_party/polymer/v1_0/components-chromium/promise-polyfill/package.json delete mode 100644 third_party/polymer/v1_0/components-chromium/promise-polyfill/promise-polyfill-lite-extracted.js delete mode 100644 third_party/polymer/v1_0/components-chromium/promise-polyfill/promise-polyfill-lite.html delete mode 100644 third_party/polymer/v1_0/components-chromium/promise-polyfill/promise-polyfill.html delete mode 100644 third_party/polymer/v1_0/components-chromium/web-animations-js/.bower.json delete mode 100644 third_party/polymer/v1_0/components-chromium/web-animations-js/COPYING delete mode 100644 third_party/polymer/v1_0/components-chromium/web-animations-js/History.md delete mode 100644 third_party/polymer/v1_0/components-chromium/web-animations-js/README.md delete mode 100644 third_party/polymer/v1_0/components-chromium/web-animations-js/bower.json delete mode 100644 third_party/polymer/v1_0/components-chromium/web-animations-js/web-animations-next-lite.min.js delete mode 100644 third_party/polymer/v1_0/components-chromium/web-animations-js/web-animations-next-lite.min.js.map delete mode 100644 third_party/polymer/v1_0/components-chromium/web-animations-js/web-animations-next.min.js delete mode 100644 third_party/polymer/v1_0/components-chromium/web-animations-js/web-animations-next.min.js.map delete mode 100644 third_party/polymer/v1_0/components-chromium/web-animations-js/web-animations.html delete mode 100644 third_party/polymer/v1_0/components-chromium/web-animations-js/web-animations.min.js delete mode 100644 third_party/polymer/v1_0/components-chromium/web-animations-js/web-animations.min.js.map delete mode 100644 third_party/polymer/v1_0/components/iron-ajax/.bower.json delete mode 100644 third_party/polymer/v1_0/components/iron-ajax/.gitignore delete mode 100644 third_party/polymer/v1_0/components/iron-ajax/README.md delete mode 100644 third_party/polymer/v1_0/components/iron-ajax/bower.json delete mode 100644 third_party/polymer/v1_0/components/iron-ajax/index.html delete mode 100644 third_party/polymer/v1_0/components/iron-ajax/iron-ajax.html delete mode 100644 third_party/polymer/v1_0/components/iron-ajax/iron-request.html delete mode 100644 third_party/polymer/v1_0/components/iron-form/.bower.json delete mode 100644 third_party/polymer/v1_0/components/iron-form/.gitignore delete mode 100644 third_party/polymer/v1_0/components/iron-form/README.md delete mode 100644 third_party/polymer/v1_0/components/iron-form/bower.json delete mode 100644 third_party/polymer/v1_0/components/iron-form/index.html delete mode 100644 third_party/polymer/v1_0/components/iron-form/iron-form.html delete mode 100644 third_party/polymer/v1_0/components/promise-polyfill/.bower.json delete mode 100644 third_party/polymer/v1_0/components/promise-polyfill/Gruntfile.js delete mode 100644 third_party/polymer/v1_0/components/promise-polyfill/LICENSE delete mode 100644 third_party/polymer/v1_0/components/promise-polyfill/Promise-Statics.js delete mode 100644 third_party/polymer/v1_0/components/promise-polyfill/Promise.js delete mode 100644 third_party/polymer/v1_0/components/promise-polyfill/Promise.min.js delete mode 100644 third_party/polymer/v1_0/components/promise-polyfill/README.md delete mode 100644 third_party/polymer/v1_0/components/promise-polyfill/bower.json delete mode 100644 third_party/polymer/v1_0/components/promise-polyfill/package.json delete mode 100644 third_party/polymer/v1_0/components/promise-polyfill/promise-polyfill-lite.html delete mode 100644 third_party/polymer/v1_0/components/promise-polyfill/promise-polyfill.html delete mode 100644 third_party/polymer/v1_0/components/web-animations-js/.bower.json delete mode 100644 third_party/polymer/v1_0/components/web-animations-js/COPYING delete mode 100644 third_party/polymer/v1_0/components/web-animations-js/History.md delete mode 100644 third_party/polymer/v1_0/components/web-animations-js/README.md delete mode 100644 third_party/polymer/v1_0/components/web-animations-js/bower.json delete mode 100644 third_party/polymer/v1_0/components/web-animations-js/web-animations-next-lite.min.js delete mode 100644 third_party/polymer/v1_0/components/web-animations-js/web-animations-next-lite.min.js.map delete mode 100644 third_party/polymer/v1_0/components/web-animations-js/web-animations-next.min.js delete mode 100644 third_party/polymer/v1_0/components/web-animations-js/web-animations-next.min.js.map delete mode 100644 third_party/polymer/v1_0/components/web-animations-js/web-animations.html delete mode 100644 third_party/polymer/v1_0/components/web-animations-js/web-animations.min.js delete mode 100644 third_party/polymer/v1_0/components/web-animations-js/web-animations.min.js.map (limited to 'third_party/polymer/v1_0') diff --git a/third_party/polymer/v1_0/components-chromium/iron-ajax/.bower.json b/third_party/polymer/v1_0/components-chromium/iron-ajax/.bower.json deleted file mode 100644 index 58b4721..0000000 --- a/third_party/polymer/v1_0/components-chromium/iron-ajax/.bower.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "name": "iron-ajax", - "version": "1.0.2", - "description": "Makes it easy to make ajax calls and parse the response", - "private": true, - "authors": [ - "The Polymer Authors" - ], - "keywords": [ - "web-components", - "web-component", - "polymer" - ], - "main": [ - "iron-ajax.html", - "iron-request.html" - ], - "repository": { - "type": "git", - "url": "git://github.com/PolymerElements/iron-ajax.git" - }, - "license": "http://polymer.github.io/LICENSE.txt", - "homepage": "https://github.com/PolymerElements/iron-ajax", - "ignore": [], - "dependencies": { - "promise-polyfill": "polymerlabs/promise-polyfill#^1.0.0", - "polymer": "Polymer/polymer#^1.0.0" - }, - "devDependencies": { - "iron-component-page": "polymerelements/iron-component-page#^1.0.0", - "iron-flex-layout": "polymerelements/iron-flex-layout#^1.0.0", - "iron-image": "polymerelements/iron-image#^1.0.0", - "paper-styles": "polymerelements/paper-styles#^1.0.0", - "test-fixture": "polymerelements/test-fixture#^1.0.0", - "web-component-tester": "*", - "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" - }, - "_release": "1.0.2", - "_resolution": { - "type": "version", - "tag": "v1.0.2", - "commit": "6ed75a4425b709e6825cd4970e800b053ff8ffd8" - }, - "_source": "git://github.com/PolymerElements/iron-ajax.git", - "_target": "^1.0.0", - "_originalSource": "PolymerElements/iron-ajax" -} \ No newline at end of file diff --git a/third_party/polymer/v1_0/components-chromium/iron-ajax/.gitignore b/third_party/polymer/v1_0/components-chromium/iron-ajax/.gitignore deleted file mode 100644 index 8d4ae25..0000000 --- a/third_party/polymer/v1_0/components-chromium/iron-ajax/.gitignore +++ /dev/null @@ -1 +0,0 @@ -bower_components diff --git a/third_party/polymer/v1_0/components-chromium/iron-ajax/README.md b/third_party/polymer/v1_0/components-chromium/iron-ajax/README.md deleted file mode 100644 index 6d9f223..0000000 --- a/third_party/polymer/v1_0/components-chromium/iron-ajax/README.md +++ /dev/null @@ -1,23 +0,0 @@ -iron-ajax -========= - -The `iron-ajax` element exposes network request functionality. - -```html - -``` - -With `auto` set to `true`, the element performs a request whenever -its `url`, `params` or `body` properties are changed. Automatically generated -requests will be debounced in the case that multiple attributes are changed -sequentially. - -Note: The `params` attribute must be double quoted JSON. - -You can trigger a request explicitly by calling `generateRequest` on the -element. diff --git a/third_party/polymer/v1_0/components-chromium/iron-ajax/bower.json b/third_party/polymer/v1_0/components-chromium/iron-ajax/bower.json deleted file mode 100644 index 46ae576..0000000 --- a/third_party/polymer/v1_0/components-chromium/iron-ajax/bower.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "name": "iron-ajax", - "version": "1.0.2", - "description": "Makes it easy to make ajax calls and parse the response", - "private": true, - "authors": [ - "The Polymer Authors" - ], - "keywords": [ - "web-components", - "web-component", - "polymer" - ], - "main": [ - "iron-ajax.html", - "iron-request.html" - ], - "repository": { - "type": "git", - "url": "git://github.com/PolymerElements/iron-ajax.git" - }, - "license": "http://polymer.github.io/LICENSE.txt", - "homepage": "https://github.com/PolymerElements/iron-ajax", - "ignore": [], - "dependencies": { - "promise-polyfill": "polymerlabs/promise-polyfill#^1.0.0", - "polymer": "Polymer/polymer#^1.0.0" - }, - "devDependencies": { - "iron-component-page": "polymerelements/iron-component-page#^1.0.0", - "iron-flex-layout": "polymerelements/iron-flex-layout#^1.0.0", - "iron-image": "polymerelements/iron-image#^1.0.0", - "paper-styles": "polymerelements/paper-styles#^1.0.0", - "test-fixture": "polymerelements/test-fixture#^1.0.0", - "web-component-tester": "*", - "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" - } -} diff --git a/third_party/polymer/v1_0/components-chromium/iron-ajax/index.html b/third_party/polymer/v1_0/components-chromium/iron-ajax/index.html deleted file mode 100644 index 0341b16..0000000 --- a/third_party/polymer/v1_0/components-chromium/iron-ajax/index.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - iron-ajax - - - - - - - - - - - - - diff --git a/third_party/polymer/v1_0/components-chromium/iron-ajax/iron-ajax-extracted.js b/third_party/polymer/v1_0/components-chromium/iron-ajax/iron-ajax-extracted.js deleted file mode 100644 index ab1ec17..0000000 --- a/third_party/polymer/v1_0/components-chromium/iron-ajax/iron-ajax-extracted.js +++ /dev/null @@ -1,399 +0,0 @@ - - - Polymer({ - - is: 'iron-ajax', - - /** - * Fired when a request is sent. - * - * @event request - */ - - /** - * Fired when a response is received. - * - * @event response - */ - - /** - * Fired when an error is received. - * - * @event error - */ - - properties: { - /** - * The URL target of the request. - */ - url: { - type: String, - value: '' - }, - - /** - * An object that contains query parameters to be appended to the - * specified `url` when generating a request. If you wish to set the body - * content when making a POST request, you should use the `body` property - * instead. - */ - params: { - type: Object, - value: function() { - return {}; - } - }, - - /** - * The HTTP method to use such as 'GET', 'POST', 'PUT', or 'DELETE'. - * Default is 'GET'. - */ - method: { - type: String, - value: 'GET' - }, - - /** - * HTTP request headers to send. - * - * Example: - * - * - * - * Note: setting a `Content-Type` header here will override the value - * specified by the `contentType` property of this element. - */ - headers: { - type: Object, - value: function() { - return {}; - } - }, - - /** - * Content type to use when sending data. If the `contentType` property - * is set and a `Content-Type` header is specified in the `headers` - * property, the `headers` property value will take precedence. - */ - contentType: { - type: String, - value: 'application/x-www-form-urlencoded' - }, - - /** - * Optional raw body content to send when method === "POST". - * - * Example: - * - * - * - */ - body: { - type: String, - value: '' - }, - - /** - * Toggle whether XHR is synchronous or asynchronous. Don't change this - * to true unless You Know What You Are Doing™. - */ - sync: { - type: Boolean, - value: false - }, - - /** - * Specifies what data to store in the `response` property, and - * to deliver as `event.response` in `response` events. - * - * One of: - * - * `text`: uses `XHR.responseText`. - * - * `xml`: uses `XHR.responseXML`. - * - * `json`: uses `XHR.responseText` parsed as JSON. - * - * `arraybuffer`: uses `XHR.response`. - * - * `blob`: uses `XHR.response`. - * - * `document`: uses `XHR.response`. - */ - handleAs: { - type: String, - value: 'json' - }, - - /** - * Set the withCredentials flag on the request. - */ - withCredentials: { - type: Boolean, - value: false - }, - - /** - * If true, automatically performs an Ajax request when either `url` or - * `params` changes. - */ - auto: { - type: Boolean, - value: false - }, - - /** - * If true, error messages will automatically be logged to the console. - */ - verbose: { - type: Boolean, - value: false - }, - - /** - * Will be set to true if there is at least one in-flight request - * associated with this iron-ajax element. - */ - loading: { - type: Boolean, - notify: true, - readOnly: true - }, - - /** - * Will be set to the most recent request made by this iron-ajax element. - */ - lastRequest: { - type: Object, - notify: true, - readOnly: true - }, - - /** - * Will be set to the most recent response received by a request - * that originated from this iron-ajax element. The type of the response - * is determined by the value of `handleAs` at the time that the request - * was generated. - */ - lastResponse: { - type: Object, - notify: true, - readOnly: true - }, - - /** - * Will be set to the most recent error that resulted from a request - * that originated from this iron-ajax element. - */ - lastError: { - type: Object, - notify: true, - readOnly: true - }, - - /** - * An Array of all in-flight requests originating from this iron-ajax - * element. - */ - activeRequests: { - type: Array, - notify: true, - readOnly: true, - value: function() { - return []; - } - }, - - /** - * Length of time in milliseconds to debounce multiple requests. - */ - debounceDuration: { - type: Number, - value: 0, - notify: true - }, - - _boundHandleResponse: { - type: Function, - value: function() { - return this._handleResponse.bind(this); - } - } - }, - - observers: [ - '_requestOptionsChanged(url, method, params, headers,' + - 'contentType, body, sync, handleAs, withCredentials, auto)' - ], - - /** - * The query string that should be appended to the `url`, serialized from - * the current value of `params`. - * - * @return {string} - */ - get queryString () { - var queryParts = []; - var param; - var value; - - for (param in this.params) { - value = this.params[param]; - param = window.encodeURIComponent(param); - - if (value !== null) { - param += '=' + window.encodeURIComponent(value); - } - - queryParts.push(param); - } - - return queryParts.join('&'); - }, - - /** - * The `url` with query string (if `params` are specified), suitable for - * providing to an `iron-request` instance. - * - * @return {string} - */ - get requestUrl() { - var queryString = this.queryString; - - if (queryString) { - return this.url + '?' + queryString; - } - - return this.url; - }, - - /** - * An object that maps header names to header values, first applying the - * the value of `Content-Type` and then overlaying the headers specified - * in the `headers` property. - * - * @return {Object} - */ - get requestHeaders() { - var headers = { - 'Content-Type': this.contentType - }; - var header; - - if (this.headers instanceof Object) { - for (header in this.headers) { - headers[header] = this.headers[header].toString(); - } - } - - return headers; - }, - - /** - * Request options suitable for generating an `iron-request` instance based - * on the current state of the `iron-ajax` instance's properties. - * - * @return {{ - * url: string, - * method: (string|undefined), - * async: (boolean|undefined), - * body: (ArrayBuffer|ArrayBufferView|Blob|Document|FormData|null|string|undefined), - * headers: (Object|undefined), - * handleAs: (string|undefined), - * withCredentials: (boolean|undefined)}} - */ - toRequestOptions: function() { - return { - url: this.requestUrl, - method: this.method, - headers: this.requestHeaders, - body: this.body, - async: !this.sync, - handleAs: this.handleAs, - withCredentials: this.withCredentials - }; - }, - - /** - * Performs an AJAX request to the specified URL. - * - * @return {!IronRequestElement} - */ - generateRequest: function() { - var request = /** @type {!IronRequestElement} */ (document.createElement('iron-request')); - var requestOptions = this.toRequestOptions(); - - this.activeRequests.push(request); - - request.completes.then( - this._boundHandleResponse - ).catch( - this._handleError.bind(this, request) - ).then( - this._discardRequest.bind(this, request) - ); - - request.send(requestOptions); - - this._setLastRequest(request); - this._setLoading(true); - - this.fire('request', { - request: request, - options: requestOptions - }); - - return request; - }, - - _handleResponse: function(request) { - this._setLastResponse(request.response); - this.fire('response', request); - }, - - _handleError: function(request, error) { - if (this.verbose) { - console.error(error); - } - - this._setLastError({ - request: request, - error: error - }); - this.fire('error', { - request: request, - error: error - }); - }, - - _discardRequest: function(request) { - var requestIndex = this.activeRequests.indexOf(request); - - if (requestIndex > -1) { - this.activeRequests.splice(requestIndex, 1); - } - - if (this.activeRequests.length === 0) { - this._setLoading(false); - } - }, - - _requestOptionsChanged: function() { - this.debounce('generate-request', function() { - if (!this.url && this.url !== '') { - return; - } - - if (this.auto) { - this.generateRequest(); - } - }, this.debounceDuration); - }, - - }); diff --git a/third_party/polymer/v1_0/components-chromium/iron-ajax/iron-ajax.html b/third_party/polymer/v1_0/components-chromium/iron-ajax/iron-ajax.html deleted file mode 100644 index a620ef1..0000000 --- a/third_party/polymer/v1_0/components-chromium/iron-ajax/iron-ajax.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/third_party/polymer/v1_0/components-chromium/iron-ajax/iron-request-extracted.js b/third_party/polymer/v1_0/components-chromium/iron-ajax/iron-request-extracted.js deleted file mode 100644 index 5458b81..0000000 --- a/third_party/polymer/v1_0/components-chromium/iron-ajax/iron-request-extracted.js +++ /dev/null @@ -1,251 +0,0 @@ - - Polymer({ - is: 'iron-request', - - properties: { - - /** - * A reference to the XMLHttpRequest instance used to generate the - * network request. - * - * @attribute xhr - * @type XMLHttpRequest - * @default `new XMLHttpRequest` - */ - xhr: { - type: Object, - notify: true, - readOnly: true, - value: function() { - return new XMLHttpRequest(); - } - }, - - /** - * A reference to the parsed response body, if the `xhr` has completely - * resolved. - * - * @attribute response - * @type {*} - * @default null - */ - response: { - type: Object, - notify: true, - readOnly: true, - value: function() { - return null; - } - }, - - /** - * A promise that resolves when the `xhr` response comes back, or rejects - * if there is an error before the `xhr` completes. - * - * @attribute completes - * @type Promise - * @default `new Promise` - */ - completes: { - type: Object, - readOnly: true, - notify: true, - value: function() { - return new Promise(function (resolve, reject) { - this.resolveCompletes = resolve; - this.rejectCompletes = reject; - }.bind(this)); - } - }, - - /** - * An object that contains progress information emitted by the XHR if - * available. - * - * @attribute progress - * @type Object - * @default {} - */ - progress: { - type: Object, - notify: true, - readOnly: true, - value: function() { - return {}; - } - }, - - /** - * Aborted will be true if an abort of the request is attempted. - * - * @attribute aborted - * @type boolean - * @default false - */ - aborted: { - type: Boolean, - notify: true, - readOnly: true, - value: false, - } - }, - - /** - * Succeeded is true if the request succeeded. The request succeeded if the - * status code is greater-than-or-equal-to 200, and less-than 300. Also, - * the status code 0 is accepted as a success even though the outcome may - * be ambiguous. - * - * @return {boolean} - */ - get succeeded() { - var status = this.xhr.status || 0; - - // Note: if we are using the file:// protocol, the status code will be 0 - // for all outcomes (successful or otherwise). - return status === 0 || - (status >= 200 && status < 300); - }, - - /** - * Sends an HTTP request to the server and returns the XHR object. - * - * @param {{ - * url: string, - * method: (string|undefined), - * async: (boolean|undefined), - * body: (ArrayBuffer|ArrayBufferView|Blob|Document|FormData|null|string|undefined), - * headers: (Object|undefined), - * handleAs: (string|undefined), - * withCredentials: (boolean|undefined)}} options - - * url The url to which the request is sent. - * method The HTTP method to use, default is GET. - * 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. - * handleAs The response type. Default is 'text'. - * withCredentials Whether or not to send credentials on the request. Default is false. - * @return {Promise} - */ - send: function (options) { - var xhr = this.xhr; - - if (xhr.readyState > 0) { - return null; - } - - xhr.addEventListener('readystatechange', function () { - if (xhr.readyState === 4 && !this.aborted) { - - if (!this.succeeded) { - this.rejectCompletes(new Error('The request failed with status code: ' + this.xhr.status)); - return; - } - - this._setResponse(this.parseResponse()); - this.resolveCompletes(this); - } - }.bind(this)); - - xhr.addEventListener('progress', function (progress) { - this._setProgress({ - lengthComputable: progress.lengthComputable, - loaded: progress.loaded, - total: progress.total - }); - }.bind(this)) - - xhr.addEventListener('error', function (error) { - this.rejectCompletes(error); - }.bind(this)); - - xhr.addEventListener('abort', function () { - this.rejectCompletes(new Error('Request aborted.')); - }.bind(this)); - - xhr.open( - options.method || 'GET', - options.url, - options.async !== false - ); - - if (options.headers) { - Object.keys(options.headers).forEach(function (requestHeader) { - xhr.setRequestHeader( - requestHeader, - options.headers[requestHeader] - ); - }, this); - } - - // In IE, `xhr.responseType` is an empty string when the response - // returns. Hence, caching it as `xhr._responseType`. - xhr.responseType = xhr._responseType = (options.handleAs || 'text'); - xhr.withCredentials = !!options.withCredentials; - - xhr.send(options.body); - - return this.completes; - }, - - /** - * Attempts to parse the response body of the XHR. If parsing succeeds, - * the value returned will be deserialized based on the `responseType` - * set on the XHR. - * - * @return {*} The parsed response, - * or undefined if there was an empty response or parsing failed. - */ - parseResponse: function () { - var xhr = this.xhr; - var responseType = this.xhr.responseType || - this.xhr._responseType; - // If we don't have a natural `xhr.responseType`, we prefer parsing - // `xhr.responseText` over returning `xhr.response`.. - var preferResponseText = !this.xhr.responseType; - - try { - switch (responseType) { - case 'json': - // If xhr.response is undefined, responseType `json` may - // not be supported. - if (preferResponseText || xhr.response === undefined) { - // If accessing `xhr.responseText` throws, responseType `json` - // is supported and the result is rightly `undefined`. - try { - xhr.responseText; - } catch (e) { - return xhr.response; - } - - // Otherwise, attempt to parse `xhr.responseText` as JSON. - if (xhr.responseText) { - return JSON.parse(xhr.responseText); - } - } - - return xhr.response; - case 'xml': - return xhr.responseXML; - case 'blob': - case 'document': - case 'arraybuffer': - return xhr.response; - case 'text': - default: - return xhr.responseText; - } - } catch (e) { - this.rejectCompletes(new Error('Could not parse response. ' + e.message)); - } - }, - - /** - * Aborts the request. - */ - abort: function () { - this._setAborted(true); - this.xhr.abort(); - } - }); diff --git a/third_party/polymer/v1_0/components-chromium/iron-ajax/iron-request.html b/third_party/polymer/v1_0/components-chromium/iron-ajax/iron-request.html deleted file mode 100644 index d03e991f..0000000 --- a/third_party/polymer/v1_0/components-chromium/iron-ajax/iron-request.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - \ No newline at end of file diff --git a/third_party/polymer/v1_0/components-chromium/iron-form/.bower.json b/third_party/polymer/v1_0/components-chromium/iron-form/.bower.json deleted file mode 100644 index f299181..0000000 --- a/third_party/polymer/v1_0/components-chromium/iron-form/.bower.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "name": "iron-form", - "version": "1.0.2", - "description": "Makes it easier to manage forms", - "keywords": [ - "web-components", - "web-component", - "polymer" - ], - "authors": [ - "The Polymer Authors" - ], - "main": [ - "iron-form.html" - ], - "private": true, - "repository": { - "type": "git", - "url": "git://github.com/PolymerElements/iron-form.git" - }, - "license": "http://polymer.github.io/LICENSE.txt", - "homepage": "https://github.com/PolymerElements/iron-form", - "ignore": [], - "dependencies": { - "polymer": "Polymer/polymer#^1.0.0", - "iron-ajax": "PolymerElements/iron-ajax#^1.0.0" - }, - "devDependencies": { - "iron-component-page": "PolymerElements/iron-component-page#^1.0.0", - "iron-form-element-behavior": "PolymerElements/iron-form-element-behavior#^1.0.0", - "test-fixture": "PolymerElements/test-fixture#^1.0.0", - "web-component-tester": "*", - "webcomponentsjs": "^0.7.0", - "paper-input": "PolymerElements/paper-input#^1.0.0", - "paper-button": "PolymerElements/paper-button#^1.0.0", - "paper-styles": "PolymerElements/paper-styles#^1.0.0" - }, - "_release": "1.0.2", - "_resolution": { - "type": "version", - "tag": "v1.0.2", - "commit": "e84269ef9491bf06ac88b9e254ce99e8c1ebd8be" - }, - "_source": "git://github.com/PolymerElements/iron-form.git", - "_target": "^1.0.0", - "_originalSource": "PolymerElements/iron-form" -} \ No newline at end of file diff --git a/third_party/polymer/v1_0/components-chromium/iron-form/.gitignore b/third_party/polymer/v1_0/components-chromium/iron-form/.gitignore deleted file mode 100644 index 8d4ae25..0000000 --- a/third_party/polymer/v1_0/components-chromium/iron-form/.gitignore +++ /dev/null @@ -1 +0,0 @@ -bower_components diff --git a/third_party/polymer/v1_0/components-chromium/iron-form/README.md b/third_party/polymer/v1_0/components-chromium/iron-form/README.md deleted file mode 100644 index 424b29f..0000000 --- a/third_party/polymer/v1_0/components-chromium/iron-form/README.md +++ /dev/null @@ -1,2 +0,0 @@ -# iron-form -Custom form element diff --git a/third_party/polymer/v1_0/components-chromium/iron-form/bower.json b/third_party/polymer/v1_0/components-chromium/iron-form/bower.json deleted file mode 100644 index da25de5..0000000 --- a/third_party/polymer/v1_0/components-chromium/iron-form/bower.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "name": "iron-form", - "version": "1.0.2", - "description": "Makes it easier to manage forms", - "keywords": [ - "web-components", - "polymer", - "form" - ], - "authors": [ - "The Polymer Authors" - ], - "keywords": [ - "web-components", - "web-component", - "polymer" - ], - "main": [ - "iron-form.html" - ], - "private": true, - "repository": { - "type": "git", - "url": "git://github.com/PolymerElements/iron-form.git" - }, - "license": "http://polymer.github.io/LICENSE.txt", - "homepage": "https://github.com/PolymerElements/iron-form", - "ignore": [], - "dependencies": { - "polymer": "Polymer/polymer#^1.0.0", - "iron-ajax": "PolymerElements/iron-ajax#^1.0.0" - }, - "devDependencies": { - "iron-component-page": "PolymerElements/iron-component-page#^1.0.0", - "iron-form-element-behavior": "PolymerElements/iron-form-element-behavior#^1.0.0", - "test-fixture": "PolymerElements/test-fixture#^1.0.0", - "web-component-tester": "*", - "webcomponentsjs": "^0.7.0", - "paper-input": "PolymerElements/paper-input#^1.0.0", - "paper-button": "PolymerElements/paper-button#^1.0.0", - "paper-styles": "PolymerElements/paper-styles#^1.0.0" - } -} diff --git a/third_party/polymer/v1_0/components-chromium/iron-form/index.html b/third_party/polymer/v1_0/components-chromium/iron-form/index.html deleted file mode 100644 index acd7140..0000000 --- a/third_party/polymer/v1_0/components-chromium/iron-form/index.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - iron-form - - - - - - - - - - - - - diff --git a/third_party/polymer/v1_0/components-chromium/iron-form/iron-form-extracted.js b/third_party/polymer/v1_0/components-chromium/iron-form/iron-form-extracted.js deleted file mode 100644 index 58c9736..0000000 --- a/third_party/polymer/v1_0/components-chromium/iron-form/iron-form-extracted.js +++ /dev/null @@ -1,219 +0,0 @@ - -/* -``` is an HTML `
` element that can validate and submit any custom -elements that implement `Polymer.IronFormElementBehavior`, as well as any -native HTML elements. - -It supports both `get` and `post` methods, and uses an `iron-ajax` element to -submit the form data to the action URL. - - Example: - - - - - ... -
- -By default, a native `