Skip to content

Commit

Permalink
Merge pull request #7 from Urigo/master
Browse files Browse the repository at this point in the history
Update to Polymer 0.4.0 and the new Meteor packaging syntax
  • Loading branch information
ecwyne committed Sep 6, 2014
2 parents 51f7585 + 6377e0e commit b95ffa0
Show file tree
Hide file tree
Showing 914 changed files with 57,383 additions and 19,706 deletions.
10 changes: 5 additions & 5 deletions elements/context-free-parser/.bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
"private": true,
"dependencies": {},
"homepage": "https://github.com/Polymer/context-free-parser",
"version": "0.3.3",
"_release": "0.3.3",
"version": "0.4.0",
"_release": "0.4.0",
"_resolution": {
"type": "version",
"tag": "0.3.3",
"commit": "ed5593b5fcaebfe2205b7980674d872156b516c4"
"tag": "0.4.0",
"commit": "f15f7d82cad8bebbf1ff7b8d4c98ea8e611b9823"
},
"_source": "git://github.com/Polymer/context-free-parser.git",
"_target": ">=0.3.0 <1.0.0",
"_target": ">=0.4.0 <1.0.0",
"_originalSource": "Polymer/context-free-parser"
}
9 changes: 9 additions & 0 deletions elements/context-free-parser/context-free-parser.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
<!--
@license
Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-->
<script src="context-free-parser.js"></script>
<link rel="import" href="../core-ajax/core-ajax.html">

Expand Down
25 changes: 25 additions & 0 deletions elements/context-free-parser/context-free-parser.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* @license
* Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/

