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

Commit c07410c

Browse files
committed
6.24.23
1 parent 77e1443 commit c07410c

File tree

4 files changed

+21
-10
lines changed

4 files changed

+21
-10
lines changed

dist/formly.js

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! angular-formly version 6.23.7 built with ♥ by Astrism <[email protected]>, Kent C. Dodds <[email protected]> (ó ì_í)=óò=(ì_í ò)
1+
//! angular-formly version 6.24.23 built with ♥ by Astrism <[email protected]>, Kent C. Dodds <[email protected]> (ó ì_í)=óò=(ì_í ò)
22

33
(function webpackUniversalModuleDefinition(root, factory) {
44
if(typeof exports === 'object' && typeof module === 'object')
@@ -147,7 +147,7 @@ return /******/ (function(modules) { // webpackBootstrap
147147

148148
ngModule.constant('formlyApiCheck', _providersFormlyApiCheck2['default']);
149149
ngModule.constant('formlyErrorAndWarningsUrlPrefix', _otherDocsBaseUrl2['default']);
150-
ngModule.constant('formlyVersion', ("6.23.7")); // <-- webpack variable
150+
ngModule.constant('formlyVersion', ("6.24.23")); // <-- webpack variable
151151

152152
ngModule.provider('formlyUsability', _providersFormlyUsability2['default']);
153153
ngModule.provider('formlyConfig', _providersFormlyConfig2['default']);
@@ -324,6 +324,7 @@ return /******/ (function(modules) { // webpackBootstrap
324324
templateUrl: apiCheck.shape.ifNot(['type', 'template'], apiCheck.oneOfType([apiCheck.string, apiCheck.func])).optional,
325325
key: apiCheck.oneOfType([apiCheck.string, apiCheck.number]).optional,
326326
model: modelChecker.optional,
327+
originalModel: modelChecker.optional,
327328
className: apiCheck.string.optional,
328329
id: apiCheck.string.optional,
329330
name: apiCheck.string.optional,
@@ -353,6 +354,7 @@ return /******/ (function(modules) { // webpackBootstrap
353354
noFormControl: apiCheck.bool.optional,
354355
hide: apiCheck.bool.optional,
355356
hideExpression: formlyExpression.optional,
357+
ngModelElAttrs: apiCheck.objectOf(apiCheck.string).optional,
356358
ngModelAttrs: apiCheck.objectOf(apiCheck.shape({
357359
expression: apiCheck.shape.ifNot(['value', 'attribute', 'bound'], apiCheck.any).optional,
358360
value: apiCheck.shape.ifNot('expression', apiCheck.any).optional,
@@ -449,7 +451,7 @@ return /******/ (function(modules) { // webpackBootstrap
449451
Object.defineProperty(exports, "__esModule", {
450452
value: true
451453
});
452-
exports["default"] = "https://github.com/formly-js/angular-formly/blob/" + ("6.23.7") + "/other/ERRORS_AND_WARNINGS.md#";
454+
exports["default"] = "https://github.com/formly-js/angular-formly/blob/" + ("6.24.23") + "/other/ERRORS_AND_WARNINGS.md#";
453455
module.exports = exports["default"];
454456

455457
/***/ },
@@ -1267,6 +1269,7 @@ return /******/ (function(modules) { // webpackBootstrap
12671269
scope: {
12681270
options: '=',
12691271
model: '=',
1272+
originalModel: '=?',
12701273
formId: '@', // TODO remove formId in a breaking release
12711274
index: '=?',
12721275
fields: '=?',
@@ -1330,6 +1333,7 @@ return /******/ (function(modules) { // webpackBootstrap
13301333
function simplifyLife(options) {
13311334
// add a few empty objects (if they don't already exist) so you don't have to undefined check everywhere
13321335
formlyUtil.reverseDeepMerge(options, {
1336+
originalModel: options.model,
13331337
extras: {},
13341338
data: {},
13351339
templateOptions: {},
@@ -2045,7 +2049,7 @@ return /******/ (function(modules) { // webpackBootstrap
20452049
if (attrs.hasOwnProperty('isFieldGroup') && el.parent().parent().hasClass('formly')) {
20462050
parentFormAttributes = copyAttributes(el.parent().parent()[0].attributes);
20472051
}
2048-
return '\n <' + rootEl + ' class="formly"\n name="' + getFormName() + '"\n role="form" ' + parentFormAttributes + '>\n <' + fieldRootEl + ' formly-field\n ng-repeat="field in fields ' + getTrackBy() + '"\n ' + getHideDirective() + '="!field.hide"\n class="formly-field"\n options="field"\n model="field.model || model"\n fields="fields"\n form="theFormlyForm"\n form-id="' + getFormName() + '"\n form-state="options.formState"\n form-options="options"\n index="$index">\n </' + fieldRootEl + '>\n <div ng-transclude class="' + getTranscludeClass() + '"></div>\n </' + rootEl + '>\n ';
2052+
return '\n <' + rootEl + ' class="formly"\n name="' + getFormName() + '"\n role="form" ' + parentFormAttributes + '>\n <' + fieldRootEl + ' formly-field\n ng-repeat="field in fields ' + getTrackBy() + '"\n ' + getHideDirective() + '="!field.hide"\n class="formly-field"\n options="field"\n model="field.model || model"\n original-model="model"\n fields="fields"\n form="theFormlyForm"\n form-id="' + getFormName() + '"\n form-state="options.formState"\n form-options="options"\n index="$index">\n </' + fieldRootEl + '>\n <div ng-transclude class="' + getTranscludeClass() + '"></div>\n </' + rootEl + '>\n ';
20492053

20502054
function getRootEl() {
20512055
return attrs.rootEl || 'ng-form';
@@ -2416,6 +2420,7 @@ return /******/ (function(modules) { // webpackBootstrap
24162420
addValidation();
24172421
addModelOptions();
24182422
addTemplateOptionsAttrs();
2423+
addNgModelElAttrs();
24192424

24202425
return node.innerHTML;
24212426

@@ -2501,6 +2506,12 @@ return /******/ (function(modules) { // webpackBootstrap
25012506
}
25022507
});
25032508
}
2509+
2510+
function addNgModelElAttrs() {
2511+
_angularFix2['default'].forEach(options.ngModelElAttrs, function (val, name) {
2512+
addIfNotPresent(modelNodes, name, val);
2513+
});
2514+
}
25042515
}
25052516

25062517
// Utility functions

dist/formly.min.js

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

dist/formly.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.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-formly",
3-
"version": "0.0.0-semantically-released.0",
3+
"version": "6.24.23",
44
"author": "Astrism <[email protected]>",
55
"contributors": [
66
"Astrism <[email protected]>",
@@ -137,4 +137,4 @@
137137
"czConfig": {
138138
"path": "node_modules/cz-conventional-changelog"
139139
}
140-
}
140+
}

0 commit comments

Comments
 (0)