-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
94 changed files
with
2,031 additions
and
653 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
bower_components/iron-checked-element-behavior/.bower.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"name": "iron-checked-element-behavior", | ||
"version": "1.0.1", | ||
"description": "Implements an element that has a checked attribute and can be added to a form", | ||
"authors": "The Polymer Authors", | ||
"keywords": [ | ||
"web-components", | ||
"polymer", | ||
"iron", | ||
"behavior" | ||
], | ||
"main": [ | ||
"iron-checked-element-behavior.html" | ||
], | ||
"private": true, | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/PolymerElements/iron-checked-element-behavior.git" | ||
}, | ||
"license": "http://polymer.github.io/LICENSE.txt", | ||
"homepage": "https://github.com/PolymerElements/iron-checked-element-behavior", | ||
"ignore": [], | ||
"dependencies": { | ||
"polymer": "Polymer/polymer#^1.0.0", | ||
"iron-validatable-behavior": "PolymerElements/iron-validatable-behavior#^1.0.0", | ||
"iron-form-element-behavior": "PolymerElements/iron-form-element-behavior#^1.0.0" | ||
}, | ||
"devDependencies": { | ||
"paper-styles": "PolymerElements/paper-styles#^1.0.0", | ||
"paper-button": "PolymerElements/paper-button#^1.0.0", | ||
"iron-component-page": "PolymerElements/iron-component-page#^1.0.0", | ||
"test-fixture": "PolymerElements/test-fixture#^1.0.0", | ||
"web-component-tester": "*", | ||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" | ||
}, | ||
"_release": "1.0.1", | ||
"_resolution": { | ||
"type": "version", | ||
"tag": "v1.0.1", | ||
"commit": "c680a5f6a61bd1fb52a691d7ee763f679414615e" | ||
}, | ||
"_source": "git://github.com/PolymerElements/iron-checked-element-behavior.git", | ||
"_target": "^1.0.0", | ||
"_originalSource": "PolymerElements/iron-checked-element-behavior" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
bower_components |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# iron-checked-element-behavior | ||
Implements an element that has a checked attribute and can be added to a form |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"name": "iron-checked-element-behavior", | ||
"version": "1.0.1", | ||
"description": "Implements an element that has a checked attribute and can be added to a form", | ||
"authors": "The Polymer Authors", | ||
"keywords": [ | ||
"web-components", | ||
"polymer", | ||
"iron", | ||
"behavior" | ||
], | ||
"main": [ | ||
"iron-checked-element-behavior.html" | ||
], | ||
"private": true, | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/PolymerElements/iron-checked-element-behavior.git" | ||
}, | ||
"license": "http://polymer.github.io/LICENSE.txt", | ||
"homepage": "https://github.com/PolymerElements/iron-checked-element-behavior", | ||
"ignore": [], | ||
"dependencies": { | ||
"polymer": "Polymer/polymer#^1.0.0", | ||
"iron-validatable-behavior": "PolymerElements/iron-validatable-behavior#^1.0.0", | ||
"iron-form-element-behavior": "PolymerElements/iron-form-element-behavior#^1.0.0" | ||
}, | ||
"devDependencies": { | ||
"paper-styles": "PolymerElements/paper-styles#^1.0.0", | ||
"paper-button": "PolymerElements/paper-button#^1.0.0", | ||
"iron-component-page": "PolymerElements/iron-component-page#^1.0.0", | ||
"test-fixture": "PolymerElements/test-fixture#^1.0.0", | ||
"web-component-tester": "*", | ||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
bower_components/iron-checked-element-behavior/demo/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<!doctype html> | ||
<!-- | ||
@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.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 | ||
--> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | ||
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=yes"> | ||
|
||
<title>iron-checked-element-behavior demo</title> | ||
|
||
<script src="../../webcomponentsjs/webcomponents-lite.js"></script> | ||
<link rel="import" href="../../paper-styles/demo-pages.html"> | ||
<link rel="import" href="simple-checkbox.html"> | ||
</head> | ||
<body unresolved> | ||
<div class="horizontal-section-container"> | ||
<div> | ||
<h4>Not required</h4> | ||
<div class="horizontal-section"> | ||
<simple-checkbox></simple-checkbox> | ||
</div> | ||
</div> | ||
<div> | ||
<h4>Required</h4> | ||
<div class="horizontal-section"> | ||
<simple-checkbox required></simple-checkbox> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
64 changes: 64 additions & 0 deletions
64
bower_components/iron-checked-element-behavior/demo/simple-checkbox.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<!-- | ||
@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.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 | ||
--> | ||
|
||
<link rel="import" href="../../polymer/polymer.html"> | ||
<link rel="import" href="../../paper-button/paper-button.html"> | ||
<link rel="import" href="../iron-checked-element-behavior.html"> | ||
|
||
<dom-module id="simple-checkbox"> | ||
<style> | ||
:host { | ||
display: block; | ||
} | ||
|
||
:host([invalid]) span { | ||
color: red; | ||
} | ||
|
||
#labelText { | ||
display: inline-block; | ||
width: 100px; | ||
} | ||
</style> | ||
<template> | ||
<input type="checkbox" id="checkbox" on-tap="_onCheckTap"> | ||
<span id="labelText">{{label}}</span> | ||
<paper-button raised on-click="_onClick">validate</paper-button> | ||
|
||
</template> | ||
<script> | ||
Polymer({ | ||
|
||
is: 'simple-checkbox', | ||
|
||
behaviors: [ | ||
Polymer.IronCheckedElementBehavior | ||
], | ||
|
||
properties: { | ||
label: { | ||
type: String, | ||
value: 'not validated' | ||
} | ||
}, | ||
|
||
_onCheckTap: function() { | ||
this.checked = this.$.checkbox.checked; | ||
}, | ||
|
||
_onClick: function() { | ||
this.validate(); | ||
this.label = this.invalid ? 'is invalid' : 'is valid'; | ||
} | ||
}); | ||
|
||
</script> | ||
|
||
</dom-module> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!doctype html> | ||
<!-- | ||
@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.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 | ||
--> | ||
<html> | ||
<head> | ||
|
||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes"> | ||
|
||
<title>iron-checked-element-behavior</title> | ||
|
||
<script src="../webcomponentsjs/webcomponents-lite.js"></script> | ||
|
||
<link rel="import" href="../polymer/polymer.html"> | ||
<link rel="import" href="../iron-component-page/iron-component-page.html"> | ||
|
||
</head> | ||
<body> | ||
|
||
<iron-component-page></iron-component-page> | ||
|
||
</body> | ||
</html> |
Oops, something went wrong.