Skip to content

Commit

Permalink
Update: converting to hybrid
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenmcp authored and admwx7 committed Sep 21, 2017
1 parent 1d17162 commit d6270f4
Show file tree
Hide file tree
Showing 6 changed files with 243 additions and 218 deletions.
50 changes: 37 additions & 13 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,47 @@
"/tests/"
],
"dependencies": {
"polymer": "Polymer/polymer#^1.1.0",
"iron-media-query": "PolymerElements/iron-media-query#^1.0.0",
"iron-selector": "PolymerElements/iron-selector#^1.0.0",
"neon-animation": "PolymerElements/neon-animation#^1.0.0",
"iron-resizable-behavior": "PolymerElements/iron-resizable-behavior#^1.0.0",
"iron-flex-layout": "PolymerElements/iron-flex-layout#^1.0.0",
"paper-styles": "PolymerElements/paper-styles#^1.0.0",
"iron-pages": "PolymerElements/iron-pages#^1.0.0",
"polymer": "Polymer/polymer#^1.9 || ^2.0",
"iron-media-query": "PolymerElements/iron-media-query#^1.0 || ^2.0",
"iron-selector": "PolymerElements/iron-selector#^1.0 || ^2.0",
"neon-animation": "PolymerElements/neon-animation#^1.0 || ^2.0",
"iron-resizable-behavior": "PolymerElements/iron-resizable-behavior#^1.0 || ^2.0",
"iron-flex-layout": "PolymerElements/iron-flex-layout#^1.0 || ^2.0",
"paper-styles": "PolymerElements/paper-styles#^1.0 || ^2.0",
"iron-pages": "PolymerElements/iron-pages#^1.0 || ^2.0",
"classList.js": "https://github.com/eligrey/classList.js.git#~1.1.20150312"
},
"devDependencies": {
"iron-component-page": "PolymerElements/iron-component-page#^1.0.0",
"paper-dialog": "PolymerElements/paper-dialog#^1.0.0",
"paper-button": "PolymerElements/paper-button#^1.0.0",
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
"iron-component-page": "PolymerElements/iron-component-page#^1.0 || ^2.0",
"paper-dialog": "PolymerElements/paper-dialog#^1.0 || ^2.0",
"paper-button": "PolymerElements/paper-button#^1.0 || ^2.0",
"webcomponentsjs": "webcomponents/webcomponentsjs#^1.0.0"
},
"variants": {
"1.x": {
"dependencies": {
"polymer": "Polymer/polymer#^1.9",
"iron-media-query": "PolymerElements/iron-media-query#^1.0.0",
"iron-selector": "PolymerElements/iron-selector#^1.0.0",
"neon-animation": "PolymerElements/neon-animation#^1.0.0",
"iron-resizable-behavior": "PolymerElements/iron-resizable-behavior#^1.0.0",
"iron-flex-layout": "PolymerElements/iron-flex-layout#^1.0.0",
"paper-styles": "PolymerElements/paper-styles#^1.0.0",
"iron-pages": "PolymerElements/iron-pages#^1.0.0",
"classList.js": "https://github.com/eligrey/classList.js.git#~1.1.20150312"
},
"devDependencies": {
"iron-component-page": "PolymerElements/iron-component-page#^1.0.0",
"paper-dialog": "PolymerElements/paper-dialog#^1.0.0",
"paper-button": "PolymerElements/paper-button#^1.0.0",
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
},
"resolutions": {
"webcomponentsjs": "^0.7.2"
}
}
},
"resolutions": {
"webcomponentsjs": "^0.7.2"
"webcomponentsjs": "^1.0.0"
}
}
49 changes: 29 additions & 20 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,37 +6,46 @@
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=yes">

<title>paper-time-picker Demo</title>

<script src="../../webcomponentsjs/webcomponents-lite.js"></script>

<link rel="import" href="../paper-time-picker.html">
<link rel="import" href="../../paper-styles/demo-pages.html">
<link rel="import" href="../../paper-dialog/paper-dialog.html">
<link rel="import" href="../../paper-button/paper-button.html">

<style is="custom-style" include="paper-time-picker-dialog-style">
section {
margin: 24px;
}
</style>
<custom-style>
<style is="custom-style" include="paper-time-picker-dialog-style">
section {
margin: 24px;
}
</style>
</custom-style>
</head>
<body unresolved>
<template is="dom-bind" id="scope">
<section>
<h1>{{time}}</h1>
<paper-button class="btn" on-tap="showDialog" raised>Change Time</paper-button>
<paper-dialog id="dialog" class="paper-time-picker-dialog" modal on-iron-overlay-closed="dismissDialog">
<paper-time-picker id="picker" time="[[time]]"></paper-time-picker>
<div class="buttons">
<paper-button dialog-dismiss>CANCEL</paper-button>
<paper-button dialog-confirm>OK</paper-button>
</div>
</paper-dialog>
</section>
</template>
<dom-bind id="bindElement">
<template is="dom-bind" id="templateElement">
<section>
<h1>{{time}}</h1>
<paper-button class="btn" on-tap="showDialog" raised>Change Time</paper-button>
<paper-dialog id="dialog" class="paper-time-picker-dialog" modal on-iron-overlay-closed="dismissDialog">
<paper-time-picker id="picker" time="[[time]]"></paper-time-picker>
<div class="buttons">
<paper-button dialog-dismiss>CANCEL</paper-button>
<paper-button dialog-confirm>OK</paper-button>
</div>
</paper-dialog>
</section>
</template>
</dom-bind>
<script>
(function() {
var scope = document.querySelector('#scope');
var scope;
if (Polymer.Element) {
scope = document.querySelector('#bindElement');
} else {
scope = document.querySelector('#templateElement');
}
scope.dismissDialog = function(event) {
if (event.detail.confirmed) {
scope.time = scope.$.picker.time;
Expand Down
43 changes: 0 additions & 43 deletions package.json

This file was deleted.

Loading

0 comments on commit d6270f4

Please sign in to comment.