Commit 73bcce880ee4047fd34a459a3f17dd5341ad3e21

Authored by luigser
0 parents

COMPONENTS

Showing 2328 changed files with 650035 additions and 0 deletions

Too many changes.

To preserve performance only 100 of 2328 files are displayed.

bower.json 0 → 100755
  1 +++ a/bower.json
  1 +{
  2 + "name": "COMPONENT",
  3 + "version": "1.0.0",
  4 + "authors": [
  5 + "Luigi Serra"
  6 + ],
  7 + "description": "Datalet and Controllet repository",
  8 + "license": "MIT",
  9 + "ignore": [
  10 + "**/.*",
  11 + "node_modules",
  12 + "bower_components",
  13 + "test",
  14 + "tests"
  15 + ],
  16 + "dependencies": {
  17 + "polymer": "Polymer/polymer#^1.0.0",
  18 + "google-map": "GoogleWebComponents/google-map#^1.0.0"
  19 + }
  20 +}
... ...
bower_components/font-roboto/.bower.json 0 → 100755
  1 +++ a/bower_components/font-roboto/.bower.json
  1 +{
  2 + "name": "font-roboto",
  3 + "version": "1.0.1",
  4 + "description": "An HTML import for Roboto",
  5 + "authors": [
  6 + "The Polymer Authors"
  7 + ],
  8 + "keywords": [
  9 + "font",
  10 + "roboto"
  11 + ],
  12 + "repository": {
  13 + "type": "git",
  14 + "url": "git://github.com/PolymerElements/font-roboto.git"
  15 + },
  16 + "main": "roboto.html",
  17 + "license": "http://polymer.github.io/LICENSE.txt",
  18 + "homepage": "https://github.com/PolymerElements/font-roboto/",
  19 + "ignore": [
  20 + "/.*"
  21 + ],
  22 + "_release": "1.0.1",
  23 + "_resolution": {
  24 + "type": "version",
  25 + "tag": "v1.0.1",
  26 + "commit": "21ce9b51a417fa9995cf6606e886aba0728f70a1"
  27 + },
  28 + "_source": "git://github.com/PolymerElements/font-roboto.git",
  29 + "_target": "^1.0.1",
  30 + "_originalSource": "PolymerElements/font-roboto"
  31 +}
0 32 \ No newline at end of file
... ...
bower_components/font-roboto/README.md 0 → 100755
  1 +++ a/bower_components/font-roboto/README.md
  1 +# font-roboto
... ...
bower_components/font-roboto/bower.json 0 → 100755
  1 +++ a/bower_components/font-roboto/bower.json
  1 +{
  2 + "name": "font-roboto",
  3 + "version": "1.0.1",
  4 + "description": "An HTML import for Roboto",
  5 + "authors": [
  6 + "The Polymer Authors"
  7 + ],
  8 + "keywords": [
  9 + "font",
  10 + "roboto"
  11 + ],
  12 + "repository": {
  13 + "type": "git",
  14 + "url": "git://github.com/PolymerElements/font-roboto.git"
  15 + },
  16 + "main": "roboto.html",
  17 + "license": "http://polymer.github.io/LICENSE.txt",
  18 + "homepage": "https://github.com/PolymerElements/font-roboto/",
  19 + "ignore": [
  20 + "/.*"
  21 + ]
  22 +}
... ...
bower_components/font-roboto/roboto.html 0 → 100755
  1 +++ a/bower_components/font-roboto/roboto.html
  1 +<!--
  2 +@license
  3 +Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
  4 +This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
  5 +The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
  6 +The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
  7 +Code distributed by Google as part of the polymer project is also
  8 +subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
  9 +-->
  10 +<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:400,300,300italic,400italic,500,500italic,700,700italic">
  11 +<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto+Mono:400,700">
... ...
bower_components/google-apis/.bower.json 0 → 100755
  1 +++ a/bower_components/google-apis/.bower.json
  1 +{
  2 + "name": "google-apis",
  3 + "version": "1.1.0",
  4 + "description": "Web components to load Google API libraries",
  5 + "homepage": "https://googlewebcomponents.github.io/google-apis",
  6 + "main": "google-apis.html",
  7 + "authors": [
  8 + "Scott Miles <sjmiles@google.com>",
  9 + "Eric Bidelman <ebidel@gmail.com>"
  10 + ],
  11 + "license": "Apache2",
  12 + "ignore": [
  13 + "/.*",
  14 + "/test/"
  15 + ],
  16 + "keywords": [
  17 + "web-component",
  18 + "web-components",
  19 + "polymer",
  20 + "google",
  21 + "apis"
  22 + ],
  23 + "dependencies": {
  24 + "polymer": "Polymer/polymer#^1.0.0",
  25 + "iron-jsonp-library": "PolymerElements/iron-jsonp-library#^1.0.0"
  26 + },
  27 + "devDependencies": {
  28 + "iron-component-page": "PolymerElements/iron-component-page#^1.0.0"
  29 + },
  30 + "_release": "1.1.0",
  31 + "_resolution": {
  32 + "type": "version",
  33 + "tag": "1.1.0",
  34 + "commit": "7fa2ff1da3d6a2bd5891b7441d89fd8ffbf0d83d"
  35 + },
  36 + "_source": "git://github.com/GoogleWebComponents/google-apis.git",
  37 + "_target": "^1.1.0",
  38 + "_originalSource": "GoogleWebComponents/google-apis"
  39 +}
