Skip to content

Commit

Permalink
chore: install paper_elements & core_elements from pub
Browse files Browse the repository at this point in the history
  • Loading branch information
vicb committed Sep 19, 2014
1 parent fd54c30 commit a511c1a
Show file tree
Hide file tree
Showing 6 changed files with 90 additions and 66 deletions.
24 changes: 0 additions & 24 deletions example/bower.json

This file was deleted.

15 changes: 6 additions & 9 deletions example/web/paper.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,12 @@
content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">

<!-- 1. Load platform.js for polyfill support. -->
<script src="bower_components/platform/platform.js"></script>
<script src="packages/core_elements/src/platform/platform.js"></script>

<!-- 2. Use an HTML Import to bring in the element. -->
<link rel="import"
href="bower_components/paper-progress/paper-progress.html">
<link rel="import"
href="bower_components/paper-checkbox/paper-checkbox.html">
<link rel="import"
href="bower_components/paper-slider/paper-slider.html">
<link rel="import" href="packages/paper_elements/src/paper-progress/paper-progress.html">
<link rel="import" href="packages/paper_elements/src/paper-checkbox/paper-checkbox.html">
<link rel="import" href="packages/paper_elements/src/paper-slider/paper-slider.html">
<script type="application/dart" src="paper.dart"></script>
<script src="packages/browser/dart.js"></script>
<style>
Expand All @@ -28,11 +25,11 @@ <h2>Property binding: paper-progress</h2>
<p>The max ({{max}}) and value ({{curValue}}) properties are bound through bind-* semantics</p>

<p>Text from Angular: <b>{{text}}</b></p>

<div>
<paper-progress bind-max=max bind-value=curValue></paper-progress>
</div>

<p>
<label>
Change the value through an ng-model bound input box:
Expand Down
11 changes: 6 additions & 5 deletions example/web/paper_radio_group.dart
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import 'package:angular/angular.dart';
import 'package:angular/application_factory.dart';

import 'dart:html';

@Component(
selector: 'cmp',
template: '<paper-radio-group bind-selected="cmp.insertOption"> <paper-radio-button name="asis" label="Insert as is"></paper-radio-button> <paper-radio-button name="duplicate" label="Insert as duplicate"></paper-radio-button> </paper-radio-group> {{cmp.insertOption}}',
publishAs: 'cmp'
)
template: '''
<paper-radio-group bind-selected="cmp.insertOption">
<paper-radio-button name="asis" label="Insert as is"></paper-radio-button>
<paper-radio-button name="duplicate" label="Insert as duplicate"></paper-radio-button>
</paper-radio-group> {{cmp.insertOption}}''',
publishAs: 'cmp')
class Cmp {
Object insertOption;
}
Expand Down
8 changes: 2 additions & 6 deletions example/web/paper_radio_group.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,14 @@
<html>
<head>
<title>Paper radio group example</title>
<!-- 0. bower install; pub serve -->
<!-- 1. Load platform.js for polyfill support. -->
<script src="bower_components/platform/platform.js"></script>
<script src="packages/core_elements/src/platform/platform.js"></script>

