angular-formly-material
Advanced tools
Comparing version 0.14.1 to 0.14.2
@@ -5,2 +5,13 @@ # Change Log | ||
## [0.14.1](https://github.com/formly-js/angular-formly-templates-material/compare/v0.14.1...v0.14.2) - 2016-05-30 | ||
### Added | ||
- Support for higher versions of angular (#34) | ||
### Fixed | ||
- (label) missing left padding (#29) | ||
- assumption of existence of `templateOptions` (#32) | ||
## [0.14.1](https://github.com/formly-js/angular-formly-templates-material/compare/v0.14.0...v0.14.1) - 2016-01-27 | ||
@@ -7,0 +18,0 @@ |
@@ -1,2 +0,2 @@ | ||
/*! angular-formly-material v0.14.1 | MIT | built with ♥ by Kamil Kisiela <mys.sterowiec@gmail.com> */ | ||
/*! angular-formly-material v0.14.2 | MIT | built with ♥ by Kamil Kisiela <mys.sterowiec@gmail.com> */ | ||
(function webpackUniversalModuleDefinition(root, factory) { | ||
@@ -231,3 +231,3 @@ if(typeof exports === 'object' && typeof module === 'object') | ||
if (typeof field.templateOptions[name] !== 'undefined') { | ||
if (field.templateOptions && typeof field.templateOptions[name] !== 'undefined') { | ||
field.ngModelAttrs[name] = settings; | ||
@@ -334,3 +334,3 @@ } | ||
module.exports = "<label for=\"{{id}}\" ng-style=\"['input', 'textarea', 'select'].indexOf(options.type) === -1 && {'font-size':'12px', 'color': 'rgb(117, 117, 117)'}\">\r\n {{to.label}}\r\n</label>\r\n<formly-transclude></formly-transclude>\r\n"; | ||
module.exports = "<label for=\"{{id}}\" ng-style=\"['input', 'textarea', 'select'].indexOf(options.type) === -1 && {'font-size':'12px', 'color': 'rgb(117, 117, 117)', 'padding-left': '3px'}\">\n {{to.label}}\n</label>\n<formly-transclude></formly-transclude>\n"; | ||
@@ -364,3 +364,3 @@ /***/ }, | ||
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"; | ||
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"; | ||
@@ -401,3 +401,3 @@ /***/ }, | ||
module.exports = "<md-divider ng-if=\"to.divider === 'before'\"></md-divider>\r\n<formly-transclude></formly-transclude>\r\n<md-divider ng-if=\"to.divider !== 'before'\"></md-divider>\r\n"; | ||
module.exports = "<md-divider ng-if=\"to.divider === 'before'\"></md-divider>\n<formly-transclude></formly-transclude>\n<md-divider ng-if=\"to.divider !== 'before'\"></md-divider>\n"; | ||
@@ -688,3 +688,3 @@ /***/ }, | ||
return (0, _helpers.ngModelAttrsTransformer)(fields, function (field) { | ||
return field.type === 'input' && field.templateOptions.type === 'number'; | ||
return field.type === 'input' && field.templateOptions && field.templateOptions.type === 'number'; | ||
}, 'step', { | ||
@@ -976,3 +976,3 @@ attribute: 'step' | ||
return (0, _helpers.ngModelAttrsTransformer)(fields, function (field) { | ||
return field.type === 'textarea' && field.templateOptions.grow === false; | ||
return field.type === 'textarea' && field.templateOptions && field.templateOptions.grow === false; | ||
}, 'grow', { | ||
@@ -979,0 +979,0 @@ attribute: 'md-no-autogrow' |
@@ -1,3 +0,3 @@ | ||
/*! angular-formly-material v0.14.1 | MIT | built with ♥ by Kamil Kisiela <mys.sterowiec@gmail.com> */ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("angular")):"function"==typeof define&&define.amd?define(["angular"],t):"object"==typeof exports?exports.ngFormlyMaterial=t(require("angular")):e.ngFormlyMaterial=t(e.angular)}(this,function(e){return function(e){function t(o){if(n[o])return n[o].exports;var a=n[o]={exports:{},id:o,loaded:!1};return e[o].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),l=o(a),r=n(2),i=o(r),u=n(5),d=o(u),s=n(14),p=o(s),f="formlyMaterial";l["default"].module(f,["ngMessages","ngMaterial","formly"]).config(["formlyConfigProvider",function(e){var t=[i["default"],d["default"],p["default"]];t.forEach(function(t){for(var n=0;n<t.length;n++)t[n](e)})}]),t["default"]=f},function(t,n){t.exports=e},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(3),l=o(a);t["default"]=[l["default"]]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(4);t["default"]=function(e){e.extras.fieldTransform.push(function(e){return(0,o.ngModelAttrsTransformer)(e,function(e){return e.templateOptions&&"undefined"!=typeof e.templateOptions.className},"className",{bound:"ng-class"})})}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function a(e,t,n){d["default"].forEach(e,function(e){e.getAttribute(t)||e.setAttribute(t,n)})}function l(e){var t="[ng-model], [data-ng-model]";return e.querySelectorAll(t)}function r(e,t,n,o){var r=document.createElement("div"),i=t.extras&&t.extras.skipNgModelAttrsManipulator;if(i===!0)return e;r.innerHTML=e;var u=l(r);return u&&u.length?(a(u,n,o),r.innerHTML):e}function i(e,t,n,o){return(e||[]).forEach(function(e){t(e)===!0&&(e.ngModelAttrs||(e.ngModelAttrs={}),"undefined"!=typeof e.templateOptions[n]&&(e.ngModelAttrs[n]=o))}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.ngModelAttrsManipulator=r,t.ngModelAttrsTransformer=i;var u=n(1),d=o(u)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(6),l=o(a),r=n(8),i=o(r),u=n(10),d=o(u),s=n(12),p=o(s);t["default"]=[l["default"],i["default"],d["default"],p["default"]]},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(7),l=o(a);t["default"]=function(e){e.setWrapper({template:l["default"],name:"inputContainer"})}},function(e,t){e.exports="<md-input-container md-theme={{to.theme}}><formly-transclude></formly-transclude></md-input-container>"},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(9),l=o(a);t["default"]=function(e){e.setWrapper({template:l["default"],name:"label",apiCheck:function(e){return{templateOptions:{label:e.string}}}})}},function(e,t){e.exports="<label for={{id}} ng-style=\"['input', 'textarea', 'select'].indexOf(options.type) === -1 && {'font-size':'12px', 'color': 'rgb(117, 117, 117)'}\">{{to.label}}</label><formly-transclude></formly-transclude>"},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(11),l=o(a);t["default"]=function(e){e.setWrapper({template:l["default"],name:"messages"})}},function(e,t){e.exports='<formly-transclude></formly-transclude><div ng-messages=fc.$error ng-show=showError><div ng-repeat="(name, message) in ::options.validation.messages" ng-message-exp=name>{{message(fc.$viewValue, fc.$modelValue, this)}}</div></div>'},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(13),l=o(a);t["default"]=function(e){e.setWrapper({template:l["default"],name:"divider",apiCheck:function(e){return{templateOptions:{divider:e.oneOf(["before","after"]).optional}}}})}},function(e,t){e.exports="<md-divider ng-if=\"to.divider === 'before'\"></md-divider><formly-transclude></formly-transclude><md-divider ng-if=\"to.divider !== 'before'\"></md-divider>"},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(15),l=o(a),r=n(17),i=o(r),u=n(19),d=o(u),s=n(21),p=o(s),f=n(23),c=o(f),m=n(25),b=o(m),g=n(27),v=o(g),_=n(29),y=o(_),h=n(31),M=o(h);t["default"]=[l["default"],i["default"],d["default"],p["default"],c["default"],b["default"],v["default"],y["default"],M["default"]]},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(16),l=o(a);t["default"]=function(e){e.setType({template:l["default"],name:"checkbox",defaultOptions:{ngModelAttrs:{disabled:{bound:"ng-disabled"}}},apiCheck:function(e){return{templateOptions:{disabled:e.bool.optional,theme:e.string.optional}}}})}},function(e,t){e.exports="<div><md-checkbox ng-model=model[options.key] md-theme={{to.theme}}>{{to.label}}</md-checkbox></div>"},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(18),l=o(a);t["default"]=function(e){e.setType({template:l["default"],name:"chips",wrapper:["label"],defaultOptions:{defaultValue:[],ngModelAttrs:{placeholder:{attribute:"placeholder"},secondaryPlaceholder:{attribute:"secondary-placeholder"},deleteButtonLabel:{attribute:"delete-button-label"},deleteHint:{attribute:"delete-hint"},onAdd:{bound:"md-on-add"},onRemove:{bound:"md-on-remove"},onSelect:{bound:"md-on-select"}}},apiCheck:function(e){return{templateOptions:{placeholder:e.string.optional,secondaryPlaceholder:e.string.optional,deleteButtonLabel:e.string.optional,deleteHint:e.string.optional,onAdd:e.func.optional,onRemove:e.func.optional,onSelect:e.func.optional,theme:e.string.optional}}}})}},function(e,t){e.exports="<md-chips ng-model=model[options.key] readonly md-theme={{to.theme}}></md-chips>"},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(20),l=o(a);t["default"]=function(e){e.setType({template:l["default"],name:"datepicker",wrapper:["label","messages"],defaultOptions:{templateOptions:{disabled:!1},ngModelAttrs:{disabled:{bound:"ng-disabled"},placeholder:{attribute:"md-placeholder"},minDate:{bound:"md-min-date"},maxDate:{bound:"md-max-date"},filterDate:{bound:"md-date-filter"}}},apiCheck:function(e){return{templateOptions:{disabled:e.bool.optional,placeholder:e.string.optional,minDate:e.instanceOf(Date).optional,maxDate:e.instanceOf(Date).optional,filterDate:e.func.optional,theme:e.string.optional}}}})}},function(e,t){e.exports="<div><md-datepicker ng-model=model[options.key] md-theme={{to.theme}}></md-datepicker></div>"},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(22),l=o(a),r=n(4);t["default"]=function(e){e.setType({template:l["default"],name:"input",wrapper:["label","messages","inputContainer"],defaultOptions:{templateOptions:{type:"text",disabled:!1},ngModelAttrs:{mdMaxlength:{bound:"md-maxlength"},disabled:{bound:"ng-disabled"},pattern:{bound:"ng-pattern"}}},apiCheck:function(e){return{templateOptions:{disabled:e.bool.optional,type:e.string,step:e.number.optional,pattern:e.oneOfType([e.string,e.instanceOf(RegExp)]).optional,theme:e.string.optional}}}}),e.extras.fieldTransform.push(function(e){return(0,r.ngModelAttrsTransformer)(e,function(e){return"input"===e.type&&"number"===e.templateOptions.type},"step",{attribute:"step"})})}},function(e,t){e.exports="<input ng-model=model[options.key]>"},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(24),l=o(a);t["default"]=function(e){e.setType({template:l["default"],name:"radio",wrapper:["label"],apiCheck:function(e){return{templateOptions:{options:e.arrayOf(e.object),labelProp:e.string.optional,valueProp:e.string.optional,theme:e.string.optional}}}})}},function(e,t){e.exports="<md-radio-group ng-model=model[options.key] md-theme={{to.theme}}><md-radio-button ng-repeat=\"option in to.options\" ng-disabled=to.disabled ng-value=\"option[to.valueProp || 'value']\">{{option[to.labelProp || 'name']}}</md-radio-button></md-radio-group>"},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(26),l=o(a),r=n(4);t["default"]=function(e){e.setType({template:l["default"],name:"select",wrapper:["label","messages","inputContainer"],defaultOptions:{templateOptions:{disabled:!1},ngModelAttrs:{disabled:{bound:"ng-disabled"},onClose:{bound:"md-on-close"},onOpen:{bound:"md-on-open"}}},apiCheck:function(e){return{templateOptions:{disabled:e.bool.optional,options:e.arrayOf(e.object),multiple:e.bool.optional,labelProp:e.string.optional,valueProp:e.string.optional,onClose:e.func.optional,onOpen:e.func.optional,theme:e.string.optional}}}}),e.templateManipulators.preWrapper.push(function(e,t){var n=t.templateOptions||{};return n.multiple===!0?(0,r.ngModelAttrsManipulator)(e,t,"multiple"):e})}},function(e,t){e.exports="<md-select ng-model=model[options.key] md-theme={{to.theme}}><md-option ng-repeat=\"option in to.options\" ng-value=\"option[to.valueProp || 'value']\">{{ option[to.labelProp || 'name'] }}</md-option></md-select>"},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(28),l=o(a);t["default"]=function(e){e.setType({template:l["default"],name:"slider",wrapper:["label"],defaultOptions:{templateOptions:{disabled:!1},ngModelAttrs:{disabled:{bound:"ng-disabled"},min:{attribute:"min"},max:{attribute:"max"},step:{attribute:"step"},discrete:{bound:"md-discrete"}}},apiCheck:function(e){return{templateOptions:{disabled:e.bool.optional,min:e.number.optional,max:e.number.optional,step:e.number.optional,discrete:e.bool.optional,theme:e.string.optional}}}})}},function(e,t){e.exports="<md-slider ng-model=model[options.key] md-theme={{to.theme}}></md-slider>"},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(30),l=o(a);t["default"]=function(e){e.setType({template:l["default"],name:"switch",defaultOptions:{templateOptions:{disabled:!1},ngModelAttrs:{disabled:{bound:"ng-disabled"}}},apiCheck:function(e){return{templateOptions:{disabled:e.bool.optional,theme:e.string.optional}}}})}},function(e,t){e.exports="<md-switch ng-model=model[options.key] md-theme={{to.theme}}>{{to.label}}</md-switch>"},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(32),l=o(a),r=n(4);t["default"]=function(e){e.setType({template:l["default"],name:"textarea",wrapper:["label","messages","inputContainer"],defaultOptions:{ngModelAttrs:{disabled:{bound:"ng-disabled"},rows:{attribute:"rows"},cols:{attribute:"cols"}},templateOptions:{grow:!0}},apiCheck:function(e){return{templateOptions:{disabled:e.bool.optional,rows:e.number.optional,cols:e.number.optional,grow:e.bool.optional,theme:e.string.optional}}}}),e.extras.fieldTransform.push(function(e){return(0,r.ngModelAttrsTransformer)(e,function(e){return"textarea"===e.type&&e.templateOptions.grow===!1},"grow",{attribute:"md-no-autogrow"})})}},function(e,t){e.exports="<textarea ng-model=model[options.key]></textarea>"}])}); | ||
/*! angular-formly-material v0.14.2 | MIT | built with ♥ by Kamil Kisiela <mys.sterowiec@gmail.com> */ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("angular")):"function"==typeof define&&define.amd?define(["angular"],t):"object"==typeof exports?exports.ngFormlyMaterial=t(require("angular")):e.ngFormlyMaterial=t(e.angular)}(this,function(e){return function(e){function t(o){if(n[o])return n[o].exports;var a=n[o]={exports:{},id:o,loaded:!1};return e[o].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),l=o(a),r=n(2),i=o(r),u=n(5),d=o(u),s=n(14),p=o(s),f="formlyMaterial";l["default"].module(f,["ngMessages","ngMaterial","formly"]).config(["formlyConfigProvider",function(e){var t=[i["default"],d["default"],p["default"]];t.forEach(function(t){for(var n=0;n<t.length;n++)t[n](e)})}]),t["default"]=f},function(t,n){t.exports=e},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(3),l=o(a);t["default"]=[l["default"]]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(4);t["default"]=function(e){e.extras.fieldTransform.push(function(e){return(0,o.ngModelAttrsTransformer)(e,function(e){return e.templateOptions&&"undefined"!=typeof e.templateOptions.className},"className",{bound:"ng-class"})})}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function a(e,t,n){d["default"].forEach(e,function(e){e.getAttribute(t)||e.setAttribute(t,n)})}function l(e){var t="[ng-model], [data-ng-model]";return e.querySelectorAll(t)}function r(e,t,n,o){var r=document.createElement("div"),i=t.extras&&t.extras.skipNgModelAttrsManipulator;if(i===!0)return e;r.innerHTML=e;var u=l(r);return u&&u.length?(a(u,n,o),r.innerHTML):e}function i(e,t,n,o){return(e||[]).forEach(function(e){t(e)===!0&&(e.ngModelAttrs||(e.ngModelAttrs={}),e.templateOptions&&"undefined"!=typeof e.templateOptions[n]&&(e.ngModelAttrs[n]=o))}),e}Object.defineProperty(t,"__esModule",{value:!0}),t.ngModelAttrsManipulator=r,t.ngModelAttrsTransformer=i;var u=n(1),d=o(u)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(6),l=o(a),r=n(8),i=o(r),u=n(10),d=o(u),s=n(12),p=o(s);t["default"]=[l["default"],i["default"],d["default"],p["default"]]},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(7),l=o(a);t["default"]=function(e){e.setWrapper({template:l["default"],name:"inputContainer"})}},function(e,t){e.exports="<md-input-container md-theme={{to.theme}}> <formly-transclude></formly-transclude> </md-input-container>"},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(9),l=o(a);t["default"]=function(e){e.setWrapper({template:l["default"],name:"label",apiCheck:function(e){return{templateOptions:{label:e.string}}}})}},function(e,t){e.exports="<label for={{id}} ng-style=\"['input', 'textarea', 'select'].indexOf(options.type) === -1 && {'font-size':'12px', 'color': 'rgb(117, 117, 117)', 'padding-left': '3px'}\"> {{to.label}} </label> <formly-transclude></formly-transclude>"},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(11),l=o(a);t["default"]=function(e){e.setWrapper({template:l["default"],name:"messages"})}},function(e,t){e.exports='<formly-transclude></formly-transclude> <div ng-messages=fc.$error ng-show=showError> <div ng-repeat="(name, message) in ::options.validation.messages" ng-message-exp=name> {{message(fc.$viewValue, fc.$modelValue, this)}} </div> </div>'},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(13),l=o(a);t["default"]=function(e){e.setWrapper({template:l["default"],name:"divider",apiCheck:function(e){return{templateOptions:{divider:e.oneOf(["before","after"]).optional}}}})}},function(e,t){e.exports="<md-divider ng-if=\"to.divider === 'before'\"></md-divider> <formly-transclude></formly-transclude> <md-divider ng-if=\"to.divider !== 'before'\"></md-divider>"},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(15),l=o(a),r=n(17),i=o(r),u=n(19),d=o(u),s=n(21),p=o(s),f=n(23),c=o(f),m=n(25),b=o(m),g=n(27),v=o(g),_=n(29),y=o(_),h=n(31),M=o(h);t["default"]=[l["default"],i["default"],d["default"],p["default"],c["default"],b["default"],v["default"],y["default"],M["default"]]},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(16),l=o(a);t["default"]=function(e){e.setType({template:l["default"],name:"checkbox",defaultOptions:{ngModelAttrs:{disabled:{bound:"ng-disabled"}}},apiCheck:function(e){return{templateOptions:{disabled:e.bool.optional,theme:e.string.optional}}}})}},function(e,t){e.exports="<div> <md-checkbox ng-model=model[options.key] md-theme={{to.theme}}> {{to.label}} </md-checkbox> </div>"},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(18),l=o(a);t["default"]=function(e){e.setType({template:l["default"],name:"chips",wrapper:["label"],defaultOptions:{defaultValue:[],ngModelAttrs:{placeholder:{attribute:"placeholder"},secondaryPlaceholder:{attribute:"secondary-placeholder"},deleteButtonLabel:{attribute:"delete-button-label"},deleteHint:{attribute:"delete-hint"},onAdd:{bound:"md-on-add"},onRemove:{bound:"md-on-remove"},onSelect:{bound:"md-on-select"}}},apiCheck:function(e){return{templateOptions:{placeholder:e.string.optional,secondaryPlaceholder:e.string.optional,deleteButtonLabel:e.string.optional,deleteHint:e.string.optional,onAdd:e.func.optional,onRemove:e.func.optional,onSelect:e.func.optional,theme:e.string.optional}}}})}},function(e,t){e.exports="<md-chips ng-model=model[options.key] readonly=to.disabled md-theme={{to.theme}}></md-chips>"},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(20),l=o(a);t["default"]=function(e){e.setType({template:l["default"],name:"datepicker",wrapper:["label","messages"],defaultOptions:{templateOptions:{disabled:!1},ngModelAttrs:{disabled:{bound:"ng-disabled"},placeholder:{attribute:"md-placeholder"},minDate:{bound:"md-min-date"},maxDate:{bound:"md-max-date"},filterDate:{bound:"md-date-filter"}}},apiCheck:function(e){return{templateOptions:{disabled:e.bool.optional,placeholder:e.string.optional,minDate:e.instanceOf(Date).optional,maxDate:e.instanceOf(Date).optional,filterDate:e.func.optional,theme:e.string.optional}}}})}},function(e,t){e.exports="<div> <md-datepicker ng-model=model[options.key] md-theme={{to.theme}}></md-datepicker> </div>"},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(22),l=o(a),r=n(4);t["default"]=function(e){e.setType({template:l["default"],name:"input",wrapper:["label","messages","inputContainer"],defaultOptions:{templateOptions:{type:"text",disabled:!1},ngModelAttrs:{mdMaxlength:{bound:"md-maxlength"},disabled:{bound:"ng-disabled"},pattern:{bound:"ng-pattern"}}},apiCheck:function(e){return{templateOptions:{disabled:e.bool.optional,type:e.string,step:e.number.optional,pattern:e.oneOfType([e.string,e.instanceOf(RegExp)]).optional,theme:e.string.optional}}}}),e.extras.fieldTransform.push(function(e){return(0,r.ngModelAttrsTransformer)(e,function(e){return"input"===e.type&&e.templateOptions&&"number"===e.templateOptions.type},"step",{attribute:"step"})})}},function(e,t){e.exports="<input ng-model=model[options.key]>"},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(24),l=o(a);t["default"]=function(e){e.setType({template:l["default"],name:"radio",wrapper:["label"],apiCheck:function(e){return{templateOptions:{options:e.arrayOf(e.object),labelProp:e.string.optional,valueProp:e.string.optional,theme:e.string.optional}}}})}},function(e,t){e.exports="<md-radio-group ng-model=model[options.key] md-theme={{to.theme}}> <md-radio-button ng-repeat=\"option in to.options\" ng-disabled=to.disabled ng-value=\"option[to.valueProp || 'value']\"> {{option[to.labelProp || 'name']}} </md-radio-button> </md-radio-group>"},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(26),l=o(a),r=n(4);t["default"]=function(e){e.setType({template:l["default"],name:"select",wrapper:["label","messages","inputContainer"],defaultOptions:{templateOptions:{disabled:!1},ngModelAttrs:{disabled:{bound:"ng-disabled"},onClose:{bound:"md-on-close"},onOpen:{bound:"md-on-open"}}},apiCheck:function(e){return{templateOptions:{disabled:e.bool.optional,options:e.arrayOf(e.object),multiple:e.bool.optional,labelProp:e.string.optional,valueProp:e.string.optional,onClose:e.func.optional,onOpen:e.func.optional,theme:e.string.optional}}}}),e.templateManipulators.preWrapper.push(function(e,t){var n=t.templateOptions||{};return n.multiple===!0?(0,r.ngModelAttrsManipulator)(e,t,"multiple"):e})}},function(e,t){e.exports="<md-select ng-model=model[options.key] md-theme={{to.theme}}> <md-option ng-repeat=\"option in to.options\" ng-value=\"option[to.valueProp || 'value']\"> {{ option[to.labelProp || 'name'] }} </md-option> </md-select>"},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(28),l=o(a);t["default"]=function(e){e.setType({template:l["default"],name:"slider",wrapper:["label"],defaultOptions:{templateOptions:{disabled:!1},ngModelAttrs:{disabled:{bound:"ng-disabled"},min:{attribute:"min"},max:{attribute:"max"},step:{attribute:"step"},discrete:{bound:"md-discrete"}}},apiCheck:function(e){return{templateOptions:{disabled:e.bool.optional,min:e.number.optional,max:e.number.optional,step:e.number.optional,discrete:e.bool.optional,theme:e.string.optional}}}})}},function(e,t){e.exports="<md-slider ng-model=model[options.key] md-theme={{to.theme}}></md-slider>"},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(30),l=o(a);t["default"]=function(e){e.setType({template:l["default"],name:"switch",defaultOptions:{templateOptions:{disabled:!1},ngModelAttrs:{disabled:{bound:"ng-disabled"}}},apiCheck:function(e){return{templateOptions:{disabled:e.bool.optional,theme:e.string.optional}}}})}},function(e,t){e.exports="<md-switch ng-model=model[options.key] md-theme={{to.theme}}> {{to.label}} </md-switch>"},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(32),l=o(a),r=n(4);t["default"]=function(e){e.setType({template:l["default"],name:"textarea",wrapper:["label","messages","inputContainer"],defaultOptions:{ngModelAttrs:{disabled:{bound:"ng-disabled"},rows:{attribute:"rows"},cols:{attribute:"cols"}},templateOptions:{grow:!0}},apiCheck:function(e){return{templateOptions:{disabled:e.bool.optional,rows:e.number.optional,cols:e.number.optional,grow:e.bool.optional,theme:e.string.optional}}}}),e.extras.fieldTransform.push(function(e){return(0,r.ngModelAttrsTransformer)(e,function(e){return"textarea"===e.type&&e.templateOptions&&e.templateOptions.grow===!1},"grow",{attribute:"md-no-autogrow"})})}},function(e,t){e.exports="<textarea ng-model=model[options.key]></textarea>"}])}); | ||
//# sourceMappingURL=formly-material.min.js.map |
{ | ||
"name": "angular-formly-material", | ||
"version": "0.14.1", | ||
"version": "0.14.2", | ||
"description": "Material design templates for angular-formly", | ||
@@ -38,6 +38,6 @@ "main": "dist/formly-material.js", | ||
"dependencies": { | ||
"angular": "^1.4.0", | ||
"angular-messages": "^1.4.0", | ||
"angular-animate": "^1.4.0", | ||
"angular-aria": "^1.4.0", | ||
"angular": ">= 1.4.0-beta.0 || >= 1.5.0-beta.0", | ||
"angular-messages": ">= 1.4.0-beta.0 || >= 1.5.0-beta.0", | ||
"angular-animate": ">= 1.4.0-beta.0 || >= 1.5.0-beta.0", | ||
"angular-aria": ">= 1.4.0-beta.0 || >= 1.5.0-beta.0", | ||
"angular-material": "^1.0.0", | ||
@@ -48,3 +48,3 @@ "angular-formly": ">=7.3.0", | ||
"devDependencies": { | ||
"angular-mocks": "^1.4.0", | ||
"angular-mocks": "^1.5.0", | ||
"argv-set-env": "^1.0.0", | ||
@@ -51,0 +51,0 @@ "babel": "^6.3.26", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
123111
23