0 40 \ No newline at end of file
... ...
bower_components/google-apis/LICENSE 0 → 100755
  1 +++ a/bower_components/google-apis/LICENSE
  1 +Copyright 2015 Google Inc
  2 +
  3 +Licensed under the Apache License, Version 2.0 (the "License");
  4 +you may not use this file except in compliance with the License.
  5 +You may obtain a copy of the License at
  6 +
  7 + https://www.apache.org/licenses/LICENSE-2.0
  8 +
  9 +Unless required by applicable law or agreed to in writing, software
  10 +distributed under the License is distributed on an "AS IS" BASIS,
  11 +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12 +See the License for the specific language governing permissions and
  13 +limitations under the License.
... ...
bower_components/google-apis/README.md 0 → 100755
  1 +++ a/bower_components/google-apis/README.md
  1 +google-apis
  2 +===========
  3 +
  4 +See the [component landing page](https://googlewebcomponents.github.io/google-apis) for more information.
... ...
bower_components/google-apis/bower.json 0 → 100755
  1 +++ a/bower_components/google-apis/bower.json
  1 +{
  2 + "name": "google-apis",
  3 + "version": "1.1.0",
  4 + "description": "Web components to load Google API libraries",
  5 + "homepage": "https://googlewebcomponents.github.io/google-apis",
  6 + "main": "google-apis.html",
  7 + "authors": [
  8 + "Scott Miles <sjmiles@google.com>",
  9 + "Eric Bidelman <ebidel@gmail.com>"
  10 + ],
  11 + "license": "Apache2",
  12 + "ignore": [
  13 + "/.*",
  14 + "/test/"
  15 + ],
  16 + "keywords": [
  17 + "web-component",
  18 + "web-components",
  19 + "polymer",
  20 + "google",
  21 + "apis"
  22 + ],
  23 + "dependencies": {
  24 + "polymer": "Polymer/polymer#^1.0.0",
  25 + "iron-jsonp-library": "PolymerElements/iron-jsonp-library#^1.0.0"
  26 + },
  27 + "devDependencies": {
  28 + "iron-component-page": "PolymerElements/iron-component-page#^1.0.0"
  29 + }
  30 +}
... ...
bower_components/google-apis/demo/index.html 0 → 100755
  1 +++ a/bower_components/google-apis/demo/index.html
  1 +<!doctype html>
  2 +<!-- Copyright (c) 2015 Google Inc. All rights reserved. -->
  3 +<html>
  4 +<head>
  5 + <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
  6 + <title>google-apis Demo</title>
  7 + <script src="../../webcomponentsjs/webcomponents-lite.js"></script>
  8 + <link rel="import" href="../google-apis.html">
  9 +</head>
  10 +<body>
  11 + <div id="messages"></div>
  12 +
  13 + <template id="t" is="dom-bind">
  14 +
  15 + <google-client-loader id="shortener"
  16 + name="urlshortener"
  17 + version="v1"
  18 + on-google-api-load="loadedShortener"></google-client-loader>
  19 + <google-js-api on-js-api-load="loaded"></google-js-api>
  20 + <google-plusone-api on-api-load="loaded"></google-plusone-api>
  21 + <google-realtime-api on-api-load="loaded"></google-realtime-api>
  22 + <google-maps-api on-api-load="loaded"></google-maps-api>
  23 + <google-youtube-api on-api-load="loaded"></google-youtube-api>
  24 + <google-legacy-loader on-api-load="loaded"></google-legacy-loader>
  25 +
  26 + </template>
  27 +
  28 + <script>
  29 + var t = document.querySelector('#t');
  30 +
  31 + t.loadedShortener = function(event) {
  32 + var request = event.target.api.url.get({
  33 + shortUrl: 'http://goo.gl/fbsS'
  34 + })
  35 + request.execute(function(resp) {
  36 + console.log(resp);
  37 + });
  38 + };
  39 +
  40 + t.loaded = function(e) {
  41 + document.querySelector('#messages').innerHTML +=
  42 + e.target.localName + ' loaded' + '<br>';
  43 + console.log(e.target.localName + ' loaded', event.target.api);
  44 + };
  45 + </script>
  46 +</body>
  47 +</html>
... ...
bower_components/google-apis/google-apis.html 0 → 100755
  1 +++ a/bower_components/google-apis/google-apis.html
  1 +<!--
  2 +Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
  3 +This code may only be used under the BSD style license found at https://polymer.github.io/LICENSE.txt
  4 +The complete set of authors may be found at https://polymer.github.io/AUTHORS.txt
  5 +The complete set of contributors may be found at https://polymer.github.io/CONTRIBUTORS.txt
  6 +Code distributed by Google as part of the polymer project is also
  7 +subject to an additional IP rights grant found at https://polymer.github.io/PATENTS.txt
  8 +-->
  9 +
  10 +<!-- Load all Google APIs, for backwards compatibility -->
  11 +<link rel="import" href="google-client-loader.html">
  12 +<link rel="import" href="google-legacy-loader.html">
  13 +<link rel="import" href="google-maps-api.html">
  14 +<link rel="import" href="google-plusone-api.html">
  15 +<link rel="import" href="google-realtime-api.html">
  16 +<link rel="import" href="google-youtube-api.html">
... ...
bower_components/google-apis/google-client-loader.html 0 → 100755
  1 +++ a/bower_components/google-apis/google-client-loader.html
  1 +<!--
  2 +Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
  3 +This code may only be used under the BSD style license found at https://polymer.github.io/LICENSE.txt
  4 +The complete set of authors may be found at https://polymer.github.io/AUTHORS.txt
  5 +The complete set of contributors may be found at https://polymer.github.io/CONTRIBUTORS.txt
  6 +Code distributed by Google as part of the polymer project is also
  7 +subject to an additional IP rights grant found at https://polymer.github.io/PATENTS.txt
  8 +-->
  9 +
  10 +<link rel="import" href="../polymer/polymer.html">
  11 +<link rel="import" href="google-js-api.html">
  12 +
  13 +<!--
  14 +Element for loading a specific client Google API with the JavaScript client library.
  15 +
  16 +For loading `gapi.client` libraries
  17 +
  18 +##### Example
  19 +
  20 + <google-client-loader id="shortener"
  21 + name="urlshortener"
  22 + version="v1"></google-client-loader>
  23 +
  24 + <script>
  25 + var shortener = document.getElementById('shortener');
  26 + shortener.addEventListener('google-api-load', function(event) {
  27 + var request = shortener.api.url.get({
  28 + shortUrl: 'http://goo.gl/fbsS'
  29 + });
  30 + request.execute(function(resp) {
  31 + console.log(resp);
  32 + });
  33 + });
  34 + </script>
  35 +
  36 +@demo
  37 +-->
  38 +<dom-module id="google-client-loader">
  39 + <template>
  40 + <google-js-api on-js-api-load="_loadClient"></google-js-api>
  41 + </template>
  42 +</dom-module>
  43 +
  44 +<script>
  45 + (function() {
  46 + 'use strict';
  47 +
  48 + // Stores whether the API client is done loading.
  49 + var _clientLoaded = false;
  50 +
  51 + // Loaders and loading statuses for all APIs, indexed by API name.
  52 + // This helps prevent multiple loading requests being fired at the same time
  53 + // by multiple google-api-loader elements.
  54 + var _statuses = {};
  55 + var _loaders = {};
  56 +
  57 + Polymer({
  58 +
  59 + is: 'google-client-loader',
  60 +
  61 + /**
  62 + * Fired when the requested API is loaded. Override this name
  63 + * by setting `successEventName`.
  64 + * @event google-api-load
  65 + */
  66 +
  67 + /**
  68 + * Fired if an error occurs while loading the requested API. Override this name
  69 + * by setting `errorEventName`.
  70 + * @event google-api-load-error
  71 + */
  72 +
  73 + properties: {
  74 + /**
  75 + * Name of the API to load, e.g. 'urlshortener'.
  76 + *
  77 + * You can find the full list of APIs on the
  78 + * <a href="https://developers.google.com/apis-explorer"> Google APIs
  79 + * Explorer</a>.
  80 + * @required
  81 + */
  82 + name: String,
  83 +
  84 + /**
  85 + * Version of the API to load, e.g. 'v1'.
  86 + * @required
  87 + */
  88 + version: String,
  89 +
  90 + /**
  91 + * App Engine application ID for loading a Google Cloud Endpoints API.
  92 + */
  93 + appId: String,
  94 +
  95 + /**
  96 + * Root URL where to load the API from, e.g. 'http://host/apis'.
  97 + * For App Engine dev server this would be something like:
  98 + * 'http://localhost:8080/_ah/api'.
  99 + * Overrides 'appId' if both are specified.
  100 + */
  101 + apiRoot: String,
  102 +
  103 + /**
  104 + * Name of the event fired when API library is loaded.
  105 + */
  106 + successEventName: {
  107 + type: String,
  108 + value: 'google-api-load'
  109 + },
  110 +
  111 + /**
  112 + * Name of the event fired when there is an error loading the library.
  113 + */
  114 + errorEventName: {
  115 + type: String,
  116 + value: 'google-api-load-error'
  117 + }
  118 + },
  119 +
  120 + // Used to fix events potentially being fired multiple times by
  121 + // iron-jsonp-library.
  122 + _waiting: false,
  123 +
  124 + /**
  125 + * Returns the loaded API.
  126 + * @type gapi.client
  127 + */
  128 + get api() {
  129 + if (window.gapi && window.gapi.client &&
  130 + window.gapi.client[this.name]) {
  131 + return window.gapi.client[this.name];
  132 + } else {
  133 + return undefined;
  134 + }
  135 + },
  136 +
  137 + /**
  138 + * Wrapper for `gapi.auth`.
  139 + */
  140 + get auth() {
  141 + return gapi.auth;
  142 + },
  143 +
  144 + _loadClient: function() {
  145 + gapi.load('client', this._doneLoadingClient.bind(this));
  146 + },
  147 +
  148 + _handleLoadResponse: function(response) {
  149 + if (response && response.error) {
  150 + _statuses[this.name] = 'error';
  151 + this._fireError(response);
  152 + } else {
  153 + _statuses[this.name] = 'loaded';
  154 + this._fireSuccess();
  155 + }
  156 + },
  157 +
  158 + _fireSuccess: function() {
  159 + this.fire(this.successEventName,
  160 + { 'name': this.name, 'version': this.version });
  161 + },
  162 +
  163 + _fireError: function(response) {
  164 + if (response && response.error) {
  165 + this.fire(this.errorEventName, {
  166 + 'name': this.name,
  167 + 'version': this.version,
  168 + 'error': response.error });
  169 + } else {
  170 + this.fire(this.errorEventName, {
  171 + 'name': this.name,
  172 + 'version': this.version });
  173 + }
  174 + },
  175 +
  176 + _doneLoadingClient: function() {
  177 + _clientLoaded = true;
  178 + // Fix for API client load event being fired multiple times by
  179 + // iron-jsonp-library.
  180 + if (!this._waiting) {
  181 + this._loadApi();
  182 + }
  183 + },
  184 +
  185 + _createSelfRemovingListener: function(eventName) {
  186 + var handler = function () {
  187 + _loaders[this.name].removeEventListener(eventName, handler);
  188 + this._loadApi();
  189 + }.bind(this);
  190 +
  191 + return handler;
  192 + },
  193 +
  194 + _loadApi: function() {
  195 + if (_clientLoaded && this.name && this.version) {
  196 + this._waiting = false;
  197 + // Is this API already loaded?
  198 + if (_statuses[this.name] == 'loaded') {
  199 + this._fireSuccess();
  200 + // Is a different google-api-loader already loading this API?
  201 + } else if (_statuses[this.name] == 'loading') {
  202 + this._waiting = true;
  203 + _loaders[this.name].addEventListener(this.successEventName,
  204 + this._createSelfRemovingListener(this.successEventName));
  205 + _loaders[this.name].addEventListener(this.errorEventName,
  206 + this._createSelfRemovingListener(this.errorEventName));
  207 + // Did we get an error when we tried to load this API before?
  208 + } else if (_statuses[this.name] == 'error') {
  209 + this._fireError();
  210 + // Otherwise, looks like we're loading a new API.
  211 + } else {
  212 + var root;
  213 + if (this.apiRoot) {
  214 + root = this.apiRoot;
  215 + } else if (this.appId) {
  216 + root = 'https://' + this.appId + '.appspot.com/_ah/api';
  217 + }
  218 + _statuses[this.name] = 'loading';
  219 + _loaders[this.name] = this;
  220 + gapi.client.load(this.name, this.version,
  221 + this._handleLoadResponse.bind(this), root);
  222 + }
  223 + }
  224 + }
  225 + });
  226 + })();
  227 +</script>
... ...
bower_components/google-apis/google-js-api.html 0 → 100755
  1 +++ a/bower_components/google-apis/google-js-api.html
  1 +<!--
  2 +Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
  3 +This code may only be used under the BSD style license found at https://polymer.github.io/LICENSE.txt
  4 +The complete set of authors may be found at https://polymer.github.io/AUTHORS.txt
  5 +The complete set of contributors may be found at https://polymer.github.io/CONTRIBUTORS.txt
  6 +Code distributed by Google as part of the polymer project is also
  7 +subject to an additional IP rights grant found at https://polymer.github.io/PATENTS.txt
  8 +-->
  9 +
  10 +<link rel="import" href="../polymer/polymer.html">
  11 +<link rel="import" href="../iron-jsonp-library/iron-jsonp-library.html">
  12 +
  13 +<script>
  14 +/**
  15 +Dynamically loads Google JavaScript API `gapi`, firing the `js-api-load` event when ready.
  16 +
  17 +Any number of components can use `<google-js-api>` elements, and the library will only be loaded once.
  18 +
  19 +##### Example
  20 +
  21 + <google-js-api></google-js-api>
  22 + <script>
  23 + var api = document.querySelector('google-js-api');
  24 + api.addEventListener('js-api-load', function(e) {
  25 + console.log('API loaded', gapi);
  26 + });
  27 + < /script>
  28 +
  29 +*/
  30 + Polymer({
  31 +
  32 + is: 'google-js-api',
  33 +
  34 + behaviors: [
  35 + Polymer.IronJsonpLibraryBehavior
  36 + ],
  37 +
  38 + properties: {
  39 +
  40 + /** @private */
  41 + libraryUrl: {
  42 + type: String,
  43 + value: 'https://apis.google.com/js/api.js?onload=%%callback%%'
  44 + },
  45 +
  46 + /**
  47 + * Fired when the API library is loaded and available.
  48 + * @event js-api-load
  49 + */
  50 + /**
  51 + * Name of event fired when library is loaded and available.
  52 + */
  53 + notifyEvent: {
  54 + type: String,
  55 + value: 'js-api-load'
  56 + },
  57 + },
  58 +
  59 + get api() {
  60 + return gapi;
  61 + }
  62 +
  63 + });
  64 +</script>
... ...
bower_components/google-apis/google-legacy-loader.html 0 → 100755
  1 +++ a/bower_components/google-apis/google-legacy-loader.html
  1 +<!--
  2 +Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
  3 +This code may only be used under the BSD style license found at https://polymer.github.io/LICENSE.txt
  4 +The complete set of authors may be found at https://polymer.github.io/AUTHORS.txt
  5 +The complete set of contributors may be found at https://polymer.github.io/CONTRIBUTORS.txt
  6 +Code distributed by Google as part of the polymer project is also
  7 +subject to an additional IP rights grant found at https://polymer.github.io/PATENTS.txt
  8 +-->
  9 +
  10 +<link rel="import" href="../polymer/polymer.html">
  11 +<link rel="import" href="../iron-jsonp-library/iron-jsonp-library.html">
  12 +
  13 +<script>
  14 +/**
  15 +Dynamically loads the legacy Google JavaScript API Loader (https://developers.google.com/loader/).
  16 +
  17 +Fires `api-load` event when ready.
  18 +*/
  19 + Polymer({
  20 +
  21 + is: 'google-legacy-loader',
  22 +
  23 + behaviors: [
  24 + Polymer.IronJsonpLibraryBehavior
  25 + ],
  26 +
  27 + properties: {
  28 +
  29 + /** @private */
  30 + libraryUrl: {
  31 + type: String,
  32 + value: 'https://www.google.com/jsapi?callback=%%callback%%'
  33 + },
  34 +
  35 + /**
  36 + * Fired when the API library is loaded and available.
  37 + * @event js-api-load
  38 + */
  39 + /**
  40 + * Name of event fired when library is loaded and available.
  41 + */
  42 + notifyEvent: {
  43 + type: String,
  44 + value: 'api-load'
  45 + }
  46 + },
  47 +
  48 + /**
  49 + * Wrapper for `google` API namespace.
  50 + */
  51 + get api() {
  52 + return google;
  53 + }
  54 + });
  55 +</script>
... ...
bower_components/google-apis/google-maps-api.html 0 → 100755
  1 +++ a/bower_components/google-apis/google-maps-api.html
  1 +<!--
  2 +Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
  3 +This code may only be used under the BSD style license found at https://polymer.github.io/LICENSE.txt
  4 +The complete set of authors may be found at https://polymer.github.io/AUTHORS.txt
  5 +The complete set of contributors may be found at https://polymer.github.io/CONTRIBUTORS.txt
  6 +Code distributed by Google as part of the polymer project is also
  7 +subject to an additional IP rights grant found at https://polymer.github.io/PATENTS.txt
  8 +-->
  9 +
  10 +<link rel="import" href="../polymer/polymer.html">
  11 +<link rel="import" href="../iron-jsonp-library/iron-jsonp-library.html">
  12 +
  13 +<script>
  14 +/**
  15 +Dynamically loads the Google Maps JavaScript API, firing the `api-load` event when ready.
  16 +
  17 +#### Example
  18 +
  19 + <google-maps-api api-key="abc123" version="3.exp"></google-maps-api>
  20 + <script>
  21 + var mapsAPI = document.querySelector('google-maps-api');
  22 + mapsAPI.addEventListener('api-load', function(e) {
  23 + // this.api === google.maps
  24 + });
  25 + <script>
  26 +
  27 +Any number of components can use `<google-maps-api>` elements, and the library will only be loaded once.
  28 +
  29 +@blurb Element wrapper around Google Maps API.
  30 +
  31 + */
  32 + Polymer({
  33 +
  34 + is: 'google-maps-api',
  35 +
  36 + behaviors: [
  37 + Polymer.IronJsonpLibraryBehavior
  38 + ],
  39 +
  40 + properties: {
  41 +
  42 + /** @private */
  43 + mapsUrl: {
  44 + type: String,
  45 + value: 'https://maps.googleapis.com/maps/api/js?callback=%%callback%%'
  46 + },
  47 +
  48 + /**
  49 + * A Maps API key. To obtain an API key, see developers.google.com/maps/documentation/javascript/tutorial#api_key.
  50 + */
  51 + apiKey: {
  52 + type: String,
  53 + value: ''
  54 + },
  55 +
  56 + /**
  57 + * A Maps API for Business Client ID. To obtain a Maps API for Business Client ID, see developers.google.com/maps/documentation/business/.
  58 + * If set, a Client ID will take precedence over an API Key.
  59 + */
  60 + clientId: {
  61 + type: String,
  62 + value: ''
  63 + },
  64 +
  65 + /**
  66 + * The libraries to load with this map. For more information
  67 + * see https://developers.google.com/maps/documentation/javascript/libraries.
  68 + */
  69 + libraries: {
  70 + type: String,
  71 + value: ''
  72 + },
  73 +
  74 + /**
  75 + * Version of the Maps API to use.
  76 + */
  77 + version: {
  78 + type: String,
  79 + value: '3.exp'
  80 + },
  81 +
  82 + /**
  83 + * The localized language to load the Maps API with. For more information
  84 + * see https://developers.google.com/maps/documentation/javascript/basics#Language
  85 + *
  86 + * Note: the Maps API defaults to the preffered language setting of the browser.
  87 + * Use this parameter to override that behavior.
  88 + */
  89 + language: {
  90 + type: String,
  91 + value: ''
  92 + },
  93 + /**
  94 + * If true, sign-in is enabled.
  95 + * See https://developers.google.com/maps/documentation/javascript/signedin#enable_sign_in
  96 + */
  97 + signedIn: {
  98 + type: Boolean,
  99 + value: false
  100 + },
  101 +
  102 + /**
  103 + * Fired when the Maps API library is loaded and ready.
  104 + * @event api-load
  105 + */
  106 + /**
  107 + * Name of event fired when library is loaded and available.
  108 + */
  109 + notifyEvent: {
  110 + type: String,
  111 + value: 'api-load'
  112 + },
  113 +
  114 + /** @private */
  115 + libraryUrl: {
  116 + type: String,
  117 + computed: '_computeUrl(mapsUrl, version, libraries, apiKey, clientId, language, signedIn)'
  118 + }
  119 + },
  120 +
  121 + _computeUrl: function(mapsUrl, version, libraries, apiKey, clientId, language, signedIn) {
  122 + var url = mapsUrl + '&v=' + version;
  123 +
  124 + if (libraries) {
  125 + url += "&libraries=" + libraries;
  126 + }
  127 +
  128 + if (apiKey && !clientId) {
  129 + url += '&key=' + apiKey;
  130 + }
  131 +
  132 + if (clientId) {
  133 + url += '&client=' + clientId;
  134 + }
  135 +
  136 + if (language) {
  137 + url += '&language=' + language;
  138 + }
  139 +
  140 + if (signedIn) {
  141 + url += '&signed_in=' + signedIn;
  142 + }
  143 + return url;
  144 + },
  145 +
  146 + /**
  147 + * Provides the google.maps JS API namespace.
  148 + */
  149 + get api() {
  150 + return google.maps;
  151 + }
  152 + });
  153 +</script>
... ...
bower_components/google-apis/google-plusone-api.html 0 → 100755
  1 +++ a/bower_components/google-apis/google-plusone-api.html
  1 +<!--
  2 +Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
  3 +This code may only be used under the BSD style license found at https://polymer.github.io/LICENSE.txt
  4 +The complete set of authors may be found at https://polymer.github.io/AUTHORS.txt
  5 +The complete set of contributors may be found at https://polymer.github.io/CONTRIBUTORS.txt
  6 +Code distributed by Google as part of the polymer project is also
  7 +subject to an additional IP rights grant found at https://polymer.github.io/PATENTS.txt
  8 +-->
  9 +
  10 +<link rel="import" href="../polymer/polymer.html">
  11 +<link rel="import" href="../iron-jsonp-library/iron-jsonp-library.html">
  12 +
  13 +<script>
  14 +/**
  15 +Dynamically loads the Google+ JavaScript API, firing the `api-load` event when ready.
  16 +
  17 +Any number of components can use `<google-plusone-api>` elements, and the library will only be loaded once.
  18 +*/
  19 + Polymer({
  20 +
  21 + is: 'google-plusone-api',
  22 +
  23 + behaviors: [
  24 + Polymer.IronJsonpLibraryBehavior
  25 + ],
  26 +
  27 + properties: {
  28 +
  29 + /** @private */
  30 + libraryUrl: {
  31 + type: String,
  32 + value: 'https://apis.google.com/js/plusone.js?onload=%%callback%%'
  33 + },
  34 +
  35 + /**
  36 + * Fired when the API library is loaded and available.
  37 + * @event js-api-load
  38 + */
  39 + /**
  40 + * Name of event fired when library is loaded and available.
  41 + */
  42 + notifyEvent: {
  43 + type: String,
  44 + value: 'api-load'
  45 + }
  46 +
  47 + },
  48 +
  49 + get api() {
  50 + return gapi;
  51 + }
  52 +
  53 + });
  54 +</script>
... ...
bower_components/google-apis/google-realtime-api.html 0 → 100755
  1 +++ a/bower_components/google-apis/google-realtime-api.html
  1 +<!--
  2 +Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
  3 +This code may only be used under the BSD style license found at https://polymer.github.io/LICENSE.txt
  4 +The complete set of authors may be found at https://polymer.github.io/AUTHORS.txt
  5 +The complete set of contributors may be found at https://polymer.github.io/CONTRIBUTORS.txt
  6 +Code distributed by Google as part of the polymer project is also
  7 +subject to an additional IP rights grant found at https://polymer.github.io/PATENTS.txt
  8 +-->
  9 +
  10 +<link rel="import" href="../polymer/polymer.html">
  11 +<link rel="import" href="../iron-jsonp-library/iron-jsonp-library.html">
  12 +
  13 +<script>
  14 +/**
  15 +Dynamically loads the Google Drive Realtime API, firing the `api-load` event when ready.
  16 +
  17 +Any number of components can use `<google-realtime-api>` elements, and the library will only be loaded once.
  18 +
  19 +*/
  20 + Polymer({
  21 +
  22 + is: 'google-realtime-api',
  23 +
  24 + behaviors: [
  25 + Polymer.IronJsonpLibraryBehavior
  26 + ],
  27 +
  28 + properties: {
  29 +
  30 + /** @private */
  31 + libraryUrl: {
  32 + type: String,
  33 + value: 'https://apis.google.com/js/drive-realtime.js?onload=%%callback%%'
  34 + },
  35 +
  36 + /**
  37 + * Fired when the API library is loaded and available.
  38 + * @event api-load
  39 + */
  40 + /**
  41 + * Name of event fired when library is loaded and available.
  42 + */
  43 + notifyEvent: {
  44 + type: String,
  45 + value: 'api-load'
  46 + }
  47 +
  48 + },
  49 +
  50 + /**
  51 + * Returns `gapi.drive.realtime`
  52 + */
  53 + get api() {
  54 + return gapi.drive.realtime;
  55 + }
  56 +
  57 + });
  58 +</script>
... ...
bower_components/google-apis/google-youtube-api.html 0 → 100755
  1 +++ a/bower_components/google-apis/google-youtube-api.html
  1 +<!--
  2 +Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
  3 +This code may only be used under the BSD style license found at https://polymer.github.io/LICENSE.txt
  4 +The complete set of authors may be found at https://polymer.github.io/AUTHORS.txt
  5 +The complete set of contributors may be found at https://polymer.github.io/CONTRIBUTORS.txt
  6 +Code distributed by Google as part of the polymer project is also
  7 +subject to an additional IP rights grant found at https://polymer.github.io/PATENTS.txt
  8 +-->
  9 +
  10 +<link rel="import" href="../polymer/polymer.html">
  11 +<link rel="import" href="../iron-jsonp-library/iron-jsonp-library.html">
  12 +
  13 +<script>
  14 +/**
  15 +Dynamically loads the Google Youtube Iframe API, firing the `api-load` event when ready.
  16 +
  17 +Any number of components can use `<google-youtube-api>` elements, and the library will only be loaded once.
  18 +
  19 +https://developers.google.com/youtube/iframe_api_reference
  20 + */
  21 + Polymer({
  22 +
  23 + is: 'google-youtube-api',
  24 +
  25 + behaviors: [
  26 + Polymer.IronJsonpLibraryBehavior
  27 + ],
  28 +
  29 + properties: {
  30 +
  31 + /** @private */
  32 + libraryUrl: {
  33 + type: String,
  34 + value: 'https://www.youtube.com/iframe_api'
  35 + },
  36 +
  37 + /**
  38 + * Fired when the API library is loaded and available.
  39 + * @event api-load
  40 + */
  41 + /**
  42 + * Name of event fired when library loads.
  43 + */
  44 + notifyEvent: {
  45 + type: String,
  46 + value: 'api-load'
  47 + },
  48 +
  49 + callbackName: {
  50 + type: String,
  51 + value: 'onYouTubeIframeAPIReady'
  52 + }
  53 +
  54 + },
  55 +
  56 + get api() {
  57 + return YT;
  58 + }
  59 +
  60 + });
  61 +</script>
... ...
bower_components/google-apis/index.html 0 → 100755
  1 +++ a/bower_components/google-apis/index.html
  1 +<!doctype html>
  2 +<!-- Copyright (c) 2015 Google Inc. All rights reserved. -->
  3 +<html>
  4 +<head>
  5 +
  6 + <script src="../webcomponentsjs/webcomponents-lite.js"></script>
  7 + <link rel="import" href="../iron-component-page/iron-component-page.html">
  8 +
  9 +</head>
  10 +<body>
  11 +
  12 + <iron-component-page></iron-component-page>
  13 +
  14 +</body>
  15 +</html>
... ...
bower_components/google-map/.bower.json 0 → 100755
  1 +++ a/bower_components/google-map/.bower.json
  1 +{
  2 + "name": "google-map",
  3 + "version": "1.1.0",
  4 + "description": "Google Maps web components",
  5 + "homepage": "https://googlewebcomponents.github.io/google-map",
  6 + "main": [
  7 + "google-map.html",
  8 + "google-map-search.html",
  9 + "google-map-marker.html",
  10 + "google-map-directions.html"
  11 + ],
  12 + "authors": [
  13 + "Frankie Fu <ffu@google.com>",
  14 + "Scott Miles <sjmiles@google.com>",
  15 + "Eric Bidelman <ebidel@gmail.com>"
  16 + ],
  17 + "license": "Apache-2",
  18 + "ignore": [
  19 + "/.*",
  20 + "/test/"
  21 + ],
  22 + "keywords": [
  23 + "web-component",
  24 + "web-components",
  25 + "polymer",
  26 + "google",
  27 + "apis",
  28 + "maps"
  29 + ],
  30 + "dependencies": {
  31 + "polymer": "Polymer/polymer#^1.1.0",
  32 + "google-apis": "GoogleWebComponents/google-apis#^1.1.0",
  33 + "iron-resizable-behavior": "PolymerElements/iron-resizable-behavior#^1.0.0"
  34 + },
  35 + "devDependencies": {
  36 + "web-component-tester": "*",
  37 + "iron-component-page": "PolymerElements/iron-component-page#^1.0.2"
  38 + },
  39 + "_release": "1.1.0",
  40 + "_resolution": {
  41 + "type": "version",
  42 + "tag": "1.1.0",
  43 + "commit": "c45ddfa8c48a67dda1b2237589edcd45bc3f7802"
  44 + },
  45 + "_source": "git://github.com/GoogleWebComponents/google-map.git",
  46 + "_target": "^1.0.0",
  47 + "_originalSource": "GoogleWebComponents/google-map"
  48 +}
0 49 \ No newline at end of file
... ...
bower_components/google-map/LICENSE 0 → 100755
  1 +++ a/bower_components/google-map/LICENSE
  1 +Copyright 2014 Google Inc
  2 +
  3 +Licensed under the Apache License, Version 2.0 (the "License");
  4 +you may not use this file except in compliance with the License.
  5 +You may obtain a copy of the License at
  6 +
  7 + https://www.apache.org/licenses/LICENSE-2.0
  8 +
  9 +Unless required by applicable law or agreed to in writing, software
  10 +distributed under the License is distributed on an "AS IS" BASIS,
  11 +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12 +See the License for the specific language governing permissions and
  13 +limitations under the License.
... ...
bower_components/google-map/README.md 0 → 100755
  1 +++ a/bower_components/google-map/README.md
  1 +google-map
  2 +==========
  3 +
  4 +See the [component page](https://googlewebcomponents.github.io/google-map) for more information.
  5 +
... ...
bower_components/google-map/bower.json 0 → 100755
  1 +++ a/bower_components/google-map/bower.json
  1 +{
  2 + "name": "google-map",
  3 + "version": "1.1.0",
  4 + "description": "Google Maps web components",
  5 + "homepage": "https://googlewebcomponents.github.io/google-map",
  6 + "main": [
  7 + "google-map.html",
  8 + "google-map-search.html",
  9 + "google-map-marker.html",
  10 + "google-map-directions.html"
  11 + ],
  12 + "authors": [
  13 + "Frankie Fu <ffu@google.com>",
  14 + "Scott Miles <sjmiles@google.com>",
  15 + "Eric Bidelman <ebidel@gmail.com>"
  16 + ],
  17 + "license": "Apache-2",
  18 + "ignore": [
  19 + "/.*",
  20 + "/test/"
  21 + ],
  22 + "keywords": [
  23 + "web-component",
  24 + "web-components",
  25 + "polymer",
  26 + "google",
  27 + "apis",
  28 + "maps"
  29 + ],
  30 + "dependencies": {
  31 + "polymer": "Polymer/polymer#^1.1.0",
  32 + "google-apis": "GoogleWebComponents/google-apis#^1.1.0",
  33 + "iron-resizable-behavior": "PolymerElements/iron-resizable-behavior#^1.0.0"
  34 + },
  35 + "devDependencies": {
  36 + "web-component-tester": "*",
  37 + "iron-component-page": "PolymerElements/iron-component-page#^1.0.2"
  38 + }
  39 +}
... ...
bower_components/google-map/demo/index.html 0 → 100755
  1 +++ a/bower_components/google-map/demo/index.html
  1 +<!doctype html>
  2 +<!-- Copyright (c) 2015 Google Inc. All rights reserved. -->
  3 +<html>
  4 +<head>
  5 + <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
  6 + <title>Google Map demo</title>
  7 + <script src="../../webcomponentsjs/webcomponents-lite.js"></script>
  8 + <link rel="import" href="../google-map.html">
  9 + <link rel="import" href="../google-map-marker.html">
  10 + <link rel="import" href="../google-map-directions.html">
  11 + <style>
  12 + body {
  13 + margin: 0;
  14 + height: 100vh;
  15 + }
  16 + #controlsToggle {
  17 + position: absolute;
  18 + left: 10%;
  19 + bottom: 10%;
  20 + }
  21 + </style>
  22 +</head>
  23 +<body fullbleed>
  24 +
  25 +<!-- Note: places library needs to be loaded because we're using google-map-directions
  26 + which also loads the maps lib with the places library. -->
  27 +<google-map latitude="37.779" longitude="-122.3892" min-zoom="9" max-zoom="11"
  28 + language="en" libraries="places">
  29 + <google-map-marker latitude="37.779" longitude="-122.3892"
  30 + title="Go Giants!" draggable="true">
  31 + <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/4/49/San_Francisco_Giants_Cap_Insignia.svg/200px-San_Francisco_Giants_Cap_Insignia.svg.png" />
  32 + </google-map-marker>
  33 +</google-map>
  34 +
  35 +<google-map-directions start-address="Oakland" end-address="Mountain View"
  36 + language="en"></google-map-directions>
  37 +
  38 +<button id="controlsToggle" onclick="toggleControls()">Toggle controls</button>
  39 +
  40 +<script>
  41 + var gmap = document.querySelector('google-map');
  42 + gmap.addEventListener('api-load', function(e) {
  43 + document.querySelector('google-map-directions').map = this.map;
  44 + });
  45 +
  46 + function toggleControls() {