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

Commit b54432a

Browse files
author
Kamil Kisiela
committed
release v0.13.0
### Added - (input) support for **ng-pattern** as **templateOptions.pattern** (#10) - (chips) has now **label** wrapper - (datepicker) has now **label** wrapper - (radio) has now **label** wrapper (#9) - (slider) has now **label** wrapper
1 parent e4dbbe2 commit b54432a

File tree

6 files changed

+19
-12
lines changed

6 files changed

+19
-12
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/).
44

5-
## [Unreleased](https://github.com/formly-js/angular-formly-templates-material/compare/v0.12.0...HEAD)
5+
## [0.13.0](https://github.com/formly-js/angular-formly-templates-material/compare/v0.12.0...v0.13.0)
66

77
### Added
88

99
- (input) support for **ng-pattern** as **templateOptions.pattern** (#10)
1010
- (chips) has now **label** wrapper
1111
- (datepicker) has now **label** wrapper
12-
- (radio) has now **label** wrapper
12+
- (radio) has now **label** wrapper (#9)
1313
- (slider) has now **label** wrapper
1414

1515
## [0.12.0](https://github.com/formly-js/angular-formly-templates-material/compare/v0.11.0...v0.12.0) - 2015-12-30

dist/formly-material.js

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* angular-formly-material JavaScript Library v0.12.0
2+
* angular-formly-material JavaScript Library v0.13.0
33
*
44
* @license MIT (http://license.angular-formly.com)
55
*
@@ -347,7 +347,7 @@ return /******/ (function(modules) { // webpackBootstrap
347347
/* 9 */
348348
/***/ function(module, exports) {
349349

350-
module.exports = "<label for=\"{{id}}\">\r\n {{to.label}}\r\n</label>\r\n<formly-transclude></formly-transclude>\r\n";
350+
module.exports = "<label for=\"{{id}}\" ng-style=\"['input', 'textarea', 'select'].indexOf(options.type) === -1 && {'font-size':'12px', 'color': 'rgb(117, 117, 117)'}\">\n {{to.label}}\n</label>\n<formly-transclude></formly-transclude>\n";
351351

352352
/***/ },
353353
/* 10 */
@@ -378,7 +378,7 @@ return /******/ (function(modules) { // webpackBootstrap
378378
/* 11 */
379379
/***/ function(module, exports) {
380380

381-
module.exports = "<formly-transclude></formly-transclude>\n<div ng-messages=\"fc.$error\" ng-show=\"showError\">\n <div ng-repeat=\"(name, message) in ::options.validation.messages\"\n ng-message-exp=\"name\">\n {{message(fc.$viewValue, fc.$modelValue, this)}}\n </div>\n</div>\n";
381+
module.exports = "<formly-transclude></formly-transclude>\r\n<div ng-messages=\"fc.$error\" ng-show=\"showError\">\r\n <div ng-repeat=\"(name, message) in ::options.validation.messages\"\r\n ng-message-exp=\"name\">\r\n {{message(fc.$viewValue, fc.$modelValue, this)}}\r\n </div>\r\n</div>\r\n";
382382

383383
/***/ },
384384
/* 12 */
@@ -520,6 +520,7 @@ return /******/ (function(modules) { // webpackBootstrap
520520
formlyConfigProvider.setType({
521521
template: _chipsHtml2['default'],
522522
name: 'chips',
523+
wrapper: ['label'],
523524
defaultOptions: {
524525
defaultValue: [],
525526
ngModelAttrs: {
@@ -590,7 +591,7 @@ return /******/ (function(modules) { // webpackBootstrap
590591
formlyConfigProvider.setType({
591592
template: _datepickerHtml2['default'],
592593
name: 'datepicker',
593-
wrapper: ['messages'],
594+
wrapper: ['label', 'messages'],
594595
defaultOptions: {
595596
ngModelAttrs: {
596597
placeholder: {
@@ -658,14 +659,18 @@ return /******/ (function(modules) { // webpackBootstrap
658659
ngModelAttrs: {
659660
mdMaxlength: {
660661
bound: 'md-maxlength'
662+
},
663+
pattern: {
664+
bound: 'ng-pattern'
661665
}
662666
}
663667
},
664668
apiCheck: function apiCheck(check) {
665669
return {
666670
templateOptions: {
667671
type: check.string,
668-
step: check.number.optional
672+
step: check.number.optional,
673+
pattern: check.oneOfType([check.string, check.instanceOf(RegExp)]).optional
669674
}
670675
};
671676
}
@@ -709,6 +714,7 @@ return /******/ (function(modules) { // webpackBootstrap
709714
formlyConfigProvider.setType({
710715
template: _radioHtml2['default'],
711716
name: 'radio',
717+
wrapper: ['label'],
712718
apiCheck: function apiCheck(check) {
713719
return {
714720
templateOptions: {
@@ -806,6 +812,7 @@ return /******/ (function(modules) { // webpackBootstrap
806812
formlyConfigProvider.setType({
807813
template: _sliderHtml2['default'],
808814
name: 'slider',
815+
wrapper: ['label'],
809816
defaultOptions: {
810817
ngModelAttrs: {
811818
min: {

dist/formly-material.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/formly-material.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Package.describe({
44
name: 'formly:angular-formly-templates-material',
55
summary: '(official): Material design templates for angular-formly',
6-
version: '0.12.0',
6+
version: '0.13.0',
77
documentation: 'README.md',
88
git: 'https://github.com/formly-js/angular-formly-templates-material.git'
99
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-formly-material",
3-
"version": "0.12.0",
3+
"version": "0.13.0",
44
"description": "Material design templates for angular-formly",
55
"main": "dist/formly-material.js",
66
"scripts": {

0 commit comments

Comments
 (0)