Skip to content
This repository was archived by the owner on Jan 22, 2018. It is now read-only.

Commit 435d8d0

Browse files
author
Kamil Kisiela
committed
Merge branch 'release/v0.1.0'
2 parents 2f8517c + 71046d9 commit 435d8d0

File tree

6 files changed

+50
-15
lines changed

6 files changed

+50
-15
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5+
## [0.1.0] - 2015-11-17
6+
### Added
7+
- Support for md-select with valueProp and labelProp
8+
- Support for md-radio with valueProp and labelProp options
9+
510
## [0.0.4] - 2015-11-13
611
### Removed
712
- es5-shim package
@@ -26,6 +31,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
2631

2732
## 0.0.1 - 2015-11-06
2833

29-
[0.0.4]: https://github.com/kamilkisiela/meteor-angular-formly-templates-material/compare/v0.3.0...v0.0.4
34+
[0.1.0]: https://github.com/kamilkisiela/meteor-angular-formly-templates-material/compare/v0.0.4...v0.1.0
35+
[0.0.4]: https://github.com/kamilkisiela/meteor-angular-formly-templates-material/compare/v0.0.3...v0.0.4
3036
[0.0.3]: https://github.com/kamilkisiela/meteor-angular-formly-templates-material/compare/v0.0.2...v0.0.3
3137
[0.0.2]: https://github.com/kamilkisiela/meteor-angular-formly-templates-material/compare/v0.0.1...v0.0.2

README.md

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
FormlyMaterial
22
==========
33

4+
[![GitHub version](https://badge.fury.io/gh/wieldo%2Fangular-formly-templates-material.svg)](https://badge.fury.io/gh/wieldo%2Fangular-formly-templates-material)
5+
[![Codacy Badge](https://api.codacy.com/project/badge/grade/a2cd4c7c2d74467281e309a65be49e8f)](https://www.codacy.com/app/mys-sterowiec/angular-formly-templates-material)
6+
47
Material Design Templates for [Angular-Formly](http://angular-formly.com). Modern & flexible forms configured easily in a JSON object.
58

69
## Add Angular Formly
@@ -27,13 +30,13 @@ angular.module('myAppName', [
2730
```
2831

2932
# Components
30-
3133
_rest of angular-material directive in near future_
3234

3335
## Fields
3436

3537
- input
3638
- checkbox
39+
- select
3740

3841
## Wrappers
3942

@@ -42,12 +45,16 @@ _rest of angular-material directive in near future_
4245
- ngMessages
4346

4447
## Roadmap
45-
- add md-chips
46-
- add md-datepicker
47-
- add md-icon wrapper
48-
- add md-radio-button and md-radio-group
49-
- add md-select
50-
- e2e tests
51-
- Requests (?). Post an issue.
52-
53-
[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/wieldo/angular-formly-templates-material/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
48+
49+
- [ ] add md-chips
50+
- [ ] add md-datepicker
51+
- [ ] add md-icon wrapper
52+
- [ ] add md-radio-button and md-radio-group
53+
- [x] add md-select
54+
- [ ] add groups to md-select
55+
- [x] add valueProp, labelProp to md-select
56+
- [x] add md-radio with valueProp and labelProp
57+
- [ ] add groupProp to md-radio
58+
- [ ] e2e tests
59+
60+
Requests (?). Post an issue.

lib/client/types/radio/radio.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
var {SetModule} = angular2now;
2+
3+
SetModule('formlyMaterial')
4+
.config((formlyConfigProvider, formlyMaterialProvider) => {
5+
6+
formlyConfigProvider.setType({
7+
name: 'radio',
8+
templateUrl: formlyMaterialProvider.templateUrl('lib/client/types/radio/radio.ng.html')
9+
});
10+
11+
});

lib/client/types/radio/radio.ng.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<md-radio-group ng-model="model[options.key]">
2+
<md-radio-button
3+
ng-repeat="option in to.options"
4+
ng-value="option[to.valueProp || 'value']">
5+
{{option[to.labelProp || 'name']}}
6+
</md-radio-button>
7+
</md-radio-group>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<md-select ng-model="model[options.key]">
2-
<md-option ng-repeat="item in to.options" value="{{ item.value }}">
3-
{{ item.name }}
2+
<md-option ng-repeat="option in to.options" ng-value="option[to.valueProp || 'value']">
3+
{{ option[to.labelProp || 'name'] }}
44
</md-option>
55
</md-select>

package.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var server = 'server';
55
Package.describe({
66
name: "wieldo:angular-formly-templates-material",
77
summary: "Material design templates for angular-formly",
8-
version: "0.0.4",
8+
version: "0.1.0",
99

1010
documentation: 'README.md',
1111
git: 'https://github.com/wieldo/angular-formly-templates-material.git'
@@ -69,7 +69,11 @@ Package.onUse(function (api) {
6969

7070
// select
7171
'lib/client/types/select/select.js',
72-
'lib/client/types/select/select.ng.html'
72+
'lib/client/types/select/select.ng.html',
73+
74+
// radio
75+
'lib/client/types/radio/radio.js',
76+
'lib/client/types/radio/radio.ng.html'
7377

7478
], client);
7579

0 commit comments

Comments
 (0)