angular-formly-material
Advanced tools
Comparing version 0.14.0 to 0.14.1
@@ -5,2 +5,13 @@ # Change Log | ||
## [0.14.1](https://github.com/formly-js/angular-formly-templates-material/compare/v0.14.0...v0.14.1) - 2016-01-27 | ||
### Added | ||
- Demo (formly-material.meteor.com) | ||
### Fixed | ||
- #22 | ||
- #23 | ||
## [0.14.0](https://github.com/formly-js/angular-formly-templates-material/compare/v0.13.0...v0.14.0) | ||
@@ -7,0 +18,0 @@ |
@@ -1,8 +0,2 @@ | ||
/*! | ||
* angular-formly-material JavaScript Library v0.13.0 | ||
* | ||
* @license MIT (http://license.angular-formly.com) | ||
* | ||
* built with ♥ by Kamil Kisiela <mys.sterowiec@gmail.com> | ||
*/ | ||
/*! angular-formly-material v0.14.1 | MIT | built with ♥ by Kamil Kisiela <mys.sterowiec@gmail.com> */ | ||
(function webpackUniversalModuleDefinition(root, factory) { | ||
@@ -66,8 +60,6 @@ if(typeof exports === 'object' && typeof module === 'object') | ||
Object.defineProperty(exports, '__esModule', { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
var _angular = __webpack_require__(1); | ||
@@ -81,14 +73,16 @@ | ||
var _wrappers = __webpack_require__(6); | ||
var _wrappers = __webpack_require__(5); | ||
var _wrappers2 = _interopRequireDefault(_wrappers); | ||
var _types = __webpack_require__(15); | ||
var _types = __webpack_require__(14); | ||
var _types2 = _interopRequireDefault(_types); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var ngModuleName = 'formlyMaterial'; | ||
_angular2['default'].module(ngModuleName, ['ngMessages', 'ngMaterial', 'formly']).config(['formlyConfigProvider', function (formlyConfigProvider) { | ||
var configs = [_runs2['default'], _wrappers2['default'], _types2['default']]; | ||
_angular2.default.module(ngModuleName, ['ngMessages', 'ngMaterial', 'formly']).config(['formlyConfigProvider', function (formlyConfigProvider) { | ||
var configs = [_runs2.default, _wrappers2.default, _types2.default]; | ||
@@ -103,4 +97,3 @@ configs.forEach(function (config) { | ||
exports['default'] = ngModuleName; | ||
module.exports = exports['default']; | ||
exports.default = ngModuleName; | ||
@@ -119,8 +112,6 @@ /***/ }, | ||
Object.defineProperty(exports, '__esModule', { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
var _className = __webpack_require__(3); | ||
@@ -130,9 +121,6 @@ | ||
var _theme = __webpack_require__(5); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _theme2 = _interopRequireDefault(_theme); | ||
exports.default = [_className2.default]; | ||
exports['default'] = [_className2['default'], _theme2['default']]; | ||
module.exports = exports['default']; | ||
/***/ }, | ||
@@ -144,12 +132,12 @@ /* 3 */ | ||
Object.defineProperty(exports, '__esModule', { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var _helpersIndexJs = __webpack_require__(4); | ||
var _helpers = __webpack_require__(4); | ||
exports['default'] = function (formlyConfigProvider) { | ||
exports.default = function (formlyConfigProvider) { | ||
// add only step attribute because min and max are both built-in | ||
formlyConfigProvider.extras.fieldTransform.push(function (fields) { | ||
return (0, _helpersIndexJs.ngModelAttrsTransformer)(fields, function (field) { | ||
return (0, _helpers.ngModelAttrsTransformer)(fields, function (field) { | ||
return field.templateOptions && typeof field.templateOptions.className !== 'undefined'; | ||
@@ -162,4 +150,2 @@ }, 'className', { | ||
module.exports = exports['default']; | ||
/***/ }, | ||
@@ -171,3 +157,3 @@ /* 4 */ | ||
Object.defineProperty(exports, '__esModule', { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
@@ -178,4 +164,2 @@ }); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
var _angular = __webpack_require__(1); | ||
@@ -185,2 +169,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -194,3 +180,3 @@ * Sets attribute with optional value. | ||
function addIfNotPresent(nodes, attr, val) { | ||
_angular2['default'].forEach(nodes, function (node) { | ||
_angular2.default.forEach(nodes, function (node) { | ||
if (!node.getAttribute(attr)) { | ||
@@ -222,3 +208,2 @@ node.setAttribute(attr, val); | ||
*/ | ||
function ngModelAttrsManipulator(template, options, attrName, attrValue) { | ||
@@ -251,3 +236,2 @@ var node = document.createElement('div'); | ||
*/ | ||
function ngModelAttrsTransformer(fields, condition, name, settings) { | ||
@@ -275,54 +259,28 @@ (fields || []).forEach(function (field) { | ||
Object.defineProperty(exports, '__esModule', { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var _helpersIndexJs = __webpack_require__(4); | ||
var _inputContainer = __webpack_require__(6); | ||
exports['default'] = function (formlyConfigProvider) { | ||
formlyConfigProvider.templateManipulators.preWrapper.push(function (template, options) { | ||
// adds md-theme only when: | ||
// templateOptions.theme is defined | ||
if (typeof options.templateOptions.theme !== 'undefined') { | ||
return (0, _helpersIndexJs.ngModelAttrsManipulator)(template, options, 'md-theme', options.templateOptions.theme); | ||
} | ||
return template; | ||
}); | ||
}; | ||
var _inputContainer2 = _interopRequireDefault(_inputContainer); | ||
module.exports = exports['default']; | ||
var _label = __webpack_require__(8); | ||
/***/ }, | ||
/* 6 */ | ||
/***/ function(module, exports, __webpack_require__) { | ||
var _label2 = _interopRequireDefault(_label); | ||
'use strict'; | ||
var _messages = __webpack_require__(10); | ||
Object.defineProperty(exports, '__esModule', { | ||
value: true | ||
}); | ||
var _messages2 = _interopRequireDefault(_messages); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
var _divider = __webpack_require__(12); | ||
var _inputContainerInputContainer = __webpack_require__(7); | ||
var _divider2 = _interopRequireDefault(_divider); | ||
var _inputContainerInputContainer2 = _interopRequireDefault(_inputContainerInputContainer); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _labelLabel = __webpack_require__(9); | ||
exports.default = [_inputContainer2.default, _label2.default, _messages2.default, _divider2.default]; | ||
var _labelLabel2 = _interopRequireDefault(_labelLabel); | ||
var _messagesMessages = __webpack_require__(11); | ||
var _messagesMessages2 = _interopRequireDefault(_messagesMessages); | ||
var _dividerDivider = __webpack_require__(13); | ||
var _dividerDivider2 = _interopRequireDefault(_dividerDivider); | ||
exports['default'] = [_inputContainerInputContainer2['default'], _labelLabel2['default'], _messagesMessages2['default'], _dividerDivider2['default']]; | ||
module.exports = exports['default']; | ||
/***/ }, | ||
/* 7 */ | ||
/* 6 */ | ||
/***/ function(module, exports, __webpack_require__) { | ||
@@ -332,15 +290,15 @@ | ||
Object.defineProperty(exports, '__esModule', { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
var _inputContainer = __webpack_require__(7); | ||
var _inputContainerHtml = __webpack_require__(8); | ||
var _inputContainer2 = _interopRequireDefault(_inputContainer); | ||
var _inputContainerHtml2 = _interopRequireDefault(_inputContainerHtml); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
exports['default'] = function (formlyConfigProvider) { | ||
exports.default = function (formlyConfigProvider) { | ||
formlyConfigProvider.setWrapper({ | ||
template: _inputContainerHtml2['default'], | ||
template: _inputContainer2.default, | ||
name: 'inputContainer' | ||
@@ -350,12 +308,10 @@ }); | ||
module.exports = exports['default']; | ||
/***/ }, | ||
/* 8 */ | ||
/* 7 */ | ||
/***/ function(module, exports) { | ||
module.exports = "<md-input-container>\r\n <formly-transclude></formly-transclude>\r\n</md-input-container>"; | ||
module.exports = "<md-input-container md-theme=\"{{to.theme}}\">\n <formly-transclude></formly-transclude>\n</md-input-container>\n"; | ||
/***/ }, | ||
/* 9 */ | ||
/* 8 */ | ||
/***/ function(module, exports, __webpack_require__) { | ||
@@ -365,15 +321,15 @@ | ||
Object.defineProperty(exports, '__esModule', { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
var _label = __webpack_require__(9); | ||
var _labelHtml = __webpack_require__(10); | ||
var _label2 = _interopRequireDefault(_label); | ||
var _labelHtml2 = _interopRequireDefault(_labelHtml); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
exports['default'] = function (formlyConfigProvider) { | ||
exports.default = function (formlyConfigProvider) { | ||
formlyConfigProvider.setWrapper({ | ||
template: _labelHtml2['default'], | ||
template: _label2.default, | ||
name: 'label', | ||
@@ -390,12 +346,10 @@ apiCheck: function apiCheck(check) { | ||
module.exports = exports['default']; | ||
/***/ }, | ||
/* 10 */ | ||
/* 9 */ | ||
/***/ function(module, exports) { | ||
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"; | ||
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"; | ||
/***/ }, | ||
/* 11 */ | ||
/* 10 */ | ||
/***/ function(module, exports, __webpack_require__) { | ||
@@ -405,15 +359,15 @@ | ||
Object.defineProperty(exports, '__esModule', { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
var _messages = __webpack_require__(11); | ||
var _messagesHtml = __webpack_require__(12); | ||
var _messages2 = _interopRequireDefault(_messages); | ||
var _messagesHtml2 = _interopRequireDefault(_messagesHtml); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
exports['default'] = function (formlyConfigProvider) { | ||
exports.default = function (formlyConfigProvider) { | ||
formlyConfigProvider.setWrapper({ | ||
template: _messagesHtml2['default'], | ||
template: _messages2.default, | ||
name: 'messages' | ||
@@ -423,6 +377,4 @@ }); | ||
module.exports = exports['default']; | ||
/***/ }, | ||
/* 12 */ | ||
/* 11 */ | ||
/***/ function(module, exports) { | ||
@@ -433,3 +385,3 @@ | ||
/***/ }, | ||
/* 13 */ | ||
/* 12 */ | ||
/***/ function(module, exports, __webpack_require__) { | ||
@@ -439,15 +391,15 @@ | ||
Object.defineProperty(exports, '__esModule', { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
var _divider = __webpack_require__(13); | ||
var _dividerHtml = __webpack_require__(14); | ||
var _divider2 = _interopRequireDefault(_divider); | ||
var _dividerHtml2 = _interopRequireDefault(_dividerHtml); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
exports['default'] = function (formlyConfigProvider) { | ||
exports.default = function (formlyConfigProvider) { | ||
formlyConfigProvider.setWrapper({ | ||
template: _dividerHtml2['default'], | ||
template: _divider2.default, | ||
name: 'divider', | ||
@@ -464,6 +416,4 @@ apiCheck: function apiCheck(check) { | ||
module.exports = exports['default']; | ||
/***/ }, | ||
/* 14 */ | ||
/* 13 */ | ||
/***/ function(module, exports) { | ||
@@ -474,3 +424,3 @@ | ||
/***/ }, | ||
/* 15 */ | ||
/* 14 */ | ||
/***/ function(module, exports, __webpack_require__) { | ||
@@ -480,49 +430,48 @@ | ||
Object.defineProperty(exports, '__esModule', { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
var _checkbox = __webpack_require__(15); | ||
var _checkboxCheckbox = __webpack_require__(16); | ||
var _checkbox2 = _interopRequireDefault(_checkbox); | ||
var _checkboxCheckbox2 = _interopRequireDefault(_checkboxCheckbox); | ||
var _chips = __webpack_require__(17); | ||
var _chipsChips = __webpack_require__(18); | ||
var _chips2 = _interopRequireDefault(_chips); | ||
var _chipsChips2 = _interopRequireDefault(_chipsChips); | ||
var _datepicker = __webpack_require__(19); | ||
var _datepickerDatepicker = __webpack_require__(20); | ||
var _datepicker2 = _interopRequireDefault(_datepicker); | ||
var _datepickerDatepicker2 = _interopRequireDefault(_datepickerDatepicker); | ||
var _input = __webpack_require__(21); | ||
var _inputInput = __webpack_require__(22); | ||
var _input2 = _interopRequireDefault(_input); | ||
var _inputInput2 = _interopRequireDefault(_inputInput); | ||
var _radio = __webpack_require__(23); | ||
var _radioRadio = __webpack_require__(24); | ||
var _radio2 = _interopRequireDefault(_radio); | ||
var _radioRadio2 = _interopRequireDefault(_radioRadio); | ||
var _select = __webpack_require__(25); | ||
var _selectSelect = __webpack_require__(26); | ||
var _select2 = _interopRequireDefault(_select); | ||
var _selectSelect2 = _interopRequireDefault(_selectSelect); | ||
var _slider = __webpack_require__(27); | ||
var _sliderSlider = __webpack_require__(28); | ||
var _slider2 = _interopRequireDefault(_slider); | ||
var _sliderSlider2 = _interopRequireDefault(_sliderSlider); | ||
var _switch = __webpack_require__(29); | ||
var _switchSwitch = __webpack_require__(30); | ||
var _switch2 = _interopRequireDefault(_switch); | ||
var _switchSwitch2 = _interopRequireDefault(_switchSwitch); | ||
var _textarea = __webpack_require__(31); | ||
var _textareaTextarea = __webpack_require__(32); | ||
var _textarea2 = _interopRequireDefault(_textarea); | ||
var _textareaTextarea2 = _interopRequireDefault(_textareaTextarea); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
exports['default'] = [_checkboxCheckbox2['default'], _chipsChips2['default'], _datepickerDatepicker2['default'], _inputInput2['default'], _radioRadio2['default'], _selectSelect2['default'], _sliderSlider2['default'], _switchSwitch2['default'], _textareaTextarea2['default']]; | ||
module.exports = exports['default']; | ||
exports.default = [_checkbox2.default, _chips2.default, _datepicker2.default, _input2.default, _radio2.default, _select2.default, _slider2.default, _switch2.default, _textarea2.default]; | ||
/***/ }, | ||
/* 16 */ | ||
/* 15 */ | ||
/***/ function(module, exports, __webpack_require__) { | ||
@@ -532,15 +481,15 @@ | ||
Object.defineProperty(exports, '__esModule', { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
var _checkbox = __webpack_require__(16); | ||
var _checkboxHtml = __webpack_require__(17); | ||
var _checkbox2 = _interopRequireDefault(_checkbox); | ||
var _checkboxHtml2 = _interopRequireDefault(_checkboxHtml); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
exports['default'] = function (formlyConfigProvider) { | ||
exports.default = function (formlyConfigProvider) { | ||
formlyConfigProvider.setType({ | ||
template: _checkboxHtml2['default'], | ||
template: _checkbox2.default, | ||
name: 'checkbox', | ||
@@ -557,3 +506,4 @@ defaultOptions: { | ||
templateOptions: { | ||
disabled: check.bool.optional | ||
disabled: check.bool.optional, | ||
theme: check.string.optional | ||
} | ||
@@ -565,12 +515,10 @@ }; | ||
module.exports = exports['default']; | ||
/***/ }, | ||
/* 17 */ | ||
/* 16 */ | ||
/***/ function(module, exports) { | ||
module.exports = "<div>\r\n <md-checkbox ng-model=\"model[options.key]\">\r\n {{to.label}}\r\n </md-checkbox>\r\n</div>"; | ||
module.exports = "<div>\n <md-checkbox ng-model=\"model[options.key]\" md-theme=\"{{to.theme}}\">\n {{to.label}}\n </md-checkbox>\n</div>\n"; | ||
/***/ }, | ||
/* 18 */ | ||
/* 17 */ | ||
/***/ function(module, exports, __webpack_require__) { | ||
@@ -580,15 +528,15 @@ | ||
Object.defineProperty(exports, '__esModule', { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
var _chips = __webpack_require__(18); | ||
var _chipsHtml = __webpack_require__(19); | ||
var _chips2 = _interopRequireDefault(_chips); | ||
var _chipsHtml2 = _interopRequireDefault(_chipsHtml); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
exports['default'] = function (formlyConfigProvider) { | ||
exports.default = function (formlyConfigProvider) { | ||
formlyConfigProvider.setType({ | ||
template: _chipsHtml2['default'], | ||
template: _chips2.default, | ||
name: 'chips', | ||
@@ -631,3 +579,4 @@ wrapper: ['label'], | ||
onRemove: check.func.optional, | ||
onSelect: check.func.optional | ||
onSelect: check.func.optional, | ||
theme: check.string.optional | ||
} | ||
@@ -639,12 +588,10 @@ }; | ||
module.exports = exports['default']; | ||
/***/ }, | ||
/* 19 */ | ||
/* 18 */ | ||
/***/ function(module, exports) { | ||
module.exports = "<md-chips ng-model=\"model[options.key]\" readonly=\"to.disabled\"></md-chips>\r\n"; | ||
module.exports = "<md-chips ng-model=\"model[options.key]\" readonly=\"to.disabled\" md-theme=\"{{to.theme}}\"></md-chips>\n"; | ||
/***/ }, | ||
/* 20 */ | ||
/* 19 */ | ||
/***/ function(module, exports, __webpack_require__) { | ||
@@ -654,15 +601,15 @@ | ||
Object.defineProperty(exports, '__esModule', { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
var _datepicker = __webpack_require__(20); | ||
var _datepickerHtml = __webpack_require__(21); | ||
var _datepicker2 = _interopRequireDefault(_datepicker); | ||
var _datepickerHtml2 = _interopRequireDefault(_datepickerHtml); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
exports['default'] = function (formlyConfigProvider) { | ||
exports.default = function (formlyConfigProvider) { | ||
formlyConfigProvider.setType({ | ||
template: _datepickerHtml2['default'], | ||
template: _datepicker2.default, | ||
name: 'datepicker', | ||
@@ -699,3 +646,4 @@ wrapper: ['label', 'messages'], | ||
maxDate: check.instanceOf(Date).optional, | ||
filterDate: check.func.optional | ||
filterDate: check.func.optional, | ||
theme: check.string.optional | ||
} | ||
@@ -707,12 +655,10 @@ }; | ||
module.exports = exports['default']; | ||
/***/ }, | ||
/* 21 */ | ||
/* 20 */ | ||
/***/ function(module, exports) { | ||
module.exports = "<div>\r\n <md-datepicker ng-model=\"model[options.key]\"></md-datepicker>\r\n</div>"; | ||
module.exports = "<div>\n <md-datepicker ng-model=\"model[options.key]\" md-theme=\"{{to.theme}}\"></md-datepicker>\n</div>\n"; | ||
/***/ }, | ||
/* 22 */ | ||
/* 21 */ | ||
/***/ function(module, exports, __webpack_require__) { | ||
@@ -722,17 +668,17 @@ | ||
Object.defineProperty(exports, '__esModule', { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
var _input = __webpack_require__(22); | ||
var _inputHtml = __webpack_require__(23); | ||
var _input2 = _interopRequireDefault(_input); | ||
var _inputHtml2 = _interopRequireDefault(_inputHtml); | ||
var _helpers = __webpack_require__(4); | ||
exports['default'] = function (formlyConfigProvider) { | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
exports.default = function (formlyConfigProvider) { | ||
formlyConfigProvider.setType({ | ||
template: _inputHtml2['default'], | ||
template: _input2.default, | ||
name: 'input', | ||
@@ -763,3 +709,4 @@ wrapper: ['label', 'messages', 'inputContainer'], | ||
step: check.number.optional, | ||
pattern: check.oneOfType([check.string, check.instanceOf(RegExp)]).optional | ||
pattern: check.oneOfType([check.string, check.instanceOf(RegExp)]).optional, | ||
theme: check.string.optional | ||
} | ||
@@ -780,6 +727,4 @@ }; | ||
module.exports = exports['default']; | ||
/***/ }, | ||
/* 23 */ | ||
/* 22 */ | ||
/***/ function(module, exports) { | ||
@@ -790,3 +735,3 @@ | ||
/***/ }, | ||
/* 24 */ | ||
/* 23 */ | ||
/***/ function(module, exports, __webpack_require__) { | ||
@@ -796,15 +741,15 @@ | ||
Object.defineProperty(exports, '__esModule', { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
var _radio = __webpack_require__(24); | ||
var _radioHtml = __webpack_require__(25); | ||
var _radio2 = _interopRequireDefault(_radio); | ||
var _radioHtml2 = _interopRequireDefault(_radioHtml); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
exports['default'] = function (formlyConfigProvider) { | ||
exports.default = function (formlyConfigProvider) { | ||
formlyConfigProvider.setType({ | ||
template: _radioHtml2['default'], | ||
template: _radio2.default, | ||
name: 'radio', | ||
@@ -817,3 +762,4 @@ wrapper: ['label'], | ||
labelProp: check.string.optional, | ||
valueProp: check.string.optional | ||
valueProp: check.string.optional, | ||
theme: check.string.optional | ||
} | ||
@@ -825,12 +771,10 @@ }; | ||
module.exports = exports['default']; | ||
/***/ }, | ||
/* 25 */ | ||
/* 24 */ | ||
/***/ function(module, exports) { | ||
module.exports = "<md-radio-group ng-model=\"model[options.key]\">\r\n <md-radio-button\r\n ng-repeat=\"option in to.options\"\r\n ng-disabled=\"to.disabled\"\r\n ng-value=\"option[to.valueProp || 'value']\">\r\n {{option[to.labelProp || 'name']}}\r\n </md-radio-button>\r\n</md-radio-group>\r\n"; | ||
module.exports = "<md-radio-group ng-model=\"model[options.key]\" md-theme=\"{{to.theme}}\">\n <md-radio-button\n ng-repeat=\"option in to.options\"\n ng-disabled=\"to.disabled\"\n ng-value=\"option[to.valueProp || 'value']\">\n {{option[to.labelProp || 'name']}}\n </md-radio-button>\n</md-radio-group>\n"; | ||
/***/ }, | ||
/* 26 */ | ||
/* 25 */ | ||
/***/ function(module, exports, __webpack_require__) { | ||
@@ -840,15 +784,17 @@ | ||
Object.defineProperty(exports, '__esModule', { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
var _select = __webpack_require__(26); | ||
var _selectHtml = __webpack_require__(27); | ||
var _select2 = _interopRequireDefault(_select); | ||
var _selectHtml2 = _interopRequireDefault(_selectHtml); | ||
var _helpers = __webpack_require__(4); | ||
exports['default'] = function (formlyConfigProvider) { | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
exports.default = function (formlyConfigProvider) { | ||
formlyConfigProvider.setType({ | ||
template: _selectHtml2['default'], | ||
template: _select2.default, | ||
name: 'select', | ||
@@ -864,5 +810,2 @@ wrapper: ['label', 'messages', 'inputContainer'], | ||
}, | ||
multiple: { | ||
bound: 'multiple' | ||
}, | ||
onClose: { | ||
@@ -885,3 +828,4 @@ bound: 'md-on-close' | ||
onClose: check.func.optional, | ||
onOpen: check.func.optional | ||
onOpen: check.func.optional, | ||
theme: check.string.optional | ||
} | ||
@@ -891,14 +835,19 @@ }; | ||
}); | ||
formlyConfigProvider.templateManipulators.preWrapper.push(function (tpl, options) { | ||
var to = options.templateOptions || {}; | ||
// adds multiple only when: | ||
// templateOptions.multiple equals true | ||
return to.multiple === true ? (0, _helpers.ngModelAttrsManipulator)(tpl, options, 'multiple') : tpl; | ||
}); | ||
}; | ||
module.exports = exports['default']; | ||
/***/ }, | ||
/* 27 */ | ||
/* 26 */ | ||
/***/ function(module, exports) { | ||
module.exports = "<md-select ng-model=\"model[options.key]\">\r\n <md-option ng-repeat=\"option in to.options\" ng-value=\"option[to.valueProp || 'value']\">\r\n {{ option[to.labelProp || 'name'] }}\r\n </md-option>\r\n</md-select>"; | ||
module.exports = "<md-select ng-model=\"model[options.key]\" md-theme=\"{{to.theme}}\">\n <md-option ng-repeat=\"option in to.options\" ng-value=\"option[to.valueProp || 'value']\">\n {{ option[to.labelProp || 'name'] }}\n </md-option>\n</md-select>\n"; | ||
/***/ }, | ||
/* 28 */ | ||
/* 27 */ | ||
/***/ function(module, exports, __webpack_require__) { | ||
@@ -908,15 +857,15 @@ | ||
Object.defineProperty(exports, '__esModule', { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
var _slider = __webpack_require__(28); | ||
var _sliderHtml = __webpack_require__(29); | ||
var _slider2 = _interopRequireDefault(_slider); | ||
var _sliderHtml2 = _interopRequireDefault(_sliderHtml); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
exports['default'] = function (formlyConfigProvider) { | ||
exports.default = function (formlyConfigProvider) { | ||
formlyConfigProvider.setType({ | ||
template: _sliderHtml2['default'], | ||
template: _slider2.default, | ||
name: 'slider', | ||
@@ -953,3 +902,4 @@ wrapper: ['label'], | ||
step: check.number.optional, | ||
discrete: check.bool.optional | ||
discrete: check.bool.optional, | ||
theme: check.string.optional | ||
} | ||
@@ -961,12 +911,10 @@ }; | ||
module.exports = exports['default']; | ||
/***/ }, | ||
/* 29 */ | ||
/* 28 */ | ||
/***/ function(module, exports) { | ||
module.exports = "<md-slider ng-model=\"model[options.key]\"></md-slider>"; | ||
module.exports = "<md-slider ng-model=\"model[options.key]\" md-theme=\"{{to.theme}}\"></md-slider>\n"; | ||
/***/ }, | ||
/* 30 */ | ||
/* 29 */ | ||
/***/ function(module, exports, __webpack_require__) { | ||
@@ -976,15 +924,15 @@ | ||
Object.defineProperty(exports, '__esModule', { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
var _switch = __webpack_require__(30); | ||
var _switchHtml = __webpack_require__(31); | ||
var _switch2 = _interopRequireDefault(_switch); | ||
var _switchHtml2 = _interopRequireDefault(_switchHtml); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
exports['default'] = function (formlyConfigProvider) { | ||
exports.default = function (formlyConfigProvider) { | ||
formlyConfigProvider.setType({ | ||
template: _switchHtml2['default'], | ||
template: _switch2.default, | ||
name: 'switch', | ||
@@ -1004,3 +952,4 @@ defaultOptions: { | ||
templateOptions: { | ||
disabled: check.bool.optional | ||
disabled: check.bool.optional, | ||
theme: check.string.optional | ||
} | ||
@@ -1012,12 +961,10 @@ }; | ||
module.exports = exports['default']; | ||
/***/ }, | ||
/* 31 */ | ||
/* 30 */ | ||
/***/ function(module, exports) { | ||
module.exports = "<md-switch ng-model=\"model[options.key]\">\r\n {{to.label}}\r\n</md-switch>"; | ||
module.exports = "<md-switch ng-model=\"model[options.key]\" md-theme=\"{{to.theme}}\">\n {{to.label}}\n</md-switch>\n"; | ||
/***/ }, | ||
/* 32 */ | ||
/* 31 */ | ||
/***/ function(module, exports, __webpack_require__) { | ||
@@ -1027,17 +974,17 @@ | ||
Object.defineProperty(exports, '__esModule', { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
var _textarea = __webpack_require__(32); | ||
var _textareaHtml = __webpack_require__(33); | ||
var _textarea2 = _interopRequireDefault(_textarea); | ||
var _textareaHtml2 = _interopRequireDefault(_textareaHtml); | ||
var _helpers = __webpack_require__(4); | ||
exports['default'] = function (formlyConfigProvider) { | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
exports.default = function (formlyConfigProvider) { | ||
formlyConfigProvider.setType({ | ||
template: _textareaHtml2['default'], | ||
template: _textarea2.default, | ||
name: 'textarea', | ||
@@ -1067,3 +1014,4 @@ wrapper: ['label', 'messages', 'inputContainer'], | ||
cols: check.number.optional, | ||
grow: check.bool.optional | ||
grow: check.bool.optional, | ||
theme: check.string.optional | ||
} | ||
@@ -1083,6 +1031,4 @@ }; | ||
module.exports = exports['default']; | ||
/***/ }, | ||
/* 33 */ | ||
/* 32 */ | ||
/***/ function(module, exports) { | ||
@@ -1089,0 +1035,0 @@ |
@@ -1,3 +0,3 @@ | ||
/*! angular-formly-material JavaScript Library v0.13.0 | 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),u=o(r),i=n(6),d=o(i),s=n(15),p=o(s),f="formlyMaterial";l["default"].module(f,["ngMessages","ngMaterial","formly"]).config(["formlyConfigProvider",function(e){var t=[u["default"],d["default"],p["default"]];t.forEach(function(t){for(var n=0;n<t.length;n++)t[n](e)})}]),t["default"]=f,e.exports=t["default"]},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),r=n(5),u=o(r);t["default"]=[l["default"],u["default"]],e.exports=t["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"})})},e.exports=t["default"]},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"),u=t.extras&&t.extras.skipNgModelAttrsManipulator;if(u===!0)return e;r.innerHTML=e;var i=l(r);return i&&i.length?(a(i,n,o),r.innerHTML):e}function u(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=u;var i=n(1),d=o(i)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(4);t["default"]=function(e){e.templateManipulators.preWrapper.push(function(e,t){return"undefined"!=typeof t.templateOptions.theme?(0,o.ngModelAttrsManipulator)(e,t,"md-theme",t.templateOptions.theme):e})},e.exports=t["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),r=n(9),u=o(r),i=n(11),d=o(i),s=n(13),p=o(s);t["default"]=[l["default"],u["default"],d["default"],p["default"]],e.exports=t["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(8),l=o(a);t["default"]=function(e){e.setWrapper({template:l["default"],name:"inputContainer"})},e.exports=t["default"]},function(e,t){e.exports="<md-input-container><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(10),l=o(a);t["default"]=function(e){e.setWrapper({template:l["default"],name:"label",apiCheck:function(e){return{templateOptions:{label:e.string}}}})},e.exports=t["default"]},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(12),l=o(a);t["default"]=function(e){e.setWrapper({template:l["default"],name:"messages"})},e.exports=t["default"]},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(14),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}}}})},e.exports=t["default"]},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(16),l=o(a),r=n(18),u=o(r),i=n(20),d=o(i),s=n(22),p=o(s),f=n(24),c=o(f),m=n(26),b=o(m),g=n(28),v=o(g),_=n(30),y=o(_),x=n(32),M=o(x);t["default"]=[l["default"],u["default"],d["default"],p["default"],c["default"],b["default"],v["default"],y["default"],M["default"]],e.exports=t["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(17),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}}}})},e.exports=t["default"]},function(e,t){e.exports="<div><md-checkbox ng-model=model[options.key]>{{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(19),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}}}})},e.exports=t["default"]},function(e,t){e.exports="<md-chips ng-model=model[options.key] readonly></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(21),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}}}})},e.exports=t["default"]},function(e,t){e.exports="<div><md-datepicker ng-model=model[options.key]></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(23),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}}}}),e.extras.fieldTransform.push(function(e){return(0,r.ngModelAttrsTransformer)(e,function(e){return"input"===e.type&&"number"===e.templateOptions.type},"step",{attribute:"step"})})},e.exports=t["default"]},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(25),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}}}})},e.exports=t["default"]},function(e,t){e.exports="<md-radio-group ng-model=model[options.key]><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(27),l=o(a);t["default"]=function(e){e.setType({template:l["default"],name:"select",wrapper:["label","messages","inputContainer"],defaultOptions:{templateOptions:{disabled:!1},ngModelAttrs:{disabled:{bound:"ng-disabled"},multiple:{bound:"multiple"},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}}}})},e.exports=t["default"]},function(e,t){e.exports="<md-select ng-model=model[options.key]><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(29),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}}}})},e.exports=t["default"]},function(e,t){e.exports="<md-slider ng-model=model[options.key]></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(31),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}}}})},e.exports=t["default"]},function(e,t){e.exports="<md-switch ng-model=model[options.key]>{{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(33),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}}}}),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"})})},e.exports=t["default"]},function(e,t){e.exports="<textarea ng-model=model[options.key]></textarea>"}])}); | ||
/*! 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>"}])}); | ||
//# sourceMappingURL=formly-material.min.js.map |
{ | ||
"name": "angular-formly-material", | ||
"version": "0.14.0", | ||
"version": "0.14.1", | ||
"description": "Material design templates for angular-formly", | ||
"main": "dist/formly-material.js", | ||
"scripts": { | ||
"build:dist": "webpack --progress --colors --set-env-NODE_ENV=development", | ||
"build:prod": "webpack --progress --colors --set-env-NODE_ENV=production", | ||
"build:dist": "webpack --progress", | ||
"build:prod": "webpack --progress --set-env-NODE_ENV=production", | ||
"build": "npm run build:dist && npm run build:prod", | ||
@@ -16,3 +16,4 @@ "lint:src": "eslint src/**/*.js", | ||
"coverage:codacy": "cat ./coverage/lcov.info | ./node_modules/.bin/codacy-coverage", | ||
"test": "karma start karma.conf.js --set-env-NODE_ENV=ci" | ||
"test": "karma start karma.conf.js --set-env-NODE_ENV=ci", | ||
"test:watch": "karma start karma.conf.js" | ||
}, | ||
@@ -49,6 +50,7 @@ "repository": { | ||
"argv-set-env": "^1.0.0", | ||
"babel": "^5.8.3", | ||
"babel-core": "^5.0.0", | ||
"babel-eslint": "^4.1.6", | ||
"babel-loader": "^5.3.2", | ||
"babel": "^6.3.26", | ||
"babel-core": "^6.4.5", | ||
"babel-eslint": "^5.0.0--beta", | ||
"babel-loader": "^6.2.1", | ||
"babel-preset-es2015": "^6.3.13", | ||
"codacy-coverage": "^1.1.3", | ||
@@ -60,7 +62,7 @@ "codecov.io": "^0.1.6", | ||
"isparta": "^4.0.0", | ||
"isparta-loader": "1.0.0", | ||
"isparta-loader": "2.0.0", | ||
"jasmine-core": "^2.3.4", | ||
"jquery": "^2.1.4", | ||
"karma": "^0.13.15", | ||
"karma-babel-preprocessor": "^5.2.2", | ||
"karma": "^0.13.19", | ||
"karma-babel-preprocessor": "^6.0.1", | ||
"karma-chrome-launcher": "^0.2.1", | ||
@@ -70,3 +72,3 @@ "karma-coverage": "^0.5.3", | ||
"karma-jasmine": "^0.3.6", | ||
"karma-jasmine-html-reporter": "^0.1.8", | ||
"karma-jasmine-html-reporter": "^0.2.0", | ||
"karma-sourcemap-loader": "^0.3.6", | ||
@@ -73,0 +75,0 @@ "karma-webpack": "^1.7.0", |
@@ -29,2 +29,3 @@ # FormlyMaterial | ||
- [Getting Started](#getting-started) | ||
- [Demo](#demo) | ||
- [Requests?](#requests) | ||
@@ -65,2 +66,6 @@ - [Requirements](#requirements) | ||
## Demo | ||
Visit [formly-material.meteor.com](http://formly-material.meteor.com/demo/input) | ||
## Requests? | ||
@@ -67,0 +72,0 @@ |
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
22
122
121525
28
856