<!-- 2. Use an HTML Import to bring in the element. -->
<link rel="import"
href="bower_components/paper-radio-group/paper-radio-group.html">
<link rel="import" href="packages/paper_elements/src/paper-radio-group/paper-radio-group.html">
</head>
<body>
<cmp></cmp>
<!-- needed for the getter extractor -->
{{cmp}} {{insertOption}}
<script type="application/dart" src="paper_radio_group.dart"></script>
<script src="packages/browser/dart.js"></script>
</body>
Expand Down
88 changes: 70 additions & 18 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ packages:
args:
description: args
source: hosted
version: "0.10.0+2"
version: "0.11.0+1"
barback:
description: barback
source: hosted
version: "0.14.1+3"
version: "0.15.0+1"
benchmark_harness:
description: benchmark_harness
source: hosted
Expand All @@ -28,67 +28,107 @@ packages:
code_transformers:
description: code_transformers
source: hosted
version: "0.1.5"
version: "0.2.3"
collection:
description: collection
source: hosted
version: "0.9.4"
core_elements:
description: core_elements
source: hosted
version: "0.2.2+1"
csslib:
description: csslib
source: hosted
version: "0.11.0+2"
custom_element_apigen:
description: custom_element_apigen
source: hosted
version: "0.0.2"
di:
description: di
source: hosted
version: "2.0.1"
version: "2.0.2"
guinness:
description: guinness
source: hosted
version: "0.1.9"
version: "0.1.15"
html5lib:
description: html5lib
source: hosted
version: "0.10.0"
version: "0.12.0"
intl:
description: intl
source: hosted
version: "0.8.10+4"
version: "0.11.7"
js:
description: js
source: hosted
version: "0.2.2"
logging:
description: logging
source: hosted
version: "0.9.1+1"
version: "0.9.2"
matcher:
description: matcher
source: hosted
version: "0.11.0"
meta:
description: meta
source: hosted
version: "0.8.8"
version: "0.11.1"
mock:
description: mock
source: hosted
version: "0.11.0+2"
observe:
description: observe
source: hosted
version: "0.12.1+1"
paper_elements:
description: paper_elements
source: hosted
version: "0.3.0+1"
path:
description: path
source: hosted
version: "1.2.1"
version: "1.3.0"
perf_api:
description: perf_api
source: hosted
version: "0.0.9"
petitparser:
description: petitparser
source: hosted
version: "1.2.2"
polymer:
description: polymer
source: hosted
version: "0.14.2+1"
polymer_expressions:
description: polymer_expressions
source: hosted
version: "0.13.0"
pool:
description: pool
source: hosted
version: "1.0.1"
protractor:
description: protractor
source: hosted
version: "0.0.5"
quiver:
description: quiver
source: hosted
version: "0.18.2"
route_hierarchical:
description: route_hierarchical
source: hosted
version: "0.4.22"
smoke:
description: smoke
source: hosted
version: "0.2.1+1"
source_maps:
description: source_maps
source: hosted
version: "0.9.3"
version: "0.10.0"
source_span:
description: source_span
source: hosted
Expand All @@ -97,19 +137,31 @@ packages:
description: stack_trace
source: hosted
version: "1.0.2"
string_scanner:
description: string_scanner
source: hosted
version: "0.1.0"
template_binding:
description: template_binding
source: hosted
version: "0.13.0"
typed_mock:
description: typed_mock
source: hosted
version: "0.0.4"
unittest:
description: unittest
source: hosted
version: "0.11.0+3"
version: "0.11.0+5"
utf:
description: utf
source: hosted
version: "0.9.0"
version: "0.9.0+1"
web_components:
description: web_components
source: hosted
version: "0.3.5+1"
version: "0.7.0"
yaml:
description: yaml
source: hosted
version: "2.0.1+1"
10 changes: 6 additions & 4 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ homepage: https://angulardart.org
environment:
sdk: '>=1.4.0'
dependencies:
args: '>=0.10.0 <0.11.0'
args: '>=0.10.0 <0.12.0'
analyzer: '>=0.15.0 <0.19.0'
barback: '>=0.13.0 <0.17.0'
browser: '>=0.10.0 <0.11.0'
code_transformers: '>=0.1.4+2 <0.2.0'
code_transformers: '>=0.2.3 <0.3.0'
collection: '>=0.9.1 <1.0.0'
di: '>=2.0.1 <3.0.0'
html5lib: '>=0.10.0 <0.11.0'
html5lib: '>=0.11.0 <0.13.0'
intl: '>=0.8.7 <0.12.0'
perf_api: '>=0.0.9 <0.1.0'
route_hierarchical: '>=0.4.22 <0.5.0'
Expand All @@ -30,5 +30,7 @@ dev_dependencies:
mock: '>=0.10.0 <0.12.0'
protractor: '0.0.5'
unittest: '>=0.10.1 <0.12.0'
web_components: '>=0.3.3 <0.4.0'
web_components: '>=0.7.0 <0.8.0'
browser_detect: '>=1.0.3 <2.0.0'
core_elements: '>=0.2.2+1 <0.3.0'
paper_elements: '>=0.3.0+1 <0.4.0'

0 comments on commit a511c1a

Please sign in to comment.