(function(scope) {

var ContextFreeParser = {
Expand Down Expand Up @@ -69,6 +79,21 @@
case 'type':
subCurrent[pragma] = content;
break;

case 'param':
var eventParmsRe = /\{(.+)\}\s+(\w+[.\w+]+)\s+(.*)$/;

var params = content.match(eventParmsRe);
if (params) {
var subEventObj = {
type: params[1],
name: params[2],
description: params[3]
};
makePragma(subCurrent, pragma + 's', subEventObj);
}

break;

// everything else
default:
Expand Down
9 changes: 9 additions & 0 deletions elements/context-free-parser/demo.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
<!--
@license
Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-->
<!doctype html>
<html>
<head>
Expand Down
1 change: 0 additions & 1 deletion elements/context-free-parser/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
<head>

<script src="../platform/platform.js"></script>
<link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../core-component-page/core-component-page.html">

</head>
Expand Down
12 changes: 6 additions & 6 deletions elements/core-ajax/.bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
"name": "core-ajax",
"private": true,
"dependencies": {
"polymer": "Polymer/polymer#>=0.3.0 <1.0.0"
"polymer": "Polymer/polymer#>=0.4.0 <1.0.0"
},
"homepage": "https://github.com/Polymer/core-ajax",
"version": "0.3.3",
"_release": "0.3.3",
"version": "0.4.0",
"_release": "0.4.0",
"_resolution": {
"type": "version",
"tag": "0.3.3",
"commit": "b9cb6d8e2a5b91cbe752bdb89f5c58cadf92fad6"
"tag": "0.4.0",
"commit": "3b2d12b4d14b0401b3c323bd2d68d025e833b6e0"
},
"_source": "git://github.com/Polymer/core-ajax.git",
"_target": ">=0.3.0 <1.0.0",
"_target": ">=0.4.0 <1.0.0",
"_originalSource": "Polymer/core-ajax"
}
2 changes: 1 addition & 1 deletion elements/core-ajax/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
core-ajax
=========

See the [component page](http://polymer.github.io/core-ajax) for more information.
See the [component page](http://polymer-project.org/docs/elements/core-elements.html#core-ajax) for more information.
2 changes: 1 addition & 1 deletion elements/core-ajax/bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"name": "core-ajax",
"private": true,
"dependencies": {
"polymer": "Polymer/polymer#>=0.3.0 <1.0.0"
"polymer": "Polymer/polymer#>=0.4.0 <1.0.0"
}
}
12 changes: 9 additions & 3 deletions elements/core-ajax/core-ajax.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
@homepage github.io
-->
<link rel="import" href="core-xhr.html">
<polymer-element name="core-ajax" attributes="url handleAs auto params response method headers body contentType withCredentials">
<polymer-element name="core-ajax" hidden attributes="url handleAs auto params response method headers body contentType withCredentials">
<script>

Polymer('core-ajax', {
Expand Down Expand Up @@ -238,6 +238,9 @@
try {
return JSON.parse(r);
} catch (x) {
console.warn('core-ajax caught an exception trying to parse response as JSON:');
console.warn('url:', this.url);
console.warn(x);
return r;
}
},
Expand Down Expand Up @@ -300,8 +303,11 @@
if (args.headers && typeof(args.headers) == 'string') {
args.headers = JSON.parse(args.headers);
}
if (this.contentType) {
args.headers['content-type'] = this.contentType;
var hasContentType = Object.keys(args.headers).some(function (header) {
return header.toLowerCase() === 'content-type';
});
if (!hasContentType && this.contentType) {
args.headers['Content-Type'] = this.contentType;
}
if (this.handleAs === 'arraybuffer' || this.handleAs === 'blob' ||
this.handleAs === 'document') {
Expand Down
1 change: 0 additions & 1 deletion elements/core-ajax/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
<head>

<script src="../platform/platform.js"></script>
<link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../core-component-page/core-component-page.html">

</head>
Expand Down
23 changes: 23 additions & 0 deletions elements/core-ajax/metadata.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!--
@license
Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-->
<x-meta id="core-ajax" label="Ajax" group="Core">

<property name="handleAs" kind="select" options="json,text,xml,arraybuffer,blob,document"></property>
<property name="method" kind="select" options="GET,POST,PUT,DELETE"></property>

<template>
<core-ajax handleAs="json" method="GET"></core-ajax>
</template>

<template id="imports">
<link rel="import" href="core-ajax.html">
</template>

</x-meta>
21 changes: 21 additions & 0 deletions elements/core-animated-pages/.bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "core-animated-pages",
"private": true,
"dependencies": {
"polymer": "Polymer/polymer#>=0.4.0 <1.0.0",
"core-selector": "Polymer/core-selector#>=0.4.0 <1.0.0",
"core-style": "Polymer/core-style#>=0.4.0 <1.0.0",
"core-transition": "Polymer/core-transition#>=0.4.0 <1.0.0"
},
"homepage": "https://github.com/Polymer/core-animated-pages",
"version": "0.4.0",
"_release": "0.4.0",
"_resolution": {
"type": "version",
"tag": "0.4.0",
"commit": "c4318bea0952f0c5bb886cc77b72a7b4ce8b006f"
},
"_source": "git://github.com/Polymer/core-animated-pages.git",
"_target": ">=0.4.0 <1.0.0",
"_originalSource": "Polymer/core-animated-pages"
}
4 changes: 4 additions & 0 deletions elements/core-animated-pages/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
core-animated-pages
===================

See the [component page](http://polymer-project.org/docs/elements/core-elements.html#core-animated-pages) for more information.
10 changes: 10 additions & 0 deletions elements/core-animated-pages/bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "core-animated-pages",
"private": true,
"dependencies": {
"polymer": "Polymer/polymer#>=0.4.0 <1.0.0",
"core-selector": "Polymer/core-selector#>=0.4.0 <1.0.0",
"core-style": "Polymer/core-style#>=0.4.0 <1.0.0",
"core-transition": "Polymer/core-transition#>=0.4.0 <1.0.0"
}
}
28 changes: 28 additions & 0 deletions elements/core-animated-pages/core-animated-pages.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* @license
* Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/

:host {
display: block;
position: relative;
}

polyfill-next-selector { content: ':host > *'; }
::content > * {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}

polyfill-next-selector { content: ':host > *:not(.core-selected):not([animate])'; }
::content > *:not(.core-selected):not([animate]) {
display: none !important;
}
Loading

0 comments on commit b95ffa0

Please sign in to comment.