update components
This commit is contained in:
parent
8c9287d505
commit
aa272fb404
106 changed files with 1733 additions and 554 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "paper-ripple",
|
||||
"version": "1.0.4",
|
||||
"version": "1.0.5",
|
||||
"license": "http://polymer.github.io/LICENSE.txt",
|
||||
"description": "Adds a material design ripple to any container",
|
||||
"private": true,
|
||||
|
@ -27,16 +27,17 @@
|
|||
"iron-icons": "polymerelements/iron-icons#^1.0.0",
|
||||
"paper-styles": "polymerelements/paper-styles#^1.0.0",
|
||||
"test-fixture": "polymerelements/test-fixture#^1.0.0",
|
||||
"web-component-tester": "*",
|
||||
"web-component-tester": "polymer/web-component-tester#^3.4.0",
|
||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0",
|
||||
"iron-test-helpers": "PolymerElements/iron-test-helpers#^1.0.0"
|
||||
},
|
||||
"ignore": [],
|
||||
"homepage": "https://github.com/polymerelements/paper-ripple",
|
||||
"_release": "1.0.4",
|
||||
"_release": "1.0.5",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v1.0.4",
|
||||
"commit": "5f5893ca7bd6a8413d2f777c092a1a179b6bd45e"
|
||||
"tag": "v1.0.5",
|
||||
"commit": "d72e7a9a8ab518b901ed18dde492df3b87a93be5"
|
||||
},
|
||||
"_source": "git://github.com/polymerelements/paper-ripple.git",
|
||||
"_target": "^1.0.0",
|
||||
|
|
22
dashboard-ui/bower_components/paper-ripple/.travis.yml
vendored
Normal file
22
dashboard-ui/bower_components/paper-ripple/.travis.yml
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
language: node_js
|
||||
sudo: false
|
||||
before_script:
|
||||
- npm install web-component-tester
|
||||
- npm install bower
|
||||
- 'export PATH=$PWD/node_modules/.bin:$PATH'
|
||||
- bower install
|
||||
env:
|
||||
global:
|
||||
- secure: YrC5bTrJwlszZQWfnRwDbLaZNLf+KnWXTAfzvul7eij21W3/v+E0wp9pFTLQj/G3bZWgOEZSsoXxASNcNu1JUmJRyLXpJgTps25IlS/VJTRHoK7jUjt5pJG1CbcgTixQblyOVtPqT6j0V23V0d3mhQ3H2xFBbcl87iYO1w+6nmQ=
|
||||
- secure: NZv74uwtibMbmarEOWRUNkEwjz/2akWEIe2JDxglag2JUECWrcAKJIQUqYsO0KNUIg09xJEqWLWED4fN73p3z27Jl/z99ssVMvPQt8duoxwZ6UwcjVWUQNjgXKN6JDZCf+3hJsmU51Lp6mpzj0Y5m8nCjhh7/bBnJahH+VRm7bA=
|
||||
node_js: 4
|
||||
addons:
|
||||
firefox: '42.0'
|
||||
apt:
|
||||
sources:
|
||||
- google-chrome
|
||||
packages:
|
||||
- google-chrome-stable
|
||||
script:
|
||||
- xvfb-run wct
|
||||
- "if [ \"${TRAVIS_PULL_REQUEST}\" = \"false\" ]; then wct -s 'default'; fi"
|
72
dashboard-ui/bower_components/paper-ripple/CONTRIBUTING.md
vendored
Normal file
72
dashboard-ui/bower_components/paper-ripple/CONTRIBUTING.md
vendored
Normal file
|
@ -0,0 +1,72 @@
|
|||
|
||||
<!--
|
||||
This file is autogenerated based on
|
||||
https://github.com/PolymerElements/ContributionGuide/blob/master/CONTRIBUTING.md
|
||||
|
||||
If you edit that file, it will get updated everywhere else.
|
||||
If you edit this file, your changes will get overridden :)
|
||||
-->
|
||||
# Polymer Elements
|
||||
## Guide for Contributors
|
||||
|
||||
Polymer Elements are built in the open, and the Polymer authors eagerly encourage any and all forms of community contribution. When contributing, please follow these guidelines:
|
||||
|
||||
### Filing Issues
|
||||
|
||||
**If you are filing an issue to request a feature**, please provide a clear description of the feature. It can be helpful to describe answers to the following questions:
|
||||
|
||||
1. **Who will use the feature?** _“As someone filling out a form…”_
|
||||
2. **When will they use the feature?** _“When I enter an invalid value…”_
|
||||
3. **What is the user’s goal?** _“I want to be visually notified that the value needs to be corrected…”_
|
||||
|
||||
**If you are filing an issue to report a bug**, please provide:
|
||||
|
||||
1. **A clear description of the bug and related expectations.** Consider using the following example template for reporting a bug:
|
||||
|
||||
```markdown
|
||||
The `paper-foo` element causes the page to turn pink when clicked.
|
||||
|
||||
## Expected outcome
|
||||
|
||||
The page stays the same color.
|
||||
|
||||
## Actual outcome
|
||||
|
||||
The page turns pink.
|
||||
|
||||
## Steps to reproduce
|
||||
|
||||
1. Put a `paper-foo` element in the page.
|
||||
2. Open the page in a web browser.
|
||||
3. Click the `paper-foo` element.
|
||||
```
|
||||
|
||||
2. **A reduced test case that demonstrates the problem.** If possible, please include the test case as a JSBin. Start with this template to easily import and use relevant Polymer Elements: [http://jsbin.com/cagaye](http://jsbin.com/cagaye/edit?html,output).
|
||||
|
||||
3. **A list of browsers where the problem occurs.** This can be skipped if the problem is the same across all browsers.
|
||||
|
||||
### Submitting Pull Requests
|
||||
|
||||
**Before creating a pull request**, please ensure that an issue exists for the corresponding change in the pull request that you intend to make. **If an issue does not exist, please create one per the guidelines above**. The goal is to discuss the design and necessity of the proposed change with Polymer authors and community before diving into a pull request.
|
||||
|
||||
When submitting pull requests, please provide:
|
||||
|
||||
1. **A reference to the corresponding issue** or issues that will be closed by the pull request. Please refer to these issues using the following syntax:
|
||||
|
||||
```markdown
|
||||
(For a single issue)
|
||||
Fixes #20
|
||||
|
||||
(For multiple issues)
|
||||
Fixes #32, #40
|
||||
```
|
||||
|
||||
2. **A succinct description of the design** used to fix any related issues. For example:
|
||||
|
||||
```markdown
|
||||
This fixes #20 by removing styles that leaked which would cause the page to turn pink whenever `paper-foo` is clicked.
|
||||
```
|
||||
|
||||
3. **At least one test for each bug fixed or feature added** as part of the pull request. Pull requests that fix bugs or add features without accompanying tests will not be considered.
|
||||
|
||||
If a proposed change contains multiple commits, please [squash commits](https://www.google.com/url?q=http://blog.steveklabnik.com/posts/2012-11-08-how-to-squash-commits-in-a-github-pull-request) to as few as is necessary to succinctly express the change. A Polymer author can help you squash commits, so don’t be afraid to ask us if you need help with that!
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "paper-ripple",
|
||||
"version": "1.0.4",
|
||||
"version": "1.0.5",
|
||||
"license": "http://polymer.github.io/LICENSE.txt",
|
||||
"description": "Adds a material design ripple to any container",
|
||||
"private": true,
|
||||
|
@ -27,8 +27,9 @@
|
|||
"iron-icons": "polymerelements/iron-icons#^1.0.0",
|
||||
"paper-styles": "polymerelements/paper-styles#^1.0.0",
|
||||
"test-fixture": "polymerelements/test-fixture#^1.0.0",
|
||||
"web-component-tester": "*",
|
||||
"web-component-tester": "polymer/web-component-tester#^3.4.0",
|
||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0",
|
||||
"iron-test-helpers": "PolymerElements/iron-test-helpers#^1.0.0"
|
||||
}
|
||||
},
|
||||
"ignore": []
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
|
||||
<link rel="import" href="../../iron-icons/iron-icons.html">
|
||||
<link rel="import" href="../paper-ripple.html">
|
||||
<link rel="import" href="../../paper-styles/classes/typography.html">
|
||||
<link rel="import" href="../../paper-styles/typography.html">
|
||||
<link rel="import" href="../../iron-icon/iron-icon.html">
|
||||
|
||||
<style>
|
||||
|
@ -246,27 +246,27 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
<section>
|
||||
|
||||
<div class="button raised">
|
||||
<div class="center" fit>SUBMIT</div>
|
||||
<div class="center" fit tabindex="1">SUBMIT</div>
|
||||
<paper-ripple></paper-ripple>
|
||||
</div>
|
||||
|
||||
<div class="button raised" noink>
|
||||
<div class="center" fit>NO INK</div>
|
||||
<div class="center" fit tabindex="1">NO INK</div>
|
||||
<paper-ripple noink></paper-ripple>
|
||||
</div>
|
||||
|
||||
<div class="button raised grey">
|
||||
<div class="center" fit>CANCEL</div>
|
||||
<div class="center" fit tabindex="1">CANCEL</div>
|
||||
<paper-ripple></paper-ripple>
|
||||
</div>
|
||||
|
||||
<div class="button raised blue">
|
||||
<div class="center" fit>COMPOSE</div>
|
||||
<div class="center" fit tabindex="1">COMPOSE</div>
|
||||
<paper-ripple></paper-ripple>
|
||||
</div>
|
||||
|
||||
<div class="button raised green">
|
||||
<div class="center" fit>OK</div>
|
||||
<div class="center" fit tabindex="1">OK</div>
|
||||
<paper-ripple></paper-ripple>
|
||||
</div>
|
||||
|
||||
|
@ -275,17 +275,17 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
<section>
|
||||
|
||||
<div class="button raised grey narrow">
|
||||
<div class="center" fit>+1</div>
|
||||
<div class="center" fit tabindex="1">+1</div>
|
||||
<paper-ripple></paper-ripple>
|
||||
</div>
|
||||
|
||||
<div class="button raised grey narrow label-blue">
|
||||
<div class="center" fit>+1</div>
|
||||
<div class="center" fit tabindex="1">+1</div>
|
||||
<paper-ripple></paper-ripple>
|
||||
</div>
|
||||
|
||||
<div class="button raised grey narrow label-red">
|
||||
<div class="center" fit>+1</div>
|
||||
<div class="center" fit tabindex="1">+1</div>
|
||||
<paper-ripple></paper-ripple>
|
||||
</div>
|
||||
|
||||
|
@ -294,22 +294,22 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
<section>
|
||||
|
||||
<div class="icon-button">
|
||||
<iron-icon icon="menu"></iron-icon>
|
||||
<iron-icon icon="menu" tabindex="1"></iron-icon>
|
||||
<paper-ripple class="circle" recenters></paper-ripple>
|
||||
</div>
|
||||
|
||||
<div class="icon-button">
|
||||
<iron-icon icon="more-vert"></iron-icon>
|
||||
<iron-icon icon="more-vert" tabindex="1"></iron-icon>
|
||||
<paper-ripple class="circle" recenters></paper-ripple>
|
||||
</div>
|
||||
|
||||
<div class="icon-button red">
|
||||
<iron-icon icon="delete"></iron-icon>
|
||||
<iron-icon icon="delete" tabindex="1"></iron-icon>
|
||||
<paper-ripple class="circle" recenters></paper-ripple>
|
||||
</div>
|
||||
|
||||
<div class="icon-button blue">
|
||||
<iron-icon icon="account-box"></iron-icon>
|
||||
<iron-icon icon="account-box" tabindex="1"></iron-icon>
|
||||
<paper-ripple class="circle" recenters></paper-ripple>
|
||||
</div>
|
||||
|
||||
|
@ -318,17 +318,17 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
<section>
|
||||
|
||||
<div class="fab red">
|
||||
<iron-icon icon="add"></iron-icon>
|
||||
<iron-icon icon="add" tabindex="1"></iron-icon>
|
||||
<paper-ripple class="circle" recenters></paper-ripple>
|
||||
</div>
|
||||
|
||||
<div class="fab blue">
|
||||
<iron-icon icon="mail"></iron-icon>
|
||||
<iron-icon icon="mail" tabindex="1"></iron-icon>
|
||||
<paper-ripple class="circle" recenters></paper-ripple>
|
||||
</div>
|
||||
|
||||
<div class="fab green">
|
||||
<iron-icon icon="create"></iron-icon>
|
||||
<iron-icon icon="create" tabindex="1"></iron-icon>
|
||||
<paper-ripple class="circle" recenters></paper-ripple>
|
||||
</div>
|
||||
|
||||
|
@ -339,19 +339,19 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
<div class="menu">
|
||||
|
||||
<div class="item">
|
||||
<div class="label" fit>Mark as unread</div>
|
||||
<div class="label" fit tabindex="1">Mark as unread</div>
|
||||
<paper-ripple></paper-ripple>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="label" fit>Mark as important</div>
|
||||
<div class="label" fit tabindex="1">Mark as important</div>
|
||||
<paper-ripple></paper-ripple>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="label" fit>Add to Tasks</div>
|
||||
<div class="label" fit tabindex="1">Add to Tasks</div>
|
||||
<paper-ripple></paper-ripple>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="label" fit>Create event</div>
|
||||
<div class="label" fit tabindex="1">Create event</div>
|
||||
<paper-ripple></paper-ripple>
|
||||
</div>
|
||||
|
||||
|
@ -360,19 +360,19 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
<div class="menu blue">
|
||||
|
||||
<div class="item">
|
||||
<div class="label" fit>Import</div>
|
||||
<div class="label" fit tabindex="1">Import</div>
|
||||
<paper-ripple></paper-ripple>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="label" fit>Export</div>
|
||||
<div class="label" fit tabindex="1">Export</div>
|
||||
<paper-ripple></paper-ripple>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="label" fit>Print</div>
|
||||
<div class="label" fit tabindex="1">Print</div>
|
||||
<paper-ripple></paper-ripple>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="label" fit>Restore contacts</div>
|
||||
<div class="label" fit tabindex="1">Restore contacts</div>
|
||||
<paper-ripple></paper-ripple>
|
||||
</div>
|
||||
|
||||
|
@ -390,29 +390,26 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
</div>
|
||||
|
||||
<div class="button label-blue">
|
||||
<div class="center" fit>ACCEPT</div>
|
||||
<div class="center" fit tabindex="1">ACCEPT</div>
|
||||
<paper-ripple></paper-ripple>
|
||||
</div>
|
||||
|
||||
<div class="button">
|
||||
<div class="center" fit>DECLINE</div>
|
||||
<div class="center" fit tabindex="1">DECLINE</div>
|
||||
<paper-ripple></paper-ripple>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
<div class="card" tabindex="1">
|
||||
<paper-ripple recenters></paper-ripple>
|
||||
</div>
|
||||
|
||||
<div class="card image">
|
||||
|
||||
<div class="card image" tabindex="1">
|
||||
<paper-ripple recenters></paper-ripple>
|
||||
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
<!--
|
||||
@license
|
||||
Copyright (c) 2015 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
|
||||
The complete set of authors may be found at http://polymer.github.io/AUTHORS
|
||||
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS
|
||||
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
|
||||
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
||||
-->
|
||||
<html>
|
||||
<head>
|
||||
|
|
|
@ -115,10 +115,6 @@ Apply `circle` class to make the rippling effect within a circle.
|
|||
transform: translate3d(0, 0, 0);
|
||||
}
|
||||
|
||||
:host([noink]) {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
#background,
|
||||
#waves,
|
||||
.wave-container,
|
||||
|
@ -562,10 +558,6 @@ Apply `circle` class to make the rippling effect within a circle.
|
|||
}
|
||||
},
|
||||
|
||||
observers: [
|
||||
'_noinkChanged(noink, isAttached)'
|
||||
],
|
||||
|
||||
get target () {
|
||||
var ownerRoot = Polymer.dom(this).getOwnerRoot();
|
||||
var target;
|
||||
|
@ -586,6 +578,10 @@ Apply `circle` class to make the rippling effect within a circle.
|
|||
},
|
||||
|
||||
attached: function() {
|
||||
// Set up a11yKeysBehavior to listen to key events on the target,
|
||||
// so that space and enter activate the ripple even if the target doesn't
|
||||
// handle key events. The key handlers deal with `noink` themselves.
|
||||
this.keyEventTarget = this.target;
|
||||
this.listen(this.target, 'up', 'uiUpAction');
|
||||
this.listen(this.target, 'down', 'uiDownAction');
|
||||
},
|
||||
|
@ -755,12 +751,6 @@ Apply `circle` class to make the rippling effect within a circle.
|
|||
} else {
|
||||
this.upAction();
|
||||
}
|
||||
},
|
||||
|
||||
_noinkChanged: function(noink, attached) {
|
||||
if (attached) {
|
||||
this.keyEventTarget = noink ? this : this.target;
|
||||
}
|
||||
}
|
||||
});
|
||||
})();
|
||||
|
|
|
@ -17,10 +17,8 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
|
||||
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
|
||||
<script src="../../web-component-tester/browser.js"></script>
|
||||
<script src="../../test-fixture/test-fixture-mocha.js"></script>
|
||||
<script src="../../iron-test-helpers/mock-interactions.js"></script>
|
||||
|
||||
<link rel="import" href="../../test-fixture/test-fixture.html">
|
||||
<link rel="import" href="../paper-ripple.html">
|
||||
|
||||
<style>
|
||||
|
@ -120,7 +118,6 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
});
|
||||
|
||||
test('tapping does not create a ripple', function () {
|
||||
expect(ripple.keyEventTarget).to.be.equal(ripple);
|
||||
expect(ripple.ripples.length).to.be.eql(0);
|
||||
MockInteractions.down(ripple);
|
||||
expect(ripple.ripples.length).to.be.eql(0);
|
||||
|
@ -133,7 +130,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
suite('with the `center` attribute set to true', function () {
|
||||
setup(